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 <[email protected]>
To: Sumo project User discussions <[email protected]>
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.
Another thing you may want to look at is: 
https://sumo.dlr.de/docs/Demand/Automatic_Routing.html
regards,
Jakob



Am Mo., 3. Mai 2021 um 11:27 Uhr schrieb g2121044 <[email protected]>:

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
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to