[SUMO] The OSM introductory tutorial that comes with SUMO running


First give the official website tutorial:
https://sumo.dlr.de/docs/Tutorials/OSMWebWizard.html

1. Run the CMD command line

code:

  1. First enter the osmWebWizard.py file address
cd /d D:\SUMO\sumo-1.17.0\tools(替换成自己的sumo\tools地址)
  1. Then run the py file with python
python osmWebWizard.py

insert image description here

2. Enter OSM to select the map location

Need to open the Internet.

  1. Find the desired geographic location by zooming the mouse;
  2. Check all options;
  3. Check the red box on the right and select the size of the map to be captured.
    insert image description here
    insert image description here
  4. Choose a shipping method.
    Through Traffic Factor: The larger the value, the more vehicles leave and reach the boundary of the simulation area, corresponding to the scene with more traffic flow.
    Count: This parameter defines the number of vehicles and lane kilometers generated per hour.
    insert image description here
  5. Select a road type.insert image description here
  6. When all the steps are completed, go back to the settings page and click ""Genertate Scenario".

insert image description here
7. After the map is generated, the system will automatically import the generated file into SUMO-gui and open it.
insert image description here

  1. Click start to run the simulation, and finally generate a file in the file: trips.trips.xml is the operation data of various transportation tools.
    insert image description here
    The file can be opened with Visual Studio Code.
    insert image description here

Guess you like

Origin blog.csdn.net/JingYan_Chan/article/details/130893731