https://github.com/raffaeletranfaglia/cooperative-autonomous-vehicles
The scope of the project is to optimize traffic flow in urban intersections by adopting the platooning system.
https://github.com/raffaeletranfaglia/cooperative-autonomous-vehicles
autonomous-vehicles platooning python simulation sumo
Last synced: 2 months ago
JSON representation
The scope of the project is to optimize traffic flow in urban intersections by adopting the platooning system.
- Host: GitHub
- URL: https://github.com/raffaeletranfaglia/cooperative-autonomous-vehicles
- Owner: RaffaeleTranfaglia
- Created: 2024-04-04T09:58:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-28T19:51:20.000Z (7 months ago)
- Last Synced: 2025-03-29T17:22:19.206Z (3 months ago)
- Topics: autonomous-vehicles, platooning, python, simulation, sumo
- Language: Python
- Homepage:
- Size: 178 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Managing intersections in a smart city exploiting the platooning system
The scope of the project is to optimize traffic flow in urban intersections by adopting the platooning system.
Adjacent agents that have to turn the same way will aggregate into a platoon.
[Here](./assets/clips/standard_simulation.zip) is shown the normal simulation and [here](./assets/clips/simulation_with_platooning.zip) the platooning algorythm behaviour.## Installation
In order to set up the project the simulator [SUMO](https://eclipse.dev/sumo/) is required.It is recommended to set up the workspace in a virtual environment.
To install dependencies:
```
pip install requirements.txt
```
One additional dependency is [PlexeAPI](https://github.com/michele-segata/plexe-pyapi).## Usage
To run the standard simulation:
```
python runner2.py --cfg
```
e.g. `python runner2.py --cfg sim_cfg_3_lanes/config.sumo.cfg`To run the simulation with platooning:
```
python runner.py --cfg
```
e.g. `python runner.py --cfg sim_cfg_3_lanes/config.sumo.cfg`To plot the simulation metrics:
```
python metrics_plot.py
```
e.g. `python metrics_plot.py sim_cfg_3_lanes`To plot the platoon's behaviour related benchmarks:
```
python platoon_benchmarks_plot.py
```
e.g. python platoon_benchmarks_plot.py platoon_test/benchmarks/log.csv