//保存地图
rosservice call /write_state "filename: 'map.pbstream'
include_unfinished_submaps: true"
//地图保存在目录 ~/.ros
cd .ros
//ls看下目录中是否有生成的map文件
ls
//复制出来
cp map.pbstream /home/robot
//保存地图
rosservice call /write_state "filename: 'map.pbstream'
include_unfinished_submaps: true"
//地图保存在目录 ~/.ros
cd .ros
//ls看下目录中是否有生成的map文件
ls
//复制出来
cp map.pbstream /home/robot