Kalman Filter: An Implementation Perspective
This post will summarize the basic steps required to implement Kalman filter in as a computer program. For this particular post, we will not assume the linearity of the process or measurement models, instead we will assume a generic model and derive Kalman Filtering steps for them.
We will divide the prediction and update step each into three sub-steps.
For any time step \(k\),
A. Prediction step
- Based on the prior measurements \(\mathbb{Z}_{k-1}\), compute the expected value of the prior prediction \(\hat{x}_k^-\).
- Determine the error covariance of the prior state estimate.
- Predict the measurement using prior state estimate.
B. Correction/Update step
- Compute the Kalman gain matrix.
- Determine expected state vector of the posterior estimation.
- Compute the covariance matrix of the posterior estimation.
\(\Sigma_{\tilde{x}_k}^+ = \Sigma_{\tilde{x}_k}^- - L_k\Sigma_{\tilde{z}_k}L_k^T\) (Using the last proof in the previous post)
Leave a comment