首先執(zhí)行如下的命令:
roslaunch kinect2_bridge kinect2_bridge.launch publish_tf:=true #啟動的時(shí)候發(fā)布tf
注意:如果僅僅執(zhí)行如下的命令:
roslaunch kinect2_bridge kinect2_bridge.launch
我們是無法通過Rviz查看到點(diǎn)云數(shù)據(jù)的谍椅,因?yàn)橥ㄟ^Rviz查看點(diǎn)云數(shù)據(jù)需要獲取點(diǎn)云坐標(biāo)系.
freenect2:https://openkinect.github.io/libfreenect2/modules.html