开启辅助访问 天气与日历

登录  | 立即注册

游客您好!登录后享受更多精彩

查看: 934|回复: 0

保存地图

[复制链接]

73

主题

76

帖子

822

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
822

活跃会员热心会员推广达人宣传达人灌水之王突出贡献优秀版主荣誉管理论坛元老

发表于 2024-6-26 10:12:49 | 显示全部楼层 |阅读模式 来自 中国陕西西安
  1. rosrun map_server map_saver -f /home/igk/make_ws/map
  2. [ INFO] [1719367873.212437076]: Waiting for the map
  3. [ INFO] [1719367873.418904819]: Received a 192 X 192 map @ 0.100 m/pix
  4. [ INFO] [1719367873.418948195]: Writing map occupancy data to /home/igk/make_ws/map.pgm
  5. [ INFO] [1719367873.420483200]: Writing map occupancy data to /home/igk/make_ws/map.yaml
  6. [ INFO] [1719367873.420763688]: Done
复制代码

launch 文件保存
  1. <!-- save_map.launch -->
  2. <launch>
  3.   <!-- 定义保存地图文件的文件名 -->
  4.   <arg name="map_file_name" default="my_map" />

  5.   <!-- 定义ROS参数,用于保存地图的目录路径 -->
  6.   <arg name="map_save_directory" default="$(find gmapping)/launch" />

  7.   <!-- 启动map_saver节点,保存地图文件 -->
  8.   <node name="map_saver" pkg="map_server" type="map_saver" output="screen" args="-f $(arg map_save_directory)/$(arg map_file_name)" />
  9. </launch>
复制代码




您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Geek Planet ( 陕ICP备19010480号 )

GMT+8, 2024-10-18 13:00 , Processed in 0.072805 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表