Skip to content

This tool is a traffic simulator. A proper and thread-safe communication protocol is used between vehicles and intersections to complete the simulation.

License

Notifications You must be signed in to change notification settings

xichen-de/ConcurrentTrafficSimulation

Repository files navigation

Concurrent Traffic Simulation

Description

CI

This tool is a traffic simulator. A proper and thread-safe communication protocol is used between vehicles and intersections to complete the simulation.

The project uses the knowledge of concurrent programming in C++, namely mutexes, locks and message queues, to implement the traffic lights and integrate them properly into the code base.

example

Usage

Dependencies

  • cmake >= 2.8
  • make >= 4.1
  • OpenCV >= 4.1
  • gcc/g++ >= 5.4

Clone the repository

git clone https://github.com/xichen-de/ConcurrentTrafficSimulation.git

Build and compile

To compile the project, first, create a build directory and change to that directory:

mkdir build && cd build

Run the program

The executable will be placed in the build directory. From within build, you can run the project as follows:

./traffic_simulation

About

This tool is a traffic simulator. A proper and thread-safe communication protocol is used between vehicles and intersections to complete the simulation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published