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.57k stars 1.44k forks source link

How to generate crossings correctly (or close to reality as possible) from OpenStreetMap? #13725

Closed maisyhoang closed 1 year ago

maisyhoang commented 1 year ago

Question 1: What netconvert options should I use to generate pedestrian crossings closest to reality (not using .guess options)? I tried ----osm.sidewalks and --osm.crossings but there seems to be some issue. For example, in this case one of the crossing seems to be missing. Also I think that some of the pedestrian area around the intersection are redundant here.

image image

Is there any option to make pedestrian walkway only one lane instead of two lanes in parralel?

My netconvert command is:

netconvert --osm-files ./map.osm -o sumo.net.xml \ --geometry.remove \ --ramps.guess \ --junctions.join \ --tls.guess-signals \ --tls.discard-simple \ --tls.join \ --tls.default-type actuated \ --junctions.internal-link-detail 20 \ --junctions.corner-detail 20 \ --output.street-names true\ --output.original-names \ --osm.sidewalks true \ --osm.crossings true \ --type-files osmNetconvert.typ.xml,osmNetconvertUrbanDe.typ.xml,osmNetconvertPedestrians.typ.xml

Question 2: What type of OSM tags are needed for normal crossing vs zebra crossing generation in netconvert?

Here is my overpass query (https://overpass-turbo.eu/) which finds a few nodes that is ["highway"="*"] and ["crossing"="marked"], but I dont find any zebra crossing in sumo-gui.

[out:json][timeout:50]; ( node["highway"="*"];node["crossing"="marked"](60.15547501163754,24.75944995880127,60.165318995436905,24.779255390167233); ); out center;


The whole simulation files is attached below. original OSM map is map.osm. The simulation file to use with sumo-gui is experiment.sumocfg. The script I use to generate my scenario is setup_scenario.sh.


SUMO-version: 1.18.0 Operating system: Ubuntu 22.04

scenario_6.zip

bcoueraud87 commented 1 year ago

Hi Hoang Mai,

Zebra crossings are known to be problematic as far as I know. I used the osmWebWizard tool and it gave good results (as far as I understand):

image

Looking at the tool's code, I see that the --osm.sidewalks and --crossings.guess netconvert options were used, so the guesses were quite good actually. You can actually modify this geometry in netedit, as a further step. Also in netedit using the selection tool and the inspection tool, you can edit the number of pedestrian lanes. But I guess you will use SUMO's pedestrian striping model (the one by default) and in this case it could be perhaps a good idea to keep one lane for movement in one direction, one lane for the other direction.

And just in case you didn't have that part of the documention yet: https://sumo.dlr.de/docs/Simulation/Pedestrians.html#generating_a_network_with_crossings_and_walkingareas