Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the joseph form for the posteriori estimate covariance matrix #1

Open
jespersmith opened this issue Jan 20, 2021 · 2 comments
Open

Comments

@jespersmith
Copy link

Using the joseph form to calculate the posteriori estimate covariance matrix could result in a more stable filter.

Source (search for joseph in the text):
https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python/blob/master/07-Kalman-Filter-Math.ipynb

@georgwi
Copy link
Collaborator

georgwi commented Jan 20, 2021

If I remember correctly I was considering that at the time but was hesitant since we where very concerned with speed and that form adds some more calculations. I should have made this an optional feature. You probably found the spot where the correction of the covariance is done:
nativeEKF/NativeFilterMatrixOps.cpp - line 69

If you want to switch it out and you find it is not significantly slower I'd be in favor of swapping them. However, those matrices get bigger with more DoFs so the speed might suffer more for larger robots.

@jespersmith
Copy link
Author

I will take that in consideration and potentially make it optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants