gazebosim / gz-sensors

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

[FIX] frame_id for depth camera point cloud in Fortress #452

Open MrKeith99 opened 3 months ago

MrKeith99 commented 3 months ago

Fixes https://github.com/gazebosim/gz-sensors/issues/239 and https://github.com/husarion/rosbot_ros/issues/55 for Gazebo Fortress

Summary

Using ignition_frame_id did not change the frame id in the depth camera point cloud message.

With this fix, the depth camera point cloud message's frame id will be updated according to the set ignition_frame_id.

🦟 Bug fix

Fixes #

Summary

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.

πŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”Έ

πŸŽ‰ New feature

Closes #

Summary

Test it

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.

πŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”Έ

➑️ Forward port

Port to

Branch comparison: https://github.com/gazebosim//compare/...

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

πŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”ΈπŸ”Έ

🎈 Release

Preparation for <X.Y.Z> release.

Comparison to <x.y.z>: https://github.com/gazebosim//compare/...

Needed by <PR(s)>

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.

iche033 commented 3 months ago

I tested running fortress with the current ign-sensors6 branch, and <ignition_frame_id> works for me. Do you have a minimal example that shows <ignition_frame_id> is not working?

Here's my test world file: depth_frame_id.sdf

To run:

ign gazebo -v 4 -r  depth_frame_id.sdf

verify frame id:

ign topic -e -t /depth/points | grep header -A 8

and it prints out:

header {
  stamp {
    nsec: 784000000
  }
  data {
    key: "frame_id"
    value: "my_frame_id"
  }
  data {
--

the frame id is my_frame_id which is what I set in the <ignition_frame_id> field in depth_frame_id.sdf