ros-perception / image_pipeline

An image processing pipeline for ROS.
Other
762 stars 715 forks source link

[rolling] image_publisher: Fix image, constantly flipping when static image is published (backport #986) #989

Closed mergify[bot] closed 1 month ago

mergify[bot] commented 1 month ago

Continuation of https://github.com/ros-perception/image_pipeline/pull/984.

When publishing video stream from a camera, the image was flipped correctly. Yet for a static image, which was loaded once, the flip function was applied every time ImagePublisher::doWork() was called, resulting in the published image being flipped back and forth all the time.

This PR should be straightforward to port it to Humble, Iron and Jazzy.


This is an automatic backport of pull request #986 done by Mergify.