sumo scenario

16
PREPARED BY: Er. ANSHUL MAHAJAN HOW TO CREATE SCENARIO USING SUMO SIMULATOR

Upload: anshul-mahajan

Post on 12-Apr-2017

48 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Sumo scenario

PREPARED BY: Er. ANSHUL MAHAJAN

HOW TO CREATE SCENARIO USING SUMO SIMULATOR

Page 2: Sumo scenario

Basic start of scenario creation

Page 3: Sumo scenario

Step1: Download OSM from www.openstreetmap.org by clicking on export option and open sumo folder and save file under the cityname folder with the name cityname.map.osm

Page 4: Sumo scenario
Page 5: Sumo scenario
Page 6: Sumo scenario

RUN THE BELOW COMMANDS

Step 2: netconvert --osm-files map.osm -o map.net.xml

Page 7: Sumo scenario
Page 8: Sumo scenario

Netconvert –osm-files map.osm -o map.net.xml

Step 3: After running the above command open the below link http://sumo.dlr.de/wiki/Networks/Import/OpenStreetMap

Page 9: Sumo scenario

Step 4: Make a file using text editor and remove the selected steps and save it as typemap.xml

Page 10: Sumo scenario

Run the below command

Step 5: Polyconvert –net-file den.net.xml –osm-files map.osm –type-file typemap.xml -o map.poly.xml

Page 11: Sumo scenario

Run the below commandStep 6: python /home/anshul/sumo-0.23.0/tools/trip/randomTrips.py -n

den.net.xml -e 100 -l

Step 7: python /home/anshul/sumo-0.23.0/tools/trip/randomTrips.py -n den.net.xml -r den.rou.xml -e 100 -l

Page 12: Sumo scenario

Step 8: Now search for sumo.cfg file and with the help of this file all the file are configure.

Page 13: Sumo scenario

Step 9: Run the command

sumo-gui den.sumo.cfgThe above command is used to run the simulation of scenario

and the screenshot represents the sumo gui

Page 14: Sumo scenario

Screenshots of simulation

Page 15: Sumo scenario

Screenshots of simulation

Page 16: Sumo scenario

Thank you