gazebosim / gz-sensors

Provides numerous sensor models designed to generate realistic data from simulation environments.
https://gazebosim.org
Apache License 2.0
64 stars 58 forks source link

Use //sensor/frame_id sdf element #444

Closed iche033 closed 4 months ago

iche033 commented 4 months ago

🎉 New feature

Related issue: https://github.com/gazebosim/gz-sensors/issues/306 Depends on: https://github.com/gazebosim/sdformat/pull/1454

Summary

The different ways of specifying sensor frame id are being deprecated. This PR makes use of the new //sensor/frame_id sdf element introduced in https://github.com/gazebosim/sdformat/pull/1454. It also deprecates the use of the custom <gz_frame_id> tag. If both tags exist, <frame_id> will override <gz_frame_id>

Test it

All test files have been updated to use <frame_id> instead of <gz_frame_id> and the affected integration tests should pass, e.g. depth, thermal, rgbd camera integration tests.

Checklist

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.