This repository contains all the code needed to complete the final project for the Localization course in Udacity's Self-Driving Car Nanodegree.
all implemented codes can be found in particle_filter.cpp
- initialization - using GPS input
ParticleFilter::init
The most practical way to initialize our particles and generate real time output, is to make an initial estimate using GPS input. As with all sensor based operations, this step is impacted by noise. - Prediction - add control input (yaw rate & velocity)
ParticleFilter::prediction
- Update- update particle weights using map landmark positions and feature measurements
ParticleFilter::updateWeights
- Transform car coordinate to map coordinate
- Data Associations -Associate the nearest matched observed coordinate with map landmarks
ParticleFilter::dataAssociation
- Calculate the particle's final weight
- Resample
ParticleFilter::resample()
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
The particle filter successfully passes the current grading code in the simulator.