-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
ekf2: fill pose and vel covariance in odometry #16929
Conversation
@bresch Could you review? |
9fc88e9
to
576d831
Compare
576d831
to
8c02ee2
Compare
8c02ee2
to
f53445c
Compare
float q4 = q(3); | ||
|
||
// numerator components | ||
float n1 = 2 * q1 * q2 + 2 * q2 * q4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did these come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will see if this derivation can be added to our existing sympy script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/priseborough/PX4-Autopilot/tree/pr-ekf2_derivation_update for a symbolic derivation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nuno's original PR for context. #11092
// Protect against division by 0 | ||
float d1 = n1 * n1 + n2 * n2; | ||
float d2 = n3 * n3 + n4 * n4; | ||
d1 = math::max(0.0f, d1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't protect against /0 where we divide by d1. Likewise for d2.
Rolled into #19966. |
Resurrecting #11092.