Installing Asus Xtion on Ubuntu

written by Gooly (Li Yang Ku)

Researches using Kinect like sensors are currently hot. Kinect and Asus Xtion are both active point cloud sensors based on the OpenNI framework developed by PrimeSense, an Israel company. If you are not trying to play Xbox, I would highly recommend you to consider getting the Asus Xtion. The Xtion has the advantages that it is

  1. much smaller
  2. easier to mount
  3. doesn’t need an additional usb for power

The lab our lab is working with already bought 8 of them. The only problem is that it got out of stock fast, and the price started rising.

(Note OpenNI updated their website in 2013, but you can still download the old files at http://www.openni.org/openni-sdk/openni-sdk-history-2/ )

To install the sensor on Ubuntu you only need a few steps:

  1. Download OpenNI.
  2. Download Sensor Driver.
  3. Download Nite.
  4. Go to each downloaded file, extract them and execute the install file in each folder. (Note that Nite has to be installed last.)
  5. Run the NiViewer under the sample folder in the OpenNI folder to test the camera. You can right click your mouse to change settings.

http://openni.org/Documentation/Tutorial/smpl_simple_view.html includes some useful samples to start working on. You can get a better formatted version if you install OpenNI on windows.

If you received an error
“a timeout has occurred when waiting for new data”
when setting the RGB image size from 320*240(QVGA) to 640*480(VGA) or higher, you might need to update OpenNI and the sensor driver to a newer version. At least that solved my problem.

If you haven’t heard of PCL, http://pointclouds.org/ provides a large set of libraries on handling point clouds, and also a visualizer for viewing them in 3D. If you use PCL, it already provides an interface “OpenNIGrabber” to retrieve point clouds or color point clouds.

Note that some of the OpenNI functions doesn’t support multi-threading. I got crashes occasionally when running in a multi-thread environment.

You can test if the drivers are installed correctly by running NIViewer under /OpenNi/Samples/bin/x64-release/NiViewer .  I had some issues when the rgb camera starts with resolution 640*480; the color image showed up as noise. It could be solved by always starting the rgb camera with 320*240 and then immediately switch to other resolutions.


Posted

in

by

Tags:

Comments

10 responses to “Installing Asus Xtion on Ubuntu”

  1. Object Recognition with Point Cloud Library « the Serious Computer Vision Blog Avatar

    […] With 3D sensors you get a lot of advantages in object recognition, and thanks to XBox360, 3D sensors are now […]

    Like

  2. Recording 3D video(oni) files that align rgb image with depth image « the Serious Computer Vision Blog Avatar

    […] or xtion like devices provide an easy way to capture 3D depth image or videos. The OpenNI interface that is compatible with these devices comes with a handy tool “NiViewer” that captures […]

    Like

  3. xtion kinect on Ubuntu 12.04 « the Serious Computer Vision Blog Avatar

    […] 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 […]

    Like

  4. evan00 Avatar

    I can’t access all the links that have that IP address in them:

    i.e. http://75.98.78.94/Downloads/OpenNIModules.aspx

    whats the deal with this??

    Like

    1. Gooly Avatar

      OpenNI Changed to version 2.0 a few weeks ago. You can still download the old version here http://www.openni.org/openni-sdk/openni-sdk-history-2/

      Like

  5. evan00 Avatar

    okay thanks, could you help me with a problem running OpenNI2? any help would be very much appreciated.

    http://stackoverflow.com/q/14383759/1781571

    Like

    1. Gooly Avatar

      I haven’t have time to try the new version yet, but looks like someone already solved your problem :)

      Like

  6. Py Avatar
    Py

    I heard that it works with 32-bit machines and USB 2.0 only. Is it true? Can I use it with USB 3.0 and/or 64 bit machines?

    Like

    1. Gooly Avatar

      To my own knowledge, it works with 64 bit machines but not USB 3.0.

      Like

Leave a reply to Object Recognition with Point Cloud Library « the Serious Computer Vision Blog Cancel reply