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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Odometry Publisher Angular Velocity Singularity in 3D #2348

Open
wants to merge 8 commits into
base: gz-sim8
Choose a base branch
from

Conversation

tomcreutz
Copy link

@tomcreutz tomcreutz commented Mar 28, 2024

馃 Bug fix

Fixes #2347

Summary

The angular velocity was calculated using euler angles which led to singularities (see #2347 for a more detailed description). In addition to the fix, I also removed the usage of the rolling mean accumulator for angular velocity. While I see its usefulness for outlier rejections, I still didn't really see why this would be necessary. If the maintainers want to keep this mean accumulator, I'll be happy to reimplement it. Also the commit changes seem a bit messy, I was using clang format with the Google C++ Style guide as configuration, which leaded to the changed formatting that you can see in the pull request.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
@github-actions github-actions bot added the 馃幍 harmonic Gazebo Harmonic label Mar 28, 2024
@mjcarroll
Copy link
Contributor

Also the commit changes seem a bit messy, I was using clang format with the Google C++ Style guide as configuration, which leaded to the changed formatting that you can see in the pull request.

Can you roll back the style changes please? We need to just update the logic without altering the style of the entire file.

Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
Previously the angular velocity was represented in the world coordinate frame. This change will rotate it to be represented in the body coordinate frame

Signed-off-by: Tom Creutz <tcreutz97@gmail.com>
@tomcreutz
Copy link
Author

Hi @mjcarroll,
is there anything more that needs to be changed to merge this pull request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃幍 harmonic Gazebo Harmonic
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

Odometry Publisher Angular Velocity Singularity in 3D
2 participants