Skip to main content

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

Hello,
in order for trips to work, the vehicle must be able to compute a rounte between startEdge and endEdge. This only works if it is equipped with a rerouting device. This is explained in the link but missing from your code.
regards,
Jakob

2018-06-19 14:50 GMT+02:00 Craig <wenger0815@xxxxxxxxx>:
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")

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
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top