Hi,
I would like the pedestrian to stop crossing the intersection as soon as
the traffic light's timer is below a certain threshold. Currently, the only
two methods I could think of are 1) set the pedestrian speed to zero; 2)
set a different traffic light for pedestrian, but synchronize it with
vehicle traffic light. As for (1), I tried to modify the "_person.py" by
the code.
def setSpeed(self, personID, speed):
self._connection._sendDoubleCmd( tc.CMD_SET_PERSON_VARIABLE,
tc.VAR_SPEED, personID, speed)
But I got the following error
line 154, in _sendDoubleCmd, self._sendExact(), File "C:\Program Files
2\DLR\Sumo\tools\traci\connection.py", line 117, in _sendExact
raise TraCIException<prefix[1], _RESULTS[prefix[2]],err>
traci.exceptions.TraCIException:Change Person State: unsupported variable
0x40 specified
I am wondering how to solve the problem of stopping pedestrian. Thanks for
any hints in advance.
Emma
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user