ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

[solved]Cannot use Kinect via "openni.launch"

asked 2015-08-24 06:20:05 -0500

sonictl gravatar image

updated 2015-08-27 03:52:10 -0500


When I ran this command:

$ roslaunch openni_launch openni.launch

I got the error message below:

Warning: USB events thread - failed to set priority. This might cause loss of data...  
[ INFO] [1440405663.251678185]: Number devices connected: 1  
[ INFO] [1440405663.251811349]: 1. device on bus 002:07 is a SensorKinect (2bf) from PrimeSense (45e) with serial id '0000000000000000'  
[ INFO] [1440405663.253899109]: Searching for device with index = 1  
[ INFO] [1440405663.259276611]: 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/buildd/ros-hydro-openni-camera-1.9.2-0precise-20150515-0253/src/openni_device.cpp @ 61 : creating depth generator failed. Reason: Xiron OS failed to wait on event!  
terminate called after throwing an instance of 'openni_wrapper::OpenNIException'  
  what():  unsigned int openni_wrapper::OpenNIDriver::updateDeviceList() @ /tmp/buildd/ros-hydro-openni-camera-1.9.2-0precise-20150515-0253/src/openni_driver.cpp @ 125 : enumerating image nodes failed. Reason: One or more of the following nodes could not be enumerated:  

Image: PrimeSense/SensorKinect/ Failed to set USB interface!  

[camera/camera_nodelet_manager-2] process has died [pid 3659, exit code -6, cmd /opt/ros/hydro/lib/nodelet/nodelet manager __name:=camera_nodelet_manager __log:=/home/exbot/.ros/log/d70f0976-4a3b-11e5-a7b0-a021b74eea2b/camera-camera_nodelet_manager-2.log].  
log file: /home/exbot/.ros/log/d70f0976-4a3b-11e5-a7b0-a021b74eea2b/camera-camera_nodelet_manager-2*.log

My Specs: Ubuntu 12.04 on hard PC (not Virtual Machine).

$ lsusb

Microsoft Corp.

Microsoft Corp.

Microsoft Corp.

edit retag flag offensive close merge delete


this issue has botherd me for 1 week. Hope you guys can help me solving it. THX!!

sonictl gravatar image sonictl  ( 2015-08-24 06:21:24 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-08-27 03:52:39 -0500

sonictl gravatar image

updated 2015-08-27 03:53:31 -0500

Use Kinect on Ubuntu with OpenNI(中文在后)

Please Refer this blog( and you may meet some incompatible contents, do not worry, the thought and path is correct.

The very important doc you should read carefully is that on OpenNI's GitHub site and that on SensorKinect GitHub site.

The Core thing for this is Install Driver for Kinect on Ubuntu. The two important package you should install is: The OpenNI UNSTABLE version The SensorKinect package

Here, I want to say is that: after you have installed the OpenNI, and be ready to clone the git files for SensorKinect,DO NOT change directory!Otherwise you cannot generate the Redist directory for installation of SensorKinect.

The Cloning process could be very slow, you can checkout the files from here: key_code: 73e3

There existed a Readme.txt file which is wriiten in Chinese. Don't worry, you can ignore it after you suffer this Installation for longer than 1 week cuz you will be the expert on this field at that time. ;-)

When you succeded in using Kinect_for_Windows on Ubuntu, the using of Kinect_for_Xbox is just 'unplug and plugin'.

It's Really easier if you use Kinect_for_XBox with OpenKinect. unfortunately, it does not support Kinect4Windows.

If you're using Virtual Machine launching Ubuntu on it, I don't recommend you continue. I failed too many times in trying to do it on VMs.

Read Carefully about This Blog: this blog. and follow it. Good luck!

edit flag offensive delete link more


I am a Graduated student, can you give me a QQ or wechat, can I ask you some questins about ros and openni QQ348040956

Rancho gravatar image Rancho  ( 2016-02-17 14:08:31 -0500 )edit

Question Tools

1 follower


Asked: 2015-08-24 06:20:05 -0500

Seen: 1,148 times

Last updated: Aug 27 '15