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)