Fix frame_id in rgbd_camera#458
Conversation
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
iche033
left a comment
There was a problem hiding this comment.
Thanks for the fix. I was able to reproduce the problem and confirms that this fixes it for Harmonic when the frame id is specified via <optical_frame_id>.
Just one minor cpplint issue
|
@iche033 do we need to backport this to other distros? |
|
Doing a drive-by comment here since I saw the merge notification. I'm not entirely sure if this is a bug or a feature needed to realign images from Gazebo to show up correctly in RViz through TF lookups. Before going down the backport path, I would validate that this does not break the example used in the original PR #259 |
|
Hi, Actually, this PR fixes to publish in a valid frame, but this is not the correct frame. If I use
Best |

🦟 Bug fix
Fixes [No number]
Summary
When using rgbd_camera as sensor,
frame_idis filled withFrameId()(for exampletiago/head_2_link/head_front_camera_frame_sensor), instead ofOpticalFrameId()(for example,head_front_camera_rgb_optical_frame). So, theframe_idin the messages is wrong.This PR fixes it.
I hope it helps. Any comment is welcome :)
Checklist
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.