This project demonstrates a basic traffic simulation using SUMO, TraCI, and Python for vehicle monitoring and traffic data extraction.
- Run SUMO simulations from Python using TraCI
- Monitor vehicle speed and position in real time
- Compute vehicle distance traveled
- Extract edge-level traffic metrics (e.g., average speed)
- Build a foundation for traffic analytics and ML-ready datasets
- π Vehicle speed tracking per simulation step
- π Vehicle position monitoring
- π Distance traveled calculation
- π§ Edge average speed computation
- π Real-time simulation control via TraCI
- π£ Custom SUMO network and route configuration
- Python
- SUMO (Simulation of Urban Mobility)
- TraCI (Traffic Control Interface)
- sumolib
- traci_sumo.py β main simulation runner
- Traci.net.xml β network file
- Traci.rou.xml β routes file
- Traci.sumocfg β simulation config
- Install SUMO
- Install Python packages
pip install sumolib tracipython traci_sumo.py- Transport Technology Student
- Python Developer β Traffic Simulation & Analytics