【踩坑指南】Cartographer踩坑指南

一、推荐方法(古月居代码)

  • 建议直接使用古月居提供的工程:cartographer工程
  • 步骤:
    • 编译:
      catkin_make_isolated --install --use-ninja
      
    • 启动Gazebo(功能包在catkin_ws_guyue6工程下):
      roslaunch mbot_gazebo mbot_laser_nav_gazebo.launch
      
    • 启动Cartegrapher(功能包在google_ws工程下):
      roslaunch cartographer_ros cartographer_demo_rplidar.launch
      
    • 启动键盘控制节点(功能包在catkin_ws_guyue6工程下):
      roslaunch mbot_teleop mbot_teleop.launch
      
  • 存在问题:地图保存为.pbstream后无法直接转换为ROS格式地图(.png&.yaml
    (暂未解决)
  • 原因分析:cartographercartographer_ros功能包与官网最新版本不同,缺少地图转换需要的pbstream_to_ros_map_main.cc及其相关的.launch等文件。
  • 参考文档:

二、安装

1. 官方文档

官方文档:Cartographer ROSCartographer

2. 其他教程
  1. 极速安装cartographer:(未尝试)推荐优先(使用没安装过cartographer的电脑)尝试!
  2. 谷歌Cartographer学习(1)-快速安装测试:尝试,但失败了
  3. ROS与SLAM入门教程-cartographer在Turltlebot的应用1-官方安装及补充:(未尝试)关于ceres-solver报错的解决方案
  4. 安装cartographer出现的问题及解决方法:一些问题的解决,作用不太大

三、地图保存方法

  1. 官方推荐:
  2. 使用offline_pbstream_to_rosmap.launch
    roslaunch cartographer_ros offline_pbstream_to_rosmap.launch pbstream_filename:=${HOME}/Documents/map.pbstream map_filestem:=${HOME}/Documents/map resolution:=0.05
    
  3. 使用offline_pbstream_to_rosmap.launch
    rosrun cartographer_ros cartographer_pbstream_to_ros_map -map_filestem=${HOME}/Documents/map -pbstream_filename=${HOME}/Documents/map.pbstream -resolution=0.05
    
  4. 使用修改的map_servermap server for cartographer
  5. 其他参考:
  • 2
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值