当前位置:   article > 正文

Cartographer保存地图_error: service [/finish_trajectory] is not availab

error: service [/finish_trajectory] is not available.

Cartographer无法利用map_server保存地图,根据下面的步骤可以顺利的将地图保存起来:

1、Finish the first trajectory. No further data will be accepted on it.
rosservice call /finish_trajectory 0

2、Ask Cartographer to serialize its current state.
rosservice call /write_state "{filename: '${HOME}/Downloads/mymap.pbstream'}"

filename可以根据自己的需要更改。

3、transform pbstream to pgm and yaml

rosrun cartographer_ros cartographer_pbstream_to_ros_map -map_filestem=/home/kk/Downloads/mymap -pbstream_filename=/home/kk/Downloads/mymap.pbstream -resolution=0.05

地址和文件名根据实际进行修改。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/485719
推荐阅读
相关标签
  

闽ICP备14008679号