Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Occasional One-way street

Hello,
your method works by defining the one-way part as a junction with exclusive right of way. There are some issues with this approach outlined in https://github.com/eclipse/sumo/issues/9500  but it might still be good enough for your use case. You can actually put a busStop into a junction by assigning it to an "internal lane" (this is not supported by netedit and must be edited directly in the xml file). See https://sumo.dlr.de/docs/sumo-gui.html#investigating_internal_edges_and_lanes

There are other approaches for modelling a one-way street though:
- by defining a traffic light that guards the shared section (though this may be problematic if vehicles stop for a time in the narrow part): https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#intersection_layout_alternateoneway
- by using opposite-direction driving with a long obstacle in one direction. This makes the behavior highly asymmetrical since one direction has right-of-way and the other direction has to wait for gaps. See https://sumo.dlr.de/docs/Simulation/OppositeDirectionDriving.html

regards,
Jakob


Am Di., 9. Nov. 2021 um 12:32 Uhr schrieb Von Kiöhling Marcus via sumo-user <sumo-user@xxxxxxxxxxx>:

Hello,

 

I’m trying to create a street where two vehicles can’t meet each other (due to too narrow street). However, I want it to be allowed for vehicles from both sides of the edge to use the street. Thus, my issue is when I want a flow in both directions, I add an edge in both directions. But since these are separated streets, the vehicles can meet.

 

For example in the attached files. It is important that there cannot be a vehicle at edge “gneE7” when another vehicle has begun driving on “-gneE7” or vice versa.

 

I’ve played around with “EndOffSet” for edges to make this possible, and it works rather well. However, this disallows me to put BusStops at the edge since the edge is shortened.

 

Any suggestions or ideas on how I can solve this?

 

 

Thanks in advance!

Marcus

 

 

_______________________________________________
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