Kinectv2+ubuntu 14.04+ros Installation Tutorial

Source: Internet
Author: User
Tags git clone

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.