1. 需要修改配置文件config/params.yaml文件的参数:
savePCD: true # https://github.com/TixiaoShan/LIO-SAM/issues/3
savePCDDirectory: "/zoe/ws_lio_sam/src/LIO-SAM/map"
2.保存地图:
source devel/setup.bash
rosservice call /lio_sam/save_map 0.2 "zoe/ws_lio_sam/src/LIO-SAM/map"