This project is a 2-D particle filter to localize a car given a map, sensor data (e.g., Lidar), and some initial localization information (analogous to what a GPS would provide) .
The vehicle 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.
- Ubuntu 16.04 LTS
- Udacity Self-Driving Car Nano-Degree Term2 Simulator
- cmake >= 3.5
- make >= 4.1
- gcc/g++ >= 5.4
Please refer the particle_filter.cpp
and particle_filter.h
inside the src folder.
The directory structure of this repository is as follows:
root
| build.sh
| clean.sh
| CMakeLists.txt
| README.md
| run.sh
|
|___data
| |
| | map_data.txt
|
|
|___src
| helper_functions.h
| main.cpp
| map.h
| particle_filter.cpp
| particle_filter.h
This project involves the Term 2 Simulator which can be downloaded here
This repository includes two files that can be used to set up and install uWebSocketIO for either Linux or Mac systems. For windows you can use either Docker, VMware, or even Windows 10 Bash on Ubuntu to install uWebSocketIO.
Once the install for uWebSocketIO is complete, the main program can be built and ran by doing the following from the project top directory.
- mkdir build
- cd build
- cmake ..
- make
- ./particle_filter
Alternatively some scripts have been included to streamline this process, these can be leveraged by executing the following in the top directory of the project:
- ./clean.sh
- ./build.sh
- ./run.sh
Tips for setting up your environment can be found here
- The particle filter is a powerful tool that realized the probabilistic Bayes's Filter for Localization
- The filter is capable to localize the vehicle with high percision using map data, sensor data (e.g., Lidar), and noisy GPS initial location