How teodortodorovski01/diploma-sumo works
This repository is a SUMO traffic-and-ambulance simulation for central Skopje and the wider Skopje road network. The principal workflow is to configure a scenario, generate passenger trips and (for Skopje) an ambulance route, then launch the controller, which runs SUMO, periodically replans the ambulance route, and optionally preempts signals. Simulation trip information is the main result. The graph includes documented map, blockage, signal-cycle, and GUI/headless capabilities. Source excerpts show controller internals; scenario-launch relationships rely partly on the README because its implementation excerpt is incomplete.
Main entry points: control.py Simulation controller · scenario.py Scenario generator · net.net.xml.gz Skopje map · map.osm Skopje OSM extract
Components 17
Scenario setup
- Scenario generator
centar/scenario.py - Passenger trips
centar/scenario.py - Ambulance route
centar/scenario.py - Optional blockage
centar/scenario.py
Road networks
- Central-area map
centar/net.net.xml - Skopje map
skopje/net.net.xml.gz - Skopje OSM extract
skopje/map.osm - Central SUMO config
centar/run.sumocfg - Skopje SUMO config
skopje/skopje.sumocfg
Simulation control
- SUMO runtime
- Simulation controller
centar/control.py - Dynamic route planner
centar/control.py - Signal-cycle tuning
centar/control.py - Signal preemption
centar/control.py
Simulation outputs
- Trip information
centar/scenario.py
Other components
- Scenario operator
- SUMO-GUI
Connections 23
- Scenario operator → Scenario generator: configures
README.md - Scenario generator → Passenger trips: generates
README.md - Scenario generator → Ambulance route: generates
README.md - Scenario generator → Optional blockage: may add
README.md - Scenario generator → Simulation controller: launches
README.md - Scenario generator → Trip information: configures output
centar/scenario.py - Scenario generator → Central-area map: selects
centar/scenario.py - Scenario generator → Skopje map: selects
centar/scenario.py - Skopje OSM extract → Skopje map: source data
README.md - Simulation controller → SUMO runtime: starts
centar/control.py - Simulation controller → Passenger trips: loads routes
README.md - Simulation controller → Ambulance route: loads route
README.md - Simulation controller → Central SUMO config: uses by default
centar/control.py - Simulation controller → Dynamic route planner: replans with
centar/control.py - Dynamic route planner → SUMO runtime: reads travel times
centar/control.py - Dynamic route planner → SUMO runtime: updates ambulance route
centar/control.py - Simulation controller → Signal-cycle tuning: configures when enabled
centar/control.py - Signal-cycle tuning → SUMO runtime: sets signal programs
centar/control.py - Simulation controller → Signal preemption: runs when enabled
centar/control.py - Signal preemption → SUMO runtime: requests green phases
centar/control.py - Simulation controller → Trip information: requests recording
centar/control.py - Simulation controller → SUMO-GUI: starts optionally
centar/control.py - Scenario generator → Skopje SUMO config: selects for Skopje
README.md