Use Kinect on Ubuntu with OpenNI(中文在后)
You have to Refer this blog (backup link)and you may meet some incompatible contents, do not worry, the thought and path is correct.
The very important doc you should read carefully is that on OpenNI's GitHub site and that on SensorKinect GitHub site.
- The Core thing for this is Installing Driver for Kinect on Ubuntu. The two important packages you should install are:
The OpenNI UNSTABLE version
The SensorKinect package
- Here, I want to say that: after you have installed the OpenNI, and be ready to clone the git files for SensorKinect,DO NOT change directory!Otherwise you cannot generate the Redist directory for installation of SensorKinect.
- The Cloning process could be very slow, you can checkout the files from here:
http://yunpan.cn/cmTPmvr2D29Yj keycode: 32e4
- There existed a Readme.txt file which is wriiten in Chinese. Don't worry, you can ignore it after you suffer this Installation for longer than 1 week cuz you will be the expert on this field at that time. ;-)
- When you succeded in using Kinect_for_Windows on Ubuntu, the using of Kinect_for_Xbox is just 'unplug and plugin'.
- It's really easier if you use Kinect_for_XBox with OpenKinect. unfortunately, OpenKinect does not support Kinect4Windows.
- If you're using Virtual Machine launching Ubuntu on it, I don't recommend you continue. I failed too many times in trying to do it on VMs. And finally I succeded in real machine.
Read Carefully about This Blog: this blog. and follow it. Good luck!
my seccess of running ./Sample-NiSimpleViewer :
If you still met some issues, my note of Installation can help you maybe.
================= Notes for debugging =============================
Optional: for ubuntu12.04_for_ros_hydro OS version, we need to firstly do some patch work:
$ sudo apt-get update --fix-missing
------Install the Prerequisition------
The Prerequisition for your next Installation is the Tools you may need, Ubuntu will automatically install or upgrade them.
>>git
>>build-essential
>>python libusb-1.0-0-dev
>>freeglut3-dev
>>openjdk-7-jdk
Run the Command:
$ sudo apt-get install git build-essential python