Wednesday, October 22, 2014

Openni2 error: No matching device found.... waiting for devices.

I use openni2 with ROS with the ASUS Xtion Pro live (new model with rectangular less instead of the oval one) for capturing data.

However, suddenly openni2_launch stopped working.

$roslaunch openni2_launch openni2.launch

kept giving the following error:

Warning: USB events thread - failed to set priority. This might cause loss of data...
[ INFO] [1414001657.842030853]: No matching device found.... waiting for devices. Reason: openni2_wrapper::OpenNI2Device::OpenNI2Device(const string&) @ /tmp/buildd/ros-hydro-openni2-camera-0.1.3-0precise-20140921-1219/src/openni2_device.cpp @ 74 : Initialize failed
    Could not open "1d27/0601@3/3": USB transfer timeout!

I found solutions for openni for the same problem, but not for openni2.

Although I could not figure out the exact reason for this sudden change in behaviour, trying to re-install the ros-hydro-openni drivers helped to resolve this issue (Thanks to Andreas :) ).

So if you get the same problem, try doing this:

$ sudo apt-get remove ros-hydro-openni2-*

$sudo apt-get install ros-hydro-openni2-camera

$sudo apt-get install ros-hydro-openni2-launch

No comments:

Post a Comment