Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] traci.exceptions.TraCIException: Route replacement failed for ...

 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

Back to the top