Re: Red Screen Kinect v2

Posted by matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Red-Screen-tp384p398.html

So the rgb stream is working, but the depth stream is missing using the standalone rtabmap (or "rtabmap-rgbd_camera 5"). Just tried again and it is working (rgb, depth and cloud shown) on my computer (Ubuntu 14.04):
$ export LD_LIBRARY_PATH=~/workspace/libfreenect2/depends/libusb/lib:$LD_LIBRARY_PATH

$ ldd rtabmap-rgbd_camera | grep libusb
	libusb-1.0.so.0 => /home/mathieu/workspace/libfreenect2/depends/libusb/lib/libusb-1.0.so.0 (0x00007f04331c5000)

$ rtabmap-rgbd_camera 5

I am using the latest code from libfreenect2 and rtabmap. Normally, rtabmap and kinect2_bridge use both libfreenect2, so if one works, the other should work too. On my side, the only issue I had with libfreenect2 is to make sure that libusb installed with libfreeenect2 is correctly built and linked as above. Not like that:
$ ldd rtabmap-rgbd_camera | grep libusb
	libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fe7afda7000)