sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Traffic light signal created on tram_level_crossing intersection

Open gladysmcgan opened this issue 1 year ago • 2 comments

It seems that SUMO creates a signalised intersection on this node https://www.openstreetmap.org/node/1460427225, even though it does not have a traffic light signal tag in OSM. I noticed that the signals is removed when the tram_level_crossing tag is removed, but it is not always the case that tram_level_crossing intersections get signals.

May I know how and in which cases does SUMO create these signals in such intersections?

This is also an issue because of the resulting high cycle time, 180 (default 48).

OSM file, netccfg and net here

Thanks! Screenshot 2024-01-16 at 6 17 07 PM

SUMO-version: 19

operating system: MacOS

gladysmcgan avatar Jan 16 '24 17:01 gladysmcgan

The entrance point for this problem is:

https://github.com/eclipse-sumo/sumo/blob/eede07d32811e5ad51c8c8847b5955cefe2743b6/src/netimport/NIImporter_OpenStreetMap.cpp#L945-L946

Any OSM node which has a railway tag with a value containing the keyword "crossing" will be treated as a railway crossing. This leads to special railway-oriented signalling.

m-kro avatar Jan 17 '24 09:01 m-kro

I see, thanks!

I think a potential fix for the high cycle times might be for a way distinguish the green times given to trams and cars. For instance, to reduce the green time for a tram to something like 3-5 seconds, since it isn't realistic that trams have a similar green time to cars. Perhaps implementing this on this intersection is more complicated since here trams share a green phase with a turning for cars.

I have another intersection example here (folder) where a 31 second green phase serves only trams (see TLS cluster_2209519449_3447105008_4115178104_4115178105_#4more in BAS_sumo_raw1.net.xml)

Screenshot 2024-01-17 at 6 15 44 PM

gladysmcgan avatar Jan 17 '24 17:01 gladysmcgan