Dear Jakob,
Thank you very much for the quick response. I was able to learn more about routing.
Kind regards, Nishikawa ----- Original Message -----
From: Jakob Erdmann <namdre.sumo@xxxxxxxxx> To: Sumo project User discussions <sumo-user@xxxxxxxxxxx> Date: 2021-05-03 19:41:15 Subject: Re: [sumo-user] About duarouter when there is a vehicle in the junction
When a vehicle is on the junction, the function traci.setRoute should be called with an edge list that starts with the first "normal" edge beyond the junction. When you build your routes with duarouter, use that edge as 'from'. Note, that you can also call traci.vehicle.reroute or compute the route inside sumo with simulation.findRoute. regards, Jakob
Hallo Everyone
I have a question about the functionality of duarouter.
I am writing a program to dynamically change the route of a pickup truck.
I have created the following trip and am using duarouter to automatically calculate the route.
<trip id=x depart=now from="Current location of vehicle" to="Pickup_point" via="Dropoff_point" maxSpeed=xxx/>.
In this case, create a trip file with the current location of vehicle set to inside the junction, and create rou.xml with duarouter. Then, the first edge of the route in rou.xml will be away from the current location of the vehicle. If you do a setRoute on that route, you will get an error.
Is there any way to create a correct route in duarouter when the vehicle is inside a junction?
Best regards
Nishikawa
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
|