depthimage_to_laserscan outputs laserscan upside down

asked 2015-09-02 14:25:18 -0500

miguel gravatar image

Hi everyone, Im having trouble with depthimage_to_laserscan, its essentially upside down, if i try rotate the TF by 180 degrees the map is offset from the laserscan? is there anyway to flip the depthimage_to_laserscan?

edit retag flag offensive close merge delete

Comments

Did you try to flip your depth image?

VitaliyProoks gravatar image VitaliyProoks  ( 2015-09-04 02:31:04 -0500 )edit

How is that done?

miguel gravatar image miguel  ( 2015-09-13 05:13:42 -0500 )edit

Use OpenCV function flip : http://docs.opencv.org/modules/core/d...

See this post for details http://stackoverflow.com/questions/16...

VitaliyProoks gravatar image VitaliyProoks  ( 2015-09-13 20:55:32 -0500 )edit

I know there is a way with OpenCV but this would consume much more processing power flipping each depth image?

miguel gravatar image miguel  ( 2015-09-14 00:02:31 -0500 )edit

This will not affect performance at all if you are working on a desktop or on a laptop.

VitaliyProoks gravatar image VitaliyProoks  ( 2015-09-14 00:23:28 -0500 )edit

The other way to do image processing is by means of image_transport but I did not find a method for image flipping. Or you can try image_rotate package http://wiki.ros.org/image_rotate but it does the same opencv operations.

VitaliyProoks gravatar image VitaliyProoks  ( 2015-09-14 00:25:22 -0500 )edit

The depth camera is on a Raspberry Pi.I will try that, thanks for the help.

miguel gravatar image miguel  ( 2015-09-16 13:56:26 -0500 )edit