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

Robot doesn't localize properly with rotated IMU #2

Open
maxpolzin opened this issue Sep 4, 2023 · 1 comment
Open

Robot doesn't localize properly with rotated IMU #2

maxpolzin opened this issue Sep 4, 2023 · 1 comment

Comments

@maxpolzin
Copy link

maxpolzin commented Sep 4, 2023

When the IMU is rotated, e.g. 90 degrees yawed, the robot_localization is not working.
When commanded to move forward, the robot_localization output does indicate that the robot is moving sideways.

Screencast.from.09-04-2023.03.34.54.PM.webm
@maxpolzin
Copy link
Author

maxpolzin commented Sep 4, 2023

That was a tough one. When the orientation_reference_frame tag is not provided, see art-e-fact@7f4121b, the simulated IMU returns measurements relative to its first measurement.

https://github.com/gazebosim/gz-sim/blob/2dbcc6c872a204e44f4dd3e3be8c44a98b04452f/src/systems/imu/Imu.cc#L228

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

No branches or pull requests

1 participant