An open API service indexing awesome lists of open source software.

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.

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