eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

Set the position of the stop line (minor link) #15442

Open kasop1 opened 1 month ago

kasop1 commented 1 month ago

I know two ways to set stop lines (jmStoplineGap, stopOffset). I want to use jmStoplineGap to set stop lines, but this can only be used for priority or TL junctions. I want to use jmStoplineGap to set the position of stop lines at other junctions, such as All Way stop. Could you please improve this?

namdre commented 1 month ago

you can also configure this on the network level with endOffset (https://sumo.dlr.de/docs/Networks/PlainXML.html#lane-specific_definitions) or do you need this per vehicleType?

kasop1 commented 1 month ago

Yes, I want to set it for each vtype.

namdre commented 1 month ago

jmStopLineGap is intended for situations where the vehicle can expect to drive with priority. In all other cases, the driver is on a "minor" road and has to find a gap in foe traffic. The current model assumes that drivers will always drive up as far as possible in this situation to simplify finding a gap. A new model parameter should be introduced to make this configurable.

namdre commented 1 month ago

Arguably, allway_stop could fall in the first group because the driver receives a window with full priority at some point and so doesn't have to worry about finding a gap.

kasop1 commented 1 month ago

I look forward to the updates. Thank you so much for your efforts.

namdre commented 1 month ago

this won't work for allway_stop in the near future (#15449)