Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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 <g2121044@xxxxxxxxx>:
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

Back to the top