Kinect 2 (ubuntu16.04)

Source: Internet
Author: User
Tags git clone

Installing LIBFREENECT2

Reference

Https://github.com/OpenKinect/libfreenect2/blob/master/README.md#linux

If you cannot find the library or header file after installation, refer to

75578113

Only display RGB and depth maps via LIBFREENECT2 after installation for reference

75142503

Unlike the links above, where the terminal input is./bin/protonect [CPU] instead of./bin/Protonect CPU, the latter shows a slower, cause unknown.

1 CD.. 2 mkdir build && CD build  3 cmake. -dcmake_install_prefix= $HOME/freenect2  4 make 5sudo make INSTALL  6  7 test:  8 ./bin/protonect [CPU]  9 ./bin/Protonect [GL ] /bin/protonect [CL]

Iai_kinect2 (ROS)

1 2 git clone https://34 rosdep install-r--from-   5 cd ~/6 catkin_make-dcmake_build_type="Release" 

Where the 4th line, if the display error is changed to ROSDEP install--from-paths/home/nizhipeng/kinect_ros/src/iai_kinect2-master--ignore-src-r

The results are displayed as
#All Required Rosdeps installed successfully

The next path cannot contain Chinese, otherwise the following error occurs

设置环境变量,打开kinect接口:


新建一个终端,显示运行图像
实时显示点云

也可在~/kinect_ros/src/iai_kinect2-master/kinect2_viewer/src$ 下修改viewer.cpp程序,通过opencv单独显示rgb图和深度图。



修改的程序部分:

Double Slash point (//)

Kinect 2 (ubuntu16.04)

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.