Kinect freezes or loses rgb under openni_launch
When running kinects (the original kinect, not kinect 2) with roslaunch openni_launch openni.launch
, I have found two problems.
- The kinects stop publishing frames
- The rgb image (as seen in rviz) flickers between normal color and all-black
Usually the kinect will run normally for about a minute, then one of these issues happens, and the kinect needs to be restarted. Both issues these occur with no visible error messages in the console where I ran openni_launch
. The driver keeps running and doesn't seem to be aware that anything is wrong. The problem seems to be intermittent -- some days it's better, some days it's worse, and sometimes restarting my computer helps.
I've had the freenect
driver recommended to me, but I need to use openni
for compatibility with openni_tracker
.
How can I make the openni
driver run more robustly?