OpenNI2 occasionally can't open ASUS Xtion Pro

asked 2018-11-21 02:53:00 -0500

Hendrik Wiese gravatar image

Hi everyone,

I'm using OpenNI2 for ROS to grab images from an ASUS Xtion Pro. Sometimes it happens that it can't open the camera.

The error message that I'm getting when that happens is

[ WARN] [1542790122.400045134, 1243.606000000]: Reconnect has been enabled, only one camera should be plugged into each bus
[ WARN] [1542790123.762071316, 1244.944000000]: Reconfigure callback failed with exception boost::shared_ptr<openni::VideoStream> openni2_wrapper::OpenNI2Device::getIRVideoStream() const @ /tmp/binarydeb/ros-kinetic-openni2-camera-0.4.0/src/openni2_device.cpp @ 672 : Couldn't create IR video stream: 
        XnOniDevice: Can't initialize stream of type 1: Failed to set USB interface!
        Stream: couldn't create using source 1
        Context: Couldn't create stream from device:0238d770, source: 1

Sometimes waiting for a couple of minutes is enough for it to work again, sometimes I have to reboot my system. Sometimes even that doesn't help.

Is there by any chance a panacea to fix this issue without waiting/rebooting?


edit retag flag offensive close merge delete