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

Odometry Publisher Angular Velocity Singularity in 3D #2347

Closed
tomcreutz opened this issue Mar 28, 2024 · 0 comments · Fixed by #2348
Closed

Odometry Publisher Angular Velocity Singularity in 3D #2347

tomcreutz opened this issue Mar 28, 2024 · 0 comments · Fixed by #2348
Labels
bug Something isn't working

Comments

@tomcreutz
Copy link
Contributor

Environment

  • OS Version: Ubuntu 22.04
  • gz-sim8, 1d5114b

Description

  • Expected behavior: Publishing consistent angular velocities in 3 dimensions, even when rotating in gimbal lock rotations (such as pitch = 90deg)
  • Actual behavior: Angular velocity becomes a very high value when the vehicle rotates to a gimbal lock rotation

angular_velocity_bug

Resolution

The angular velocities were calculated using the Euler angles, which can lead to singularities. I was able to resolve the issue by utilizing the quaternion rotation representation of the model. I created a pull request with the fix (linking this issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant