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.51k stars 1.42k forks source link

geometry collision on junction between stranded left-turners and cross traffic #9041

Open MohamadReza-Haghani opened 3 years ago

MohamadReza-Haghani commented 3 years ago

Hi,

I made a simple four-way signalized intersection in SUMO. When I run it, I see that left-turning vehicles have conflicts with straight moving vehicles from the opposite direction. In this situation, left-turning vehicles come into the intersection and cross the other vehicles instead of waiting for the straight moving vehicles to pass. How can I change their behavior so they do not cross each other.

Thanks, Reza.

namdre commented 3 years ago
MohamadReza-Haghani commented 3 years ago

Thanks dear Jakob. I found that my problem was that the signal did not have all red time. Therefore, vehicles of the next phase crossed over the vehicles that got stuck in the intersection from the previous phase. I added all red time. So the intersection becomes clear before the next phase green time, and vehicles do not cross each other any more.

namdre commented 3 years ago

Actually, vehicles should still respect each other even when there is no all-red time. Feel free to attach a sample scenario as this may reveal some problem with the network model or the simulation behavior (and I will then re-open this issue).

MohamadReza-Haghani commented 3 years ago

ezyzip.zip

If you look at these files, you see that, without all red time, the vehicles stuck from the last phase cross other vehicles and exit the intersection.

namdre commented 3 years ago

Thanks. The model is working mostly as expected:

If the left-turn geometry is altered to shift the waiting position a bit further ahead into the junction it works nicely. Nevertheless, it's still a bug since the conflict check should take lane widths/ vehicle widths into account rather than rely on the center line.