Thank you so much Jakob, fixing this is super easy. Much appreciate that.
On Saturday, October 6, 2018, 8:29:01 PM GMT+13, Jakob Erdmann
<[email protected]> wrote:
Most likely, findRoute did not find a route because the target edge is not
reachable from the source edge.
In this case ff.edges is an empty list and it is not permitted to call
vehicle.setRoute with an empty list of edges.
Am Sa., 6. Okt. 2018 um 08:42 Uhr schrieb mohsen hs <[email protected]>:
Dear sumo experts,
I am rerouting vehicles in TraCI and suddenly for some vehicles, I get the
below error. The point is that rerouting was done for many other vehicles
without any issues. Unfortunately, I could not find that much information on
the web for this issue (except than this one
https://sourceforge.net/p/sumo/mailman/message/28911508/) . I was able to
handle this with try-catch, but wonder if you could advise.
Many thanksMohsen
ff=traci.simulation.findRoute(cl,"gneE9",ty,-1,traci.constants.ROUTING_MODE_AGGREGATED)edg=list(ff.edges)
traci.vehicle.setRoute(car,edg)
File "/home/mohsen/Desktop/sumofromgit/tools/traci/connection.py", line 105,
in _sendExact
raise TraCIException(prefix[1], _RESULTS[prefix[2]],
err)traci.exceptions.TraCIException: Route replacement failed for
10057_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user