Objective
Personal understanding of the wrong place also please enlighten, reprint please indicate source: http://www.cnblogs.com/hitcm/
Recently, a friend asked the Kinect V2 in the development of Ubuntu, the first thing to be clear is whether your device is V1 or V2, these two drivers are not universal.
The following are V1 (left) and V2 (right). Look at your device and then decide which installation to use.
This article is aimed at the situation of V2 .
Installation
1, first git download code, quickly download, put to the ~ below
git clone https://github.com/OpenKinect/libfreenect2.git
2, then install the dependencies as follows, preferably in advance to compile and install the OPENCV
sudo apt-get install build-essential cmake pkg-config libturbojpeg libjpeg-turbo8-dev mesa-common-dev Freeglut3-dev Libxrandr-dev Libxi-dev
3, then installs the LIBUSB, must guarantee the version >=1.0.20.
sudo apt-get install Libusb-1.0-0-dev
4. Then run the following command to install the GLFW3
sudo apt-get install Libglfw3-dev
If not successful, use the following command instead of the
CD libfreenect2/dependssh Install_ubuntu.shsudo dpkg-i libglfw3*_3.0.4-1_*.deb
5, then install the OpenCL Support Library (seemingly no use for my computer, this step directly skip did not do)
6. Then compile the library
Cd.. mkdir build && CD Buildcmake. Makesudo make Install
Test
Finally, you can run the program.
There is a bin folder under Build, place the generated output file, plug in the Kinect, and run. At this point the yellow light turns white, indicating a drive. Note: Only for USB3 interfaces, the desktop and notebook have a 3.0 port.
./bin/protonect
But not enough prompt permissions, failed to open Kinect V2 access denied
Change to the following Super command.
sudo./bin/protonect
Ros Interface Installation
Refer to the Https://github.com/code-iai/iai_kinect2 here
Kinectv2+ubuntu 14.04+ros Installation Tutorial