https://github.com/napjon/traffic-simulation
C++ Concurrent Traffic Simulation
https://github.com/napjon/traffic-simulation
Last synced: 4 months ago
JSON representation
C++ Concurrent Traffic Simulation
- Host: GitHub
- URL: https://github.com/napjon/traffic-simulation
- Owner: napjon
- Created: 2022-01-05T00:20:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T00:31:22.000Z (over 4 years ago)
- Last Synced: 2025-07-21T22:45:11.227Z (11 months ago)
- Language: Makefile
- Size: 16.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Developing a traffic simulation in which vehicles are moving along streets and are crossing intersections. However, with increasing traffic in the city, traffic lights are needed for road safety. Each intersection will therefore be equipped with a traffic light. A suitable and thread-safe communication protocol between vehicles and intersections to complete the simulation.
* cmake >= 2.8
* All OSes: [click here for installation instructions](https://cmake.org/install/)
* make >= 4.1 (Linux, Mac), 3.81 (Windows)
* Linux: make is installed by default on most Linux distros
* Mac: [install Xcode command line tools to get make](https://developer.apple.com/xcode/features/)
* Windows: [Click here for installation instructions](http://gnuwin32.sourceforge.net/packages/make.htm)
* OpenCV >= 4.1
* The OpenCV 4.1.0 source code can be found [here](https://github.com/opencv/opencv/tree/4.1.0)
* gcc/g++ >= 5.4
* Linux: gcc / g++ is installed by default on most Linux distros
* Mac: same deal as make - [install Xcode command line tools](https://developer.apple.com/xcode/features/)
* Windows: recommend using [MinGW](http://www.mingw.org/)
## Basic Build Instructions
1. Clone this repo.
2. Make a build directory in the top level directory: `mkdir build && cd build`
3. Compile: `cmake .. && make`
4. Run it: `./traffic_simulation`.