This project is a traffic simulation in which vehicles are moving along streets and are crossing intersections equipped with a traffic light. The project was built for the Udacity C++ Nanodegree Program fourth course as an application of C++ concurrent programming techniques, such as:
- Message queues
- Locks
- Mutexes
- Condition variables
- Threads and tasks
- Cmake and GCC:
sudo apt update
sudo apt install build-essential
sudo apt install cmake
- OpenCV >= 4.1 Library Follow this tutorial to install OpenCV library.
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./traffic_simulation
.
- Fedi Salhi FediSalhi