Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Add dynamically route

Hi all,

I want to create a random route and add a vehicle via TraCI.
In the wiki, the usage examples show the function,
traci.route.add("trip", ["startEdge", "endEdge"])
traci.vehicle.add("newVeh", "trip", typeID="reroutingType")
http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python

When I execute the function
traci.route.add("trip", ["edge01", "edge43"])
traci.vehicle.add("newVeh", "trip")
, the error message says "Vehicle 'veh0' has no valid route. No connection between edge 'edge01' and edge 'edge43'."

The startEdge and endEdge must be connected ?


Best regards,
Craig

Back to the top