Kinect2 在ubuntu18下启动

普通运行例程

cd libfreenect2/build
./bin/Protonect

在ROS下运行,第一步安装库

cd ~/catkin_ws/src/
git clone https://github.com/code-iai/iai_kinect2.git
cd iai_kinect2
rosdep install -r --from-paths .
cd ~/catkin_ws
catkin_make -DCMAKE_BUILD_TYPE="Release"

下面是运行步骤

source ~/catkin_ws/devel/setup.bash
roslaunch kinect2_bridge kinect2_bridge.launch
// 上面如果不行的话,执行下面
然后使用下面的方法解决

termibal 1: roscore

terminal2: rosrun kinect2_bridge kinect2_bridge   _depth_method:=cpu    _reg_method:=cpu

或者: roslaunch kinect2_bridge kinect2_bridge.launch depth_method:=opengl reg_method:=cpu


then新开终端
source /home/szc/catkin_ws/devel/setup.bash #szc为电脑的user
rosrun kinect2_viewer kinect2_viewer

你可能感兴趣的:(Kinect2 在ubuntu18下启动)