-
Notifications
You must be signed in to change notification settings - Fork 270
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
Supply world frame orientation and heading to IMU sensor #1320
Conversation
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Adding expected behavior of the "CUSTOM" tag. |
Signed-off-by: Aditya <[email protected]>
src/systems/imu/Imu.cc
Outdated
heading = sphericalCoordinates.HeadingOffset().Radian(); | ||
} | ||
|
||
sensor->SetWorldFrameOrientation(math::Quaterniond(0, 0, heading), |
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.
Should this function only be executed if the World
has SphericalCoordinates
?
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.
sensor->SetWorldFrameOrientation
should be run irrespective of whether the World has SphericalCoordinates
because that is where the <localization>
tag in IMU is parsed. Added here : https://github.com/ignitionrobotics/ign-sensors/blob/33a79c6524e69dbf4006815458cddef1fec3f785/src/ImuSensor.cc#L315
For the heading = ....
line, that was just to make sure it defaults to 0, and is then overridden if the world has spherical coordinates. Maybe I can remove that if sphericalCoordinates
has a default with 0 heading.
Co-authored-by: Nate Koenig <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
…ding tag in world file Signed-off-by: Aditya <[email protected]>
Signed-off-by: Aditya <[email protected]>
4c82d07
to
b2ce322
Compare
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.
Tests are great @adityapande-1995 !
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Aditya <[email protected]>
75dbd0a
to
91c10b9
Compare
Signed-off-by: Aditya <[email protected]>
…ystem' of https://github.com/ignitionrobotics/ign-gazebo into aditya/named_frames_imu_system
Signed-off-by: Aditya <[email protected]>
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.
Patch looks good, but some of the tests are failing CI
Yeah, I don't think the new release has been applied to homebrew yet : osrf/homebrew-simulation#1863 |
Signed-off-by: Aditya <[email protected]>
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
🎉 New feature
Summary
This PR, along with gazebosim/gz-sensors#186, enables the user to specify named orientation frames like ENU and NED as
<localization>
reference tags for the IMU sensor. The sensor should output the orientation based on the frame specified in the localization tag.This should also take into account the orientation of the world and the
heading_dec
offset in the<spherical_coordiantes>
tag. Currently, spherical coordinates tag nly supports the ENU world fame.Test it
2 integration tests have been added that use a combination of
heading_deg
andlocalization
tags to get different orientations for IMUs.Checklist
codecheck
passed (See contributing)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.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸