Image flipping on publishing to ROS #751
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_imageparameter 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_orientationsince 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:
i_flip_published_imageto sensor and stereo parametersi_flip_published_imageistrueTesting
Hardware used: OAK-D W PRO
Visuals from testing
Flipped image and pointcloud (camera was upside down):
