码迷,mamicode.com
首页 > 系统相关 > 详细

kinect 2 in ubuntu 16.04

时间:2019-08-25 01:05:17      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:http   free   apt-get   mon   open   pat   tps   done   round   

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!!!

 

 

 

 

kinect 2 in ubuntu 16.04

标签:http   free   apt-get   mon   open   pat   tps   done   round   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!