Life is a game, take it seriously

Archive for September, 2012|Monthly archive page

xtion kinect on Ubuntu 12.04

In Computer Vision, Point Cloud Library on September 3, 2012 at 3:01 pm

by Gooly (Li Yang Ku)

 (3/9/2014 Update: OpenNI released OpenNI2 last year. I still use the old OpenNI for most of my ROS applications but you can learn how to use OpenNI2 in my newer post. You can still download the old OpenNI under http://www.openni.org/openni-sdk/openni-sdk-history-2/.) 

After upgrading to Ubuntu 12.04 I ran into some problems with kinect and xtion. (I used to have the stable version working on Ubuntu 11, see link) After trying several different driver combinations, I had some progress but could only have one kind of sensor working at a time.

(Update: the version number below doesn’t exist anymore, please download OpenNI SDK v1.5.7.10, OpenNI-Compliant Sensor Driver v5.1.6.6, NiTE v1.5.2.23 instead)

For Kinect to work:

  1. Install OpenNI (unstable version v 1.5.4.0) from http://www.openni.org/openni-sdk/openni-sdk-history-2/.
  2. Install hardware binaries from ps-engine. Install it with “apt-get install” or through synaptics. The order is important, always install OpenNI first.
  3. If it’s not working, check and make sure XnSensorServer is not running. Kill it if it is.

For xtion to work:

  1. Install OpenNI (unstable version v 1.5.4.0) from http://www.openni.org/openni-sdk/openni-sdk-history-2/.
  2. Install hardware binaries (stable version v 5.1.041) from http://www.openni.org/openni-sdk/openni-sdk-history-2/ . The order is important, always install OpenNI first.

I check the results with NiViewer and pcl OpenNIGrabber; try to switch usb ports if you still have problem. I actually have one computer to work on both sensors the same time, but my other computer doesn’t. Let me know if you have the same result if possible. Thanks.