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 thanks > Mohsen > > > 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
