I'm trying to make a vehicle stop where it is. I do this by checking the
vehicle's current edge, then modifying the route to contain only that edge,
then add a stop in that edge.
However, this throws an error. What am I doing wrong?
>>> traci.vehicle.getLaneID('13')
'L14_2'
>>> traci.vehicle.setRoute('13',['L14'])
>>> traci.vehicle.setStop('13','L14')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\DLR\Sumo\tools\traci\_vehicle.py", line 594,
in setStop
self._connection._sendExact()
File "C:\Program Files (x86)\DLR\Sumo\tools\traci\connection.py", line
109, in _sendExact
raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
traci.exceptions.TraCIException: *Stop for vehicle '13' on lane 'L14_0' is
not downstream the current route.*
TIA
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user