{"id":15902658,"url":"https://github.com/nikolasent/particle-filter","last_synced_at":"2026-03-06T22:03:05.710Z","repository":{"id":205011052,"uuid":"89522428","full_name":"NikolasEnt/Particle-Filter","owner":"NikolasEnt","description":"Udacity Self-Driving Car Engineer Nanodegree. Project: Kidnapped Vehicle","archived":false,"fork":false,"pushed_at":"2017-05-03T20:26:09.000Z","size":314,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T15:46:35.649Z","etag":null,"topics":["carnd","localization","particle-filter","particle-filter-localization","self-driving-car"],"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/NikolasEnt.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}},"created_at":"2017-04-26T20:12:09.000Z","updated_at":"2019-05-12T06:49:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b724cae-c93d-4f13-a3a9-5f80e3134c8a","html_url":"https://github.com/NikolasEnt/Particle-Filter","commit_stats":null,"previous_names":["nikolasent/particle-filter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NikolasEnt/Particle-Filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolasEnt%2FParticle-Filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolasEnt%2FParticle-Filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolasEnt%2FParticle-Filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolasEnt%2FParticle-Filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikolasEnt","download_url":"https://codeload.github.com/NikolasEnt/Particle-Filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolasEnt%2FParticle-Filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30200756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["carnd","localization","particle-filter","particle-filter-localization","self-driving-car"],"created_at":"2024-10-06T11:42:12.084Z","updated_at":"2026-03-06T22:03:05.692Z","avatar_url":"https://github.com/NikolasEnt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kidnapped Vehicle\nThis Project is the eighth task (Project 3 of Term 2) of the Udacity Self-Driving Car Nanodegree program. The main goal of the project is to implement a 2D Particle filter for a localization task in C++.\n\nThe project was created with the Udacity [Starter Code](https://github.com/udacity/CarND-Kidnapped-Vehicle-Project).\n\n## Overview\nThis repository contains all the code needed to complete the final project for the Localization course in Udacity's Self-Driving Car Nanodegree.\n\n#### Submission\nAll you will submit is your completed version of `particle_filter.cpp`, which is located in the `src` directory. You should probably do a `git pull` before submitting to verify that your project passes the most up-to-date version of the grading code (there are some parameters in `src/main.cpp` which govern the requirements on accuracy and run time.)\n\n## Project Introduction\nYour robot has been kidnapped and transported to a new location! Luckily it has a map of this location, a (noisy) GPS estimate of its initial location, and lots of (noisy) sensor and control data.\n\nIn this project you will implement a 2 dimensional particle filter in C++. Your particle filter will be given a map and some initial localization information (analogous to what a GPS would provide). At each time step your filter will also get observation and control data. \n\n## Running the Code\nOnce you have this repository on your machine, `cd` into the repository's root directory and run the following commands from the command line:\n\n```\n\u003e ./clean.sh\n\u003e ./build.sh\n\u003e ./run.sh\n```\n\n\u003e **NOTE**\n\u003e If you get any `command not found` problems, you will have to install \n\u003e the associated dependencies (for example, \n\u003e [cmake](https://cmake.org/install/))\n\nIf everything worked you should see something like the following output:\n\nTime step: 2444\nCumulative mean weighted error: x .1 y .1 yaw .02\nRuntime (sec): 38.187226\nSuccess! Your particle filter passed!\n\n```\nOtherwise you might get\n.\n.\n.\nTime step: 100\nCumulative mean weighted error: x 39.8926 y 9.60949 yaw 0.198841\nYour x error, 39.8926 is larger than the maximum allowable error, 1\n```\n\nYour job is to build out the methods in `particle_filter.cpp` until the last line of output says:\n\n```\nSuccess! Your particle filter passed!\n```\n\n# Implementing the Particle Filter\nThe directory structure of this repository is as follows:\n\n```\nroot\n|   build.sh\n|   clean.sh\n|   CMakeLists.txt\n|   README.md\n|   run.sh\n|\n|___data\n|   |   control_data.txt\n|   |   gt_data.txt\n|   |   map_data.txt\n|   |\n|   |___observation\n|       |   observations_000001.txt\n|       |   ... \n|       |   observations_002444.txt\n|   \n|___src\n    |   helper_functions.h\n    |   main.cpp\n    |   map.h\n    |   particle_filter.cpp\n    |   particle_filter.h\n```\n\nThe only file you should modify is `particle_filter.cpp` in the `src` directory. The file contains the scaffolding of a `ParticleFilter` class and some associated methods. Read through the code, the comments, and the header file `particle_filter.h` to get a sense for what this code is expected to do.\n\nIf you are interested, take a look at `src/main.cpp` as well. This file contains the code that will actually be running your particle filter and calling the associated methods.\n\n## Inputs to the Particle Filter\nYou can find the inputs to the particle filter in the `data` directory. \n\n#### The Map*\n`map_data.txt` includes the position of landmarks (in meters) on an arbitrary Cartesian coordinate system. Each row has three columns\n1. x position\n2. y position\n3. landmark id\n\n\u003e * Map data provided by 3D Mapping Solutions GmbH.\n\n\n#### Control Data\n`control_data.txt` contains rows of control data. Each row corresponds to the control data for the corresponding time step. The two columns represent\n1. vehicle speed (in meters per second)\n2. vehicle yaw rate (in radians per second)\n\n#### Observation Data\nThe `observation` directory includes around 2000 files. Each file is numbered according to the timestep in which that observation takes place. \n\nThese files contain observation data for all \"observable\" landmarks. Here observable means the landmark is sufficiently close to the vehicle. Each row in these files corresponds to a single landmark. The two columns represent:\n1. x distance to the landmark in meters (right is positive) RELATIVE TO THE VEHICLE. \n2. y distance to the landmark in meters (forward is positive) RELATIVE TO THE VEHICLE.\n\n\u003e **NOTE**\n\u003e The vehicle's coordinate system is NOT the map coordinate system. Your \n\u003e code will have to handle this transformation.\n\n## Success Criteria\nIf your particle filter passes the current grading code (you can make sure you have the current version at any time by doing a `git pull`), then you should pass! \n\nThe two things the grading code is looking for are:\n\n1. **Accuracy**: your particle filter should localize vehicle position and yaw to within the values specified in the parameters `max_translation_error` (maximum allowed error in x or y) and `max_yaw_error` in `src/main.cpp`.\n2. **Performance**: your particle filter should complete execution within the time specified by `max_runtime` in `src/main.cpp`.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolasent%2Fparticle-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolasent%2Fparticle-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolasent%2Fparticle-filter/lists"}