ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
1

How to flip a Camera image upside down?

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

adammw gravatar image

Hi.

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).

VREP+ROS

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
0

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

Stats

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

Seen: 888 times

Last updated: Sep 02 '16