|
TinyRobotics
|
A lightweight, fixed-size Kalman Filter for embedded state estimation. More...
#include <KalmanFilter.h>

Public Member Functions | |
| void | predict () |
| void | update (const Matrix< NZ, 1 > &z) |
Public Attributes | |
| Matrix< NX, 1 > | x |
| Matrix< NX, NX > | P |
| Matrix< NX, NX > | Fmat |
| Matrix< NX, NX > | Q |
| Matrix< NZ, NX > | H |
| Matrix< NZ, NZ > | R |
| Matrix< NX, NX > | I = Matrix<NX, NX>::identity() |
A lightweight, fixed-size Kalman Filter for embedded state estimation.
This template class implements a discrete-time, linear Kalman Filter for real-time state estimation in embedded and robotics applications. It is designed for efficiency and simplicity, using static, fixed-size matrices and minimal dynamic memory. The filter estimates the internal state of a process given noisy measurements and a mathematical model of the system dynamics.
predict() for time update, update(z) for measurement updateThe Kalman Filter models the system as:
x_k = F * x_{k-1} + w (state transition) z_k = H * x_k + v (measurement)
where:
| NX | Number of state variables (state vector dimension) |
| NZ | Number of measurement variables (measurement vector dimension) |