IMU sensor API to get world ref frame and heading offset #186
IMU sensor API to get world ref frame and heading offset #186adityapande-1995 merged 24 commits intoign-sensors6from
Conversation
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Codecov Report
@@ Coverage Diff @@
## ign-sensors6 #186 +/- ##
===============================================
Coverage ? 76.44%
===============================================
Files ? 29
Lines ? 2908
Branches ? 0
===============================================
Hits ? 2223
Misses ? 685
Partials ? 0 Continue to review full report at Codecov.
|
TODO
|
Signed-off-by: Aditya <aditya050995@gmail.com>
|
Moved localization tag parsing logic to a separate method. This way the code in |
scpeters
left a comment
There was a problem hiding this comment.
I have some quick comments about the variable names which I think will clarify what the variables mean
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
scpeters
left a comment
There was a problem hiding this comment.
I'm trying to reproduce the error you are seeing
let me know if you need help debugging this |
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
|
Relevant PR in IMU system : gazebosim/gz-sim#1320 |
Signed-off-by: Aditya <aditya050995@gmail.com>
scpeters
left a comment
There was a problem hiding this comment.
I'm still looking through the tests, but I have a few comments for now
| auto sensor = mgr.CreateSensor<ignition::sensors::ImuSensor>( | ||
| imuSDF); | ||
| sensor->SetWorldFrameOrientation(math::Quaterniond(0, 0, 0), | ||
| sensors::WorldFrameEnumType::ENU); |
There was a problem hiding this comment.
Currently, SetWorldFrameOrientation is also responsible for applying the "CUSTOM" tag. I could separate this logic in a separate method though.
| imuSDF); | ||
|
|
||
| sensor->SetWorldFrameOrientation(math::Quaterniond(0, 0, 0), | ||
| sensors::WorldFrameEnumType::ENU); |
There was a problem hiding this comment.
Same reason above.
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
Signed-off-by: Aditya <aditya050995@gmail.com>
a265be9 to
3f42ba6
Compare
scpeters
left a comment
There was a problem hiding this comment.
ok, two more tiny nits, and then I'll be ready to approve
Signed-off-by: Aditya <aditya050995@gmail.com>
dd33604 to
735a61f
Compare
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1 |
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
🎉 New feature
Summary
As per the discussion here : #178 (comment), this PR aims to expose
SetWorldFrameOrientationAPI which accepts heading offset and world frame orientation (ENUby default). If the<localization>tag for IMU sensor is set to any named frame (https://github.com/ignitionrobotics/sdformat/blob/6404afdf959982f759526dea8700037b50fa7758/sdf/1.9/imu.sdf#L7-L30), the sensor should output its orientation with respect to the frame specified in the<localization>tag.There would be another follow up PR in IMU sensor system to use this API
Test it
Added some test cases to
ImuSensor_TEST.ccChecklist
codecheckpassed (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-bymessages.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸