Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Road as a destination-separate from edges and lanes

Solution 1: define a trip with attribute 'toJunction' instead of 'to'. This way the car will pick the edge that best fits the direction it is coming from (the same goes for 'fromJunction').
Solution 2: (needed if edges are divided by a median and don't show a common junction): use the tool https://sumo.dlr.de/docs/Tools/District.html#generatebididistrictspy and then use either the edge or the -edge as fromTaz / toTaz .The generated districts will cover multiple edges in a radius and thus leave the choice of edge to the fastest-path-computation.

regards,
Jakob

Am Do., 11. Juni 2026 um 12:27 Uhr schrieb Bruns, Isabel via sumo-user <sumo-user@xxxxxxxxxxx>:

Hello everyone,

I hope I'm in the right place on this mailing list; I'm having an implementation issue with my simulation.

 

I want to simulate a package delivery. The vehicle should make a single stop on each street and, using tranship, deliver to both sides of the street without having to turn around.

 

My problem: My streets always consist of at least two street sides (edge and -edge). To navigate the vehicle to a stop, I have to specify an edge—but which one I choose (edge and -edge) determines the entire route, since the vehicle arrives from a completely different direction depending on the choice of edge or -edge and the previous stop.

I need a solution where only the street is specified as the destination and the router automatically selects the shortest route (in this case edge or -edge).

Is there a way to define a stop so that both directions of a street are treated as equally valid destinations, and the decision of edge or -edge is left to the vehicle depending on the previous route?

I am using SUMO 1.22.0

Many thanks, Isabel

 

_______________________________________________
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