kinect 2 in ubuntu 16.04

时间:2019-08-24
本文章向大家介绍kinect 2 in ubuntu 16.04,主要包括kinect 2 in ubuntu 16.04使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

1. 下载libfreenect2文件:

git clone https://github.com/OpenKinect/libfreenect2.git

2. install lib:

a. sudo apt-get install build-essential cmake pkg-config

b. sudo apt-get install libusb-1.0-0-dev

c. sudo apt-get install libturbojpeg libjpeg-turbo8-dev

d. sudo apt-get install libglfw3-dev

e. optional:

sudo apt-get install beignet-dev

sudo apt-get install libva-dev libjpeg-dev (for intel)

sudo apt-get install libopenni2-dev

3.编译:

  a. mkdir build,         

  b. cd build,         

  c. cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2,             

  d. make,                   

  e. make install

4.测试:a. sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/

b. ./bin/Protonect

5. 安装iai_kinect2

  a. roscd, cd src

  b. git clone https://github.com/code-iai/iai_kinect2.git

  c. cd iai_kinect2

  d. rosdep install -r --from-paths .  (若出错则rosdep install --from-paths ~/catkin_ws/src/iai_kinect2 --ignore-src -r)

  e. cd ..

  f. catkin_make -DCMAKE_BUILD_TYPE="Release"

Done!!!

 

 

原文地址:https://www.cnblogs.com/zsxcool/p/11406442.html