This project implements a Kalman Filter to process data from sensors. The Kalman Filter is a powerful tool for estimating the state of a system based on noisy measurements. This implementation demonstrates how to initialize, predict, and update the state estimates using the Kalman Filter.
The Kalman Filter is implemented in c++ and is designed to handle a state vector of arbitrary dimensions. The filter can be used to process sensor data and provide estimates of the true state of the system.
- gcc compiler with c++11 support
- Matplotlib
-
Clone the repository:
git clone https://github.com/RaghuTheFire/kalman-filter.git cd kalman-filter -
Install the required packages:
pip3 install numpy matplotlib
- Run the
kalman_filter.cppscript to see the Kalman Filter in action:
g++ kalman_filter.cpp -std=c++11 -I /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I /usr/local/lib/python3.7/site-packages/numpy/core/include -L /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib -lpython3.7
- The script will simulate some sensor data, process it using the Kalman Filter, and display the results.
The output will include plots of the measurements and the Kalman Filter predictions for each component of the state vector.

