{"id":18574798,"url":"https://github.com/maxritter/cppnd-traffic-simulation","last_synced_at":"2025-10-25T04:02:41.338Z","repository":{"id":149103072,"uuid":"194653454","full_name":"maxritter/CppND-Traffic-Simulation","owner":"maxritter","description":"Traffic simulation using multithreading for the C++ Nanodegree","archived":false,"fork":false,"pushed_at":"2019-07-11T07:08:51.000Z","size":17560,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T21:04:53.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxritter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-01T10:41:58.000Z","updated_at":"2020-11-11T13:54:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"90b0c8cc-7a01-4962-810e-af92055346f7","html_url":"https://github.com/maxritter/CppND-Traffic-Simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxritter/CppND-Traffic-Simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxritter%2FCppND-Traffic-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxritter%2FCppND-Traffic-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxritter%2FCppND-Traffic-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxritter%2FCppND-Traffic-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxritter","download_url":"https://codeload.github.com/maxritter/CppND-Traffic-Simulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxritter%2FCppND-Traffic-Simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280901420,"owners_count":26410586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:16:31.234Z","updated_at":"2025-10-25T04:02:41.333Z","avatar_url":"https://github.com/maxritter.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Concurrent Traffic Simulation\n\n\u003cimg src=\"images/traffic_simulation.gif\"/\u003e\n\nThis is the project for the fourth course in the [Udacity C++ Nanodegree Program](https://www.udacity.com/course/c-plus-plus-nanodegree--nd213): Concurrency. \n\nIt implements traffic lights into a traffic simulation of vehicles driving on streets and turning on intersections. The first car arriving at an intersection will be allowed to enter it and advance, but only if the traffic light is green. If it is not, the car has to wait for the event to happen.\n\nThreads and synchronization mechanisms of C++11 are used to accomplish this task in a concurrent way.\n\nThe schematic of the program looks like this:\n\n![](images/schematic.png)\n\n## Dependencies for Running Locally\n* cmake \u003e= 2.8\n  * All OSes: [click here for installation instructions](https://cmake.org/install/)\n* make \u003e= 4.1 (Linux, Mac), 3.81 (Windows)\n  * Linux: make is installed by default on most Linux distros\n  * Mac: [install Xcode command line tools to get make](https://developer.apple.com/xcode/features/)\n  * Windows: [Click here for installation instructions](http://gnuwin32.sourceforge.net/packages/make.htm)\n* OpenCV \u003e= 4.1\n  * The OpenCV 4.1.0 source code can be found [here](https://github.com/opencv/opencv/tree/4.1.0)\n* gcc/g++ \u003e= 5.4\n  * Linux: gcc / g++ is installed by default on most Linux distros\n  * Mac: same deal as make - [install Xcode command line tools](https://developer.apple.com/xcode/features/)\n  * Windows: recommend using [MinGW](http://www.mingw.org/)\n\n## Basic Build Instructions\n\n1. Clone this repo.\n2. Make a build directory in the top level directory: `mkdir build \u0026\u0026 cd build`\n3. Compile: `cmake .. \u0026\u0026 make`\n4. Run it: `./traffic_simulation`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxritter%2Fcppnd-traffic-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxritter%2Fcppnd-traffic-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxritter%2Fcppnd-traffic-simulation/lists"}