stereo_image_proc depth values opposite of what they should be

asked 2017-02-17 12:16:49 -0500

2ROS0 gravatar image

updated 2017-02-17 12:26:40 -0500

Hi,

I have used openCV to calibrate my stereo camera, rectify it and then also calculated the projection matrices. I am feeding them in using the camera_info_manager.

I'm using stereo_image_proc to generate a pointcloud. There are no errors in the node. While the cloud looks fine in all other aspects, the depth value (z value) is completely reversed i.e. closer objects appear to be far away in the point cloud and far away objects appear to be nearby. What could be the reason for this kind of behavior?

Thank you.

edit: I believe the x and y values are also opposite of what they should be based on the frame defined in stereo_image_proc

edit retag flag offensive close merge delete