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
_______________________________________________
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

Reply via email to