Invariant EKF
Overview: Extended Kalman Filter
Section titled “Overview: Extended Kalman Filter”Please read over the Kalman Filter and Sensor Fusion section of the Localization page and view the additional resources before starting here. The Extended Kalman Filter (EKF) is a version of the Kalman filter adapted for nonlinear systems, and is the standard used in navigation systems today. Instead of representing process dynamics through a constant matrix, which is only suitable for linear processes, the EKF uses the Jacobian of the process dynamics model. Evaluated at the current state, it provides a local linear approximation for an otherwise nonlinear process. This approximation is then used in the regular Kalman filter as matrix . You can think of this as similar to a tangent line approximation you may have done in calculus.
Highly recommend checking out these resources for a more detailed explanation and algorithm equations:
- https://en.wikipedia.org/wiki/Extended_Kalman_filter
- https://www.alanzucconi.com/2022/07/24/extended-kalman-filter/
- https://www.youtube.com/watch?v=E-6paM_Iwfc
Invariant EKF
Section titled “Invariant EKF”Although the EKF is powerful, the dependence of the error covariance on the state estimate sometimes leads to faulty convergence. Since the error covariance and state estimate depend on each other, inaccuracies in one lead to inaccuracies in the other, causing a compounding error to be generated by the filter’s feedback loop. To solve this problem, the invariant EKF uses properties of Lie groups to recast the error dynamics to a linear model. This means that the error covariance no longer depends on the state estimate, which ultimately leads to better convergence.
I-EKF resources:
- public ROB 530 lectures: https://www.youtube.com/watch?v=3ZBzZigz8GQ, https://www.youtube.com/watch?v=-woCjTB9Blo
- github repo of ROB 530 resources (code examples): https://github.com/UMich-CURLY-teaching/UMich-ROB-530-public
- https://kth.diva-portal.org/smash/get/diva2:1632658/FULLTEXT01.pdf
Sensors used in the prediction step typically don’t provide a direct measurement of the rover’s pose. Instead, information about the rover’s pose can be derived using what we know about physics and kinematics.
- gyroscope
- accelerometer
- horizontal/vertical velocity
Sensors used in the correction step are usually direct measurements of the rover’s pose.
- RTK position
- magnetometer
- accelerometer (can provide roll/pitch)
- RTK heading/pitch
Goals and steps
Section titled “Goals and steps”Test in simulation and on rover
Section titled “Test in simulation and on rover”We have already implemented the IEKF on the loc/iekf branch, but it is not fully tested as of now. I would like to test it on the cart and, assuming it performs adequately, merge it into main.