首页 > 其他 > 详细

基于RPLiDAR A2的cartographer建图

时间:2021-01-24 21:47:59      阅读:47      评论:0      收藏:0      [点我收藏+]
# 启动激光雷达
roslaunch rplidar_ros rplidar.launch
# 可选操作,录制数据
rosbag record /scan
# 启动cartographer
roslaunch cartographer_ros demo_revo_lds.launch
# 完成轨迹, 不接受进一步的数据:
rosservice call /finish_trajectory 0
# 序列化保存其当前状态:
rosservice call /write_state "{filename: ‘${HOME}/Downloads/mymap302.pbstream‘}"
# 将pbstream转换为pgm和yaml
rosrun cartographer_ros cartographer_pbstream_to_ros_map -map_filestem=${HOME}/Downloads/mymap302 -pbstream_filename=${HOME}/Downloads/mymap302.pbstream -resolution=0.05

基于RPLiDAR A2的cartographer建图

原文:https://www.cnblogs.com/flyingrun/p/14321893.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!