Skip to content

Conversation

@jasiex01
Copy link

Overview

Author: Jan Hernas

Issue

Issue link: #750
Issue description: Current image rotating options affect the generated depth image making it unusable. This PR adds i_flip_published_image parameter to Sensors and Stereo that rotates uncompressed images just before publishing them to ROS. This will work on mono, rgb and thermal sensors as well as the stereo image.

I kept the i_sensor_img_orientation since it can be used to rotate images on camera and not do any post-processing if depth image can be disregarded.

Only uncompressed images are flipped since to rotate a ffmpeg image it would have to be decoded.

Changes

ROS distro: Jazzy
List of changes:

  • Added i_flip_published_image to sensor and stereo parameters
  • Uncompressed images are rotated if i_flip_published_image is true

Testing

Hardware used: OAK-D W PRO

Visuals from testing

Flipped image and pointcloud (camera was upside down):
oakrotated

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.

1 participant