Repository navigation
Kinect on Raspberry Pi 3
Brian Keating edited this page Nov 6, 2017
·
2 revisions
Running ROS kinetic on a raspberry pi 3 with Ubuntu MATE, I plug in the kinect and roslaunch openni_launch openni.launch. I get errors like
[ INFO] [1509924783.173932311]: Number devices connected: 1
[ INFO] [1509924783.174191423]: 1. device on bus 001:18 is a SensorV2 (2ae) from PrimeSense (45e) with serial id 'A00366A18964105A'
[ INFO] [1509924783.179998398]: Searching for device with index = 1
[ INFO] [1509924785.598534581]: No matching device found.... waiting for devices. Reason: openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) @ /tmp/binarydeb/ros-kinetic-openni-camera-1.9.5/src/openni_device.cpp @ 61 : creating depth generator failed. Reason: USB interface is not supported!
Following advice here, I did sudo nano /etc/openni/GlobalDefaults.ini and changed the line ;UsbInterface=2 to UsbInterface=0. Now when I launch openni, I get what looks like an error
[ INFO] [1509925730.380689222]: No matching device found.... waiting for devices. Reason: openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) @ /tmp/binarydeb/ros-kinetic-openni-camera-1.9.5/src/openni_device.cpp @ 65 : creating image generator failed. Reason: Failed to set USB interface!
but it seems to work okay, i.e., broadcast images correctly.
Remember when visualizing a point cloud in Rviz that it'll only work if you have a frame set: in global options at the top of the panel, under Fixed Frame select camera_link from the drop-down box.