Note to self:

Sumo (Simulation of Urban Mobility) simulation 102 — a series

Hi there!

This is mostly a note of self about SUMO simulation learning and practise. However, I think it could help someone out there so posting it.

Learnings from the YouTube lectures by Rodrigue Tchamna:

Lecture 1:

  • SUMO + python installation
  • Manual (node + edge) network and route creation
  • And finally, SUMO configuration file and is used to run the simulation

Lecture 2:

  • Download map from OpenStreetMap
  • Convert the map to SUMO network> netconvert.exe — — osm-files map.osm -o network-filename.net.xml
  • Next create random trips> py PATH/randomTrips.py -n network-filename.net.xml -r test.rou.xml -e 50 -l (OR copy the randomTrips.py script to the working directory)
  • And finally, SUMO configuration file and is used to run the simulation

Lecture 3:

  • Get the network-filename.net.xml file
  • Create taz-file.taz.xml and origin-destination.od files
  • Next create OD to trips file> od2trips -c PATH/od2trips.config.xml -n PATH/taz-file.taz.xml -d PATH/origin-destination.od -o PATH/od-file.odtrips.xml
  • Create dur file> duarouter -c PATH/duacfg-file.trips2routes.duarcfg -o od-routefile.odtrips.rou.xml
  • And finally, SUMO configuration file and is used to run the simulation

Creating vehicle distribution, say, a traffic distribution of passenger cars and trucks

Creating additional file

Using better visualization

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store