depthimage_to_laserscan outputs laserscan upside down
Hi everyone, Im having trouble with depthimagetolaserscan, 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 depthimagetolaserscan?
Asked by miguel on 2015-09-02 14:25:18 UTC
Comments
Did you try to flip your depth image?
Asked by VitaliyProoks on 2015-09-04 02:31:04 UTC
How is that done?
Asked by miguel on 2015-09-13 05:13:42 UTC
Use OpenCV function
flip
: http://docs.opencv.org/modules/core/doc/operations_on_arrays.html?highlight=flip#cv2.flipSee this post for details http://stackoverflow.com/questions/16265673/rotate-image-by-90-180-or-270-degrees
Asked by VitaliyProoks on 2015-09-13 20:55:32 UTC
I know there is a way with OpenCV but this would consume much more processing power flipping each depth image?
Asked by miguel on 2015-09-14 00:02:31 UTC
This will not affect performance at all if you are working on a desktop or on a laptop.
Asked by VitaliyProoks on 2015-09-14 00:23:28 UTC
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 tryimage_rotate
package http://wiki.ros.org/image_rotate but it does the same opencv operations.Asked by VitaliyProoks on 2015-09-14 00:25:22 UTC
The depth camera is on a Raspberry Pi.I will try that, thanks for the help.
Asked by miguel on 2015-09-16 13:56:26 UTC