浏览代码

完善hector mapping启动文件

corvin 5 年之前
父节点
当前提交
6d112cc2ec
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      src/robot_navigation/launch/hector_mapping.launch

+ 5 - 6
src/robot_navigation/launch/hector_mapping.launch

@@ -1,7 +1,7 @@
 <!--
   Copyright: 2016-2018 www.corvin.cn
   Author: corvin
-  Description: In stdr simulator hector mapping.
+  Description: hector mapping.
   History:
     20180601: initial this file.
 -->
@@ -11,17 +11,16 @@
   <arg name="scan_queue_size"          default="10"/>
   <arg name="base_frame" default="/base_link" />
   <arg name="odom_frame" default="/odom" />
+  <arg name="map_frame" default="/map" />
   <arg name="scan_topic" default="/scan" />
-  <arg name="map_topic"  default="/hector_map" />
   <arg name="map_size"   default="512" />
 
-  <include file="$(find ydlidar)/launch/lidar.launch">
+  <include file="$(find ydlidar)/launch/lidar.launch" />
 
-  <node pkg="hector_mapping" type="hector_mapping" name="stdr_hector_mapping" output="screen">
-    <remap from="map"  to="$(arg map_topic)"  />
+  <node pkg="hector_mapping" type="hector_mapping" name="hector_mapping" output="screen">
 
     <!-- Frame names -->
-    <param name="map_frame"  value="/map_static" />
+    <param name="map_frame" value="$(arg map_frame)" />
     <param name="base_frame" value="$(arg base_frame)" />
     <param name="odom_frame" value="$(arg odom_frame)" />