Concurrent-Traffic-Simulator

所属分类:超算/并行计算
开发工具:Makefile
文件大小:0KB
下载次数:0
上传日期:2022-08-11 23:38:46
上 传 者sh-1993
说明:  利用并发编程和安全的c++原则(如线程)(同步和异步......)构建流量模拟器的项目...,
(Project to build a traffic simulator leveraging c++ principles of concurrent programming and saftey, such as threads (synchronous and asynchronous), mutexes, locks and message queues.)

文件列表:
CMakeLists.txt (523, 2022-08-11)
build/ (0, 2022-08-11)
build/.cmake/ (0, 2022-08-11)
build/.cmake/api/ (0, 2022-08-11)
build/.cmake/api/v1/ (0, 2022-08-11)
build/.cmake/api/v1/query/ (0, 2022-08-11)
build/.cmake/api/v1/query/client-vscode/ (0, 2022-08-11)
build/.cmake/api/v1/query/client-vscode/query.json (110, 2022-08-11)
build/CMakeCache.txt (13630, 2022-08-11)
build/CMakeFiles/ (0, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/ (0, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CMakeCCompiler.cmake (2219, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CMakeCXXCompiler.cmake (4888, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CMakeDetermineCompilerABI_C.bin (8640, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CMakeDetermineCompilerABI_CXX.bin (8432, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CMakeSystem.cmake (394, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdC/ (0, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdC/CMakeCCompilerId.c (18988, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdC/a.out (8800, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdCXX/ (0, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdCXX/CMakeCXXCompilerId.cpp (18524, 2022-08-11)
build/CMakeFiles/3.13.0-rc2/CompilerIdCXX/a.out (8592, 2022-08-11)
build/CMakeFiles/CMakeDirectoryInformation.cmake (672, 2022-08-11)
build/CMakeFiles/CMakeOutput.log (45528, 2022-08-11)
build/CMakeFiles/Makefile.cmake (2326, 2022-08-11)
build/CMakeFiles/Makefile2 (3527, 2022-08-11)
build/CMakeFiles/TargetDirectories.txt (245, 2022-08-11)
build/CMakeFiles/cmake.check_cache (85, 2022-08-11)
build/CMakeFiles/feature_tests.bin (12480, 2022-08-11)
build/CMakeFiles/feature_tests.c (688, 2022-08-11)
build/CMakeFiles/feature_tests.cxx (10011, 2022-08-11)
build/CMakeFiles/progress.marks (2, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/ (0, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/CXX.includecache (1312, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/DependInfo.cmake (1758, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/build.make (17328, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/cmake_clean.cmake (660, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/depend.internal (16550, 2022-08-11)
build/CMakeFiles/traffic_simulation.dir/depend.make (31518, 2022-08-11)
... ...

# CPPND: Program a Concurrent Traffic Simulation This is the project for the fourth course in the [Udacity C++ Nanodegree Program](https://www.udacity.com/course/c-plus-plus-nanodegree--nd213): Concurrency. ## Project Motivation This project develops 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 must be equipped with a traffic light. In this project, I build a suitable and thread-safe communication protocol between vehicles and intersections to complete the simulation. I leverage concurrent programming (such as mutexes, locks and message queues) to implement the traffic lights and integrate them properly in the code base. ## Dependencies for Running Locally * 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`.

近期下载者

相关文件


收藏者