kinect 2 in ubuntu 16.04
Posted zsxcool
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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!!!
以上是关于kinect 2 in ubuntu 16.04的主要内容,如果未能解决你的问题,请参考以下文章
基于Ubuntu 16.04,手持Kinect v2,实时跑通ORB_SLAM2