Understanding SUMO & Traci
What is it?
SUMO (Simulation of Urban Mobility) is an open source, microscopic, multi-modal traffic simulation software. It allows to simulate how a complex traffic flow consisting of many individual vehicles moves through a given road network structure after a given traffic demand.
-
SUMO has a fast OpenGL graphical user interface that enables the user to design each element of each roadway at an intersection, including the number of roadway strips, directions, and the number of lanes, the location of traffic signals and the phase sequence and duration of traffic signals.
-
The package Traci in SUMO can easily enable it to communicate with python, which facilitates the simulation.
-
By calling Traci, various data from the traffic simulation, such as vehicle waiting time, number of vehicles on the road, and vehicle speed, can be obtained in real time enabling us to optimize the model better.

Emergency Vehicle Preemption
What we have implemented is the follows:
- Detects emergency vehicles based on their type and identifies their movement direction (NS/EW).
- Predicts the next traffic light they will encounter and adjusts its phase accordingly.
- Extends green duration or shortens other phases to give emergency vehicles right of way.
- Resets signals to normal operation once emergency vehicles have passed.