码迷,mamicode.com
首页 > 其他好文 > 详细

将xtion pro的depthimage转换为LaserScan

时间:2018-03-04 10:35:34      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:下载   pos   转换   上下   dev   launch   手动   logs   line   

参考:
http://www.cnblogs.com/cj2014/p/4007165.html
http://www.cnblogs.com/huicanlin/p/5442479.html
http://answers.ros.org/question/62990/add-depth-image-to-laser-scan-in-a-launch-file/
http://answers.ros.org/question/190377/how-to-setup-xtion-pro-live-ubuntu-1404-openni12/

http://wiki.ros.org/depthimage_to_laserscan


1.安装ROS的openni包

sudo apt-get install ros-<rosdistro>-openni2-camera
sudo apt-get install ros-<rosdistro>-openni2-launch
2.安装ROS的depthimage_to_laserscan包
cd ~/catkin_ws/src/
git clone https://github.com/ros-perception/depthimage_to_laserscan.git #克隆失败,可以手动去github上下载
进入depthimage_to_laserscan/cfg/Depth.cfg文件,将output_frame_id的取值改写成laser
cd ~/catkin_ws/src catkin_make
3.运行
roslaunch openni2_launch openni2.launch
source ~/catkin_ws/devel/setup.bash
rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw

将xtion pro的depthimage转换为LaserScan

标签:下载   pos   转换   上下   dev   launch   手动   logs   line   

原文地址:https://www.cnblogs.com/hiram-zhang/p/8503632.html

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