A solution to address the significant risks faced by emergency services while responding to emergencies, especially in highly congested urban areas. The project aims to provide real-time notifications about the location and status of emergency vehicles to nearby vehicles, helping drivers quickly and safely clear the path of the emergency vehicle. This, in turn, reduces the risk of accidents and improves response times.
The project utilizes VANETZA to equip emergency vehicles with the ability to send DENM messages to nearby vehicles, containing information about their location, speed, and direction of travel. The DENM message may also include details about the type of emergency. Within a specified range, vehicles receive the DENM message and inform the driver through a message displayed on the dashboard or an audible warning. The notification can also indicate the current location and the direction in which the emergency vehicle is heading. Additionally, a central server receives the DENM message, which is then utilized to monitor the real-time location and status of emergency vehicles.
To run the project locally, follow these basic instructions:
- Create a virtual environment (venv)
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the game requirements:
pip install -r requirements.txt
To run the project, follow these steps:
- Open four terminals
- Run the docker compose (1st terminal)
docker-compose up
- Run the webapp (2nd terminal)
python3 app.py
- Run the simulation for the RSU's (3rd terminal)
python3 simulation_rsu.py
- Run the simulation for the OBU's (4th terminal)
python3 simulation_obu.py
To modify the routes in the database, follow these steps:
-
Open the
db_rsu.py
anddb_obu.py
files in your preferred text editor. -
Locate the section where the latitude and longitude values for the routes are defined.
-
Update the latitude and longitude values according to the desired modifications.
-
Save the changes made to the
db_rsu.py
anddb_obu.py
files. -
Run the
coordinates.py
script to update the database with the modified routes. Use the following command:
python3 coordinates.py
Here are some useful references that can be consulted for more information: