(redirected from Main.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:
- 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
- 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
- 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
- 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:
- http://mitchtech.net/ubuntu-kinect-openni-primesense/
- http://igorbarbosa.com/articles/how-to-install-kin-in-linux-mint-12-ubuntu/
- https://bitbucket.org/samirmenon/scl-manips-v2/wiki/vision/kinect
See Also