Extended-Kalman-Filter
Udacity CarND Term 2, Project 1 - Extended Kalman Filters
Project Basics
In this project, I used C++ to write a program taking in radar and lidar data to track position using Extended Kalman Filters.
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.
Build instructions
Assuming you have 'cmake' and 'make' already:
- Clone this repo.
- Make a build directory:
mkdir build && cd build - Compile:
cmake .. && make - Run it:
./ExtendedKF
Results
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 One
| Input | MSE |
|---|---|
| px | 0.0974 |
| py | 0.0855 |
| vx | 0.4517 |
| vy | 0.4404 |
Test Two
| Input | MSE |
|---|---|
| px | 0.0726 |
| py | 0.0965 |
| vx | 0.4216 |
| vy | 0.4932 |
On this page
Languages
C++95.0%Makefile2.7%C1.7%CMake0.6%
Contributors
Created April 15, 2017
Updated March 7, 2019