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.49k stars 1.41k forks source link

no time gap is enforced when passing minor link after the leader vehicle #8952

Open namdre opened 3 years ago

namdre commented 3 years ago

If the (estimated) ego arrival time at the link comes later (even if by a millisecond) than the estimated exit time of the foe and the foe has a different target lane, the link is deemed free.

In contrast, a time gap is enforced when passing ahead of a foe (default 1s, configurable with jmTimeGapMinor). The same time gap is also enforced if the foe is leading and the ego vehicle targets the same lane.

Usually, this isn't a problem since the estimated arrival and exit times are with reference to the whole junction shape which gives a sufficient safety buffer. When passing via an internal junction, the vehicle is waiting (almost) directly besides the conflict area and the lack of buffer may cause collisions or low post-encroachment-time.

namdre commented 3 years ago

The problem was introduced via #796 (version 0.16.0) nine years ago!

namdre commented 3 years ago

The problem is likely affected by the accuracy of the estimated times which varies by intgration method (--step-method.ballistic). The initial test shows one collision per 13k left turns with ballistic integration and 0 collisions within 90k left turns for default euler integration.

namdre commented 3 years ago

Right now, the lack of post-encroachment gap somewhat compensates for the discrepancy between conflict area and junction area when estimating conflict times. Thus, a fix here makes it more important to fix other things as well (#1846)

namdre commented 3 years ago

a new junction model parameter shall be introduced to configure the follow-from-minor-timegap independent from lead-from-minor-timegap