Contribute Media
A thank you to everyone who makes this possible: Read More

Python, you can drive my car. Yes, I'm gonna be a star.

Description

Python, you can drive my car. Yes, I’m gonna be a star. - PyCon Italia 2022

We know that our beloved Python can do everything, and today we are learning how to use it to build a micro-simulation model of mobility! Thanks to SUMO, a microscopic traffic simulation package written in C++ and Python, we discover how to analyze vehicle, pedestrian and train flows very easily! In this talk I present SUMO, an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. Within SUMO, you can build multi-modal transportation networks, including demand (flows of vehicles, pedestrians, buses, trains) and network characteristics (traffic lights, junctions, bike lanes etc.), running simulations over large urban networks.

Written in C++, it comprises several functions and tools written in Python, as well a complete package called sumolib, a set of Python modules for working with SUMO networks.

We will learn how to import a network from OpenStreetMap in one click thanks to a Python script, set some traffic flows and run a simulation within the SUMO-GUI, a perfect interface to see your cars, bicycles, buses flowing on the network. Typical outputs that we can get and visualize with Python include vehicle information data, trajectories, speed, delays and emissions.

If you are a mobility passioner or a professional engineer dealing with traffic problems, tired of spending tons of money on commercial software, you should definitely give SUMO a try.

Please download the slides of the talk here:

Speaker: Fabio Lamanna

Details

Improve this page