In this project, I have simulated a traffic light at an intersection using concurrent programming in C++. I have used two real urban map of the cities of New York and Paris, where the traffic lights are timed to regulate the flow of traffic through the city streets. The map data is read by the OpenCV library. The code is written in C++ and is based on the starter code provided by Udacity.
- cmake >= 2.8
- make >= 4.1
- gcc/g++ >= 5.4
- OpenCV >= 4.1
- Clone this repo.
- Make a build directory in the root directory:
mkdir build && cd build - Compile:
cmake .. && make - Run it:
./traffic_simulation.
