Recent Changes - Search:

edit SideBar

ROS /

InstallingThePrimeSenseKinectSensorOnUbuntu

Introduction

This page documents how to install the PrimeSense Kinect Sensor on an Ubuntu machine. With these steps, you can connect the PrimeSense Sensor to the Scarab onboard computer. The PrimeSense sensor is a 3D camera that is used on the Kinect. The version tested in this documentation was | RD1.082. I think this product was released before Apple acquired PrimeSense, and it doesn't seem to be sold anymore.

Installation:

  1. Install the following libraries:
    sudo apt-get install freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev doxygen graphviz mono-complete
  2. Install OpenNI
    #Create a 'kinect' folder in your home directory to store installation source of drivers:
    mkdir -p ~/kinect
    cd ~/kinect

    #Download from the OpenNI modules. Make sure you get the 'unstable' branch:
    git clone https://github.com/OpenNI/OpenNI.git
    cd OpenNI
    git checkout unstable
    cd Platform/Linux/CreateRedist
    ./RedistMaker

    #If that succeeds, there a Redist folder should be created with an install script. Run it:
    cd ~kinect/OpenNI/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.8.5/
    sudo ./install.sh
  3. Install the PrimeSense drivers:
    #many blogs recommend installing from https://github.com/avin2/SensorKinect.git
    #This didn't work for me, but the following the following repo from ph4m worked:
    cd ~/kinect
    git clone https://github.com/ph4m/SensorKinect.git
    #make sure you checkout the 'unstable' branch
    git checkout unstable

    #Install it
    cd SensorKinect/Platform/Linux/CreateRedist
    ./RedistMaker

    #If that succeeds, there a Redist folder should be created with an install script. Run it:
    cd ~/kinect/SensorKinect/Platform/Linux/Redist/Sensor-Bin-Linux-x64-v5.1.2.1/
    sudo ./install.sh
  4. Install the NITE middleware
    #I downloaded the OpenNI SDK v2.1 for Linux-x64 from http://openni.ru/openni-sdk/openni-sdk-history-2/index.html into ~/kinect.
    #The latest NITE SDK from  http://openni.ru/files/nite/index.html may be fine as well.
    cd ~/kinect
    unzip OpenNI-Linux-x64-2.1.0.tar.zip
    tar -jxvf OpenNI-Linux-x64-2.1.0.tar.bz2
    cd OpenNI-2.1.0-x64
    sudo ./install.sh

    #Run a sample simple viewer
    Samples/Bin/SimpleViewer

You should see a window with the display of the camera sensor.

References:

  1. http://mitchtech.net/ubuntu-kinect-openni-primesense/
  2. http://igorbarbosa.com/articles/how-to-install-kin-in-linux-mint-12-ubuntu/
  3. https://bitbucket.org/samirmenon/scl-manips-v2/wiki/vision/kinect

See Also

Edit - History - Print - Recent Changes - Search
Page last modified on April 13, 2017, at 10:41 PM