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

Add //sensor/frame_id to SDF spec 1.12 #1454

Merged
merged 3 commits into from
Jul 8, 2024
Merged

Add //sensor/frame_id to SDF spec 1.12 #1454

merged 3 commits into from
Jul 8, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Jul 3, 2024

🎉 New feature

Related issue: gazebosim/gz-sensors#306

Summary

There are many ways to specify the sensor frame id in gazebo, e.g.

  • //sensor/gz_frame_id - Parsed by gz-sensors. Not in official sdf spec
  • //sensor/ignition_frame_id - Parsed by gz-sensors (removed in harmonic). Not in official sdf spec
  • //sensor/camera/optical_frame_id

This PR proposes a //sensor/frame_id sdf element to rule them all. Yes now it just adds one more way to do it but fear not, all others are being deprecated (ignition_frame_id is already gone)

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@@ -296,6 +299,8 @@ void defineCamera(pybind11::object module)
.value("BAYER_BGGR8", sdf::PixelFormatType::BAYER_BGGR8)
.value("BAYER_GBRG8", sdf::PixelFormatType::BAYER_GBRG8)
.value("BAYER_GRBG8", sdf::PixelFormatType::BAYER_GRBG8);

GZ_UTILS_WARN_RESUME__DEPRECATED_DECLARATION
Copy link
Member

Choose a reason for hiding this comment

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

do you mind adding the new APIs to pySensor.cc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes added. d64d5f6

Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 merged commit dcd0964 into main Jul 8, 2024
11 checks passed
@iche033 iche033 deleted the sensor_frame_id branch July 8, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants