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

custom_rpy parent_frame should be set to 'world' in IMUs #212

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

adityapande-1995
Copy link
Contributor

@adityapande-1995 adityapande-1995 commented Apr 4, 2022

Signed-off-by: Aditya aditya050995@gmail.com

🦟 Bug fix

Summary

Originally, the custom_rpy orientation reference frame for IMUs, added here : #186, accepts a parent_frame w.r.t which the roll, pitch, yaw are applied. If left blank, this should default to the sensor's parent frame (http://sdformat.org/spec?ver=1.9&elem=sensor#custom_rpy_parent_frame), whereas in the current implementation it defaults to world frame.

It is not possible to support every possible parent fame for now and only the 'world' can be set as the parent frame, due to limitations with sdf parsing. This PR makes custom_rpy only accept world as a parent frame, and anything else is rejected for now. Check this for the original discussion : gazebosim/gz-sim#1320 (comment)

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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: Aditya <aditya050995@gmail.com>
@codecov
Copy link

codecov bot commented Apr 4, 2022

Codecov Report

Merging #212 (8089d2f) into ign-sensors6 (62da728) will not change coverage.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##           ign-sensors6     #212   +/-   ##
=============================================
  Coverage         72.55%   72.55%           
=============================================
  Files                33       33           
  Lines              3094     3094           
=============================================
  Hits               2245     2245           
  Misses              849      849           
Impacted Files Coverage Δ
src/ImuSensor.cc 85.52% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62da728...8089d2f. Read the comment docs.

Copy link

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@adityapande-1995
Copy link
Contributor Author

The failures on homebrew are flaky, and not due to this particular PR.

@osrf-triage
Copy link

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

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

Successfully merging this pull request may close these issues.

3 participants