Udacity CarND Term 2, Project 1 - Extended Kalman Filters
In this project I utilized a kalman filter in C++ to estimate the state of a moving object of interest with noisy lidar and radar measurements. Passing the project required obtaining RMSE values that are lower than the tolerance outlined in the project rubric.
The code will make a prediction based on the sensor measurement and then update the expected position. See files in the 'src' folder for the primary C++ files making up this project.
Assuming you have 'cmake' and 'make' already:
- Clone this repo.
- Make a build directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./ExtendedKF
In two different simulated runs, my Extended Kalman Filter produces the below results. The x-position is shown as 'px', y-position as 'py', velocity in the x-direction is 'vx', while velocity in the y-direction is 'vy'. Residual error is calculated by mean squared error (MSE).
Test Kalman Filter
Input | MSE |
---|---|
px | 0.0973 |
py | 0.0855 |
vx | 0.4512 |
vy | 0.4399 |