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

ekf2: fill pose and vel covariance in odometry #16929

Closed
wants to merge 1 commit into from

Conversation

dagar
Copy link
Member

@dagar dagar commented Feb 23, 2021

Resurrecting #11092.

@LorenzMeier
Copy link
Member

@bresch Could you review?

@dagar dagar changed the title ekf2: fill pose and vel covariance in odometery ekf2: fill pose and vel covariance in odometer Mar 6, 2021
@dagar dagar force-pushed the pr-ekf2_odometry_covariance branch from 9fc88e9 to 576d831 Compare March 6, 2021 03:06
@dagar dagar changed the title ekf2: fill pose and vel covariance in odometer ekf2: fill pose and vel covariance in odometry Mar 6, 2021
@dagar dagar requested review from TSC21 and bresch March 6, 2021 16:32
@dagar dagar force-pushed the pr-ekf2_odometry_covariance branch from 576d831 to 8c02ee2 Compare March 7, 2021 15:41
@dagar dagar force-pushed the pr-ekf2_odometry_covariance branch from 8c02ee2 to f53445c Compare March 23, 2021 19:25
@stale stale bot added the stale label Jun 26, 2021
float q4 = q(3);

// numerator components
float n1 = 2 * q1 * q2 + 2 * q2 * q4;
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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

@stale stale bot removed the stale label Nov 4, 2021
// Protect against division by 0
float d1 = n1 * n1 + n2 * n2;
float d2 = n3 * n3 + n4 * n4;
d1 = math::max(0.0f, d1);
Copy link
Contributor

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.

@PX4 PX4 deleted a comment from stale bot Nov 4, 2021
@dagar
Copy link
Member Author

dagar commented Jul 26, 2022

Rolled into #19966.

@dagar dagar closed this Jul 26, 2022
@dagar dagar deleted the pr-ekf2_odometry_covariance branch July 26, 2022 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants