Ask Your Question

How to flip a Camera image upside down?

asked 2016-09-01 06:43:45 -0500

adammw gravatar image


I'm using V-REP to generate a simulated environment for a robot to function in, and have two vision sensors being used as stereo cameras to be sent to ROS. Annoyingly, when I send the data from V-REP to ROS, the image appears flipped (upside-down).


Since I have to use stereo_image_proc anyway, is it possible to form the CameraInfo such that the normalised image will be flipped back in the correct direction? Or any other possible way to flip the camera on the ROS side of things?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-02 11:19:27 -0500

joq gravatar image

Within ROS you could define the TF frames for your cameras as being inverted.

Note that image processing expects an frame ID with the _optical suffix, which uses a different orientation convention than normal ROS frames of reference.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-09-01 06:43:45 -0500

Seen: 2,013 times

Last updated: Sep 02 '16