Skip to content

Add optical frame publisher#4

Merged
caguero merged 1 commit intomainfrom
optical_frame_publisher
Dec 24, 2021
Merged

Add optical frame publisher#4
caguero merged 1 commit intomainfrom
optical_frame_publisher

Conversation

@iche033
Copy link
Copy Markdown
Collaborator

@iche033 iche033 commented Dec 17, 2021

Code adapted from here for ROS2.

Image data published by Ignition is in robot body frame (x forward, y left, z up) so added a optical_frame_publisher node that takes the existing msg data, convert it to optical frame (x right, y down, z forward) by broadcasting a new frame id with _optical suffix, and republishing the msg with updated frame_id.

To test, spawn the UAV as usual, and list the topics to see the new */optical/image_raw and */optical/camera_info topics. You can also echo the */optical/camera_info topic to see that the its frame_id has the _optical suffix.

Signed-off-by: Ian Chen ichen@openrobotics.org

Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 requested a review from caguero December 17, 2021 01:58
Copy link
Copy Markdown
Collaborator

@caguero caguero left a comment

Choose a reason for hiding this comment

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

Works for me and I can see the new topics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants