ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think you are missing a couple of remappings and some custom parameter changes... that need to be done. This may not be the complete solution but it should get you a bit closer. Let me know how it goes.
<group ns="robot_0">
<param name="~tf_prefix" value="robot_0" />
<node pkg="move_base" type="move_base" respawn="false" name="move_base_node" output="screen">
<remap from="odom" to="odom" />
<remap from="cmd_vel" to="cmd_vel" />
<remap from="map" to="/map" />
<rosparam file="$(find robot_2dnav)/costmap_common_params.yaml" command="load" ns="global_costmap" />
<rosparam file="$(find robot_2dnav)/costmap_common_params.yaml" command="load" ns="local_costmap" />
<rosparam file="$(find robot_2dnav)/local_costmap_params.yaml" command="load" />
<rosparam file="$(find robot_2dnav)/global_costmap_params.yaml" command="load" />
<rosparam file="$(find robot_2dnav)/base_local_planner_params.yaml" command="load" /><br>
<param name="~/global_costmap/robot_base_frame" value="robot_0/base_link" />
<param name="~/local_costmap/robot_base_frame" value="robot_0/base_link" />
<param name="~/local_costmap/global_frame" value="robot_0/odom" />
</node>
</group>
2 | No.2 Revision |
I think you are missing a couple of remappings and some custom parameter changes... that need to be done. This may not be the complete solution but it should get you a bit closer. Let me know how it goes.
<group ns="robot_0">
<param name="~tf_prefix" value="robot_0" />
<node pkg="move_base" type="move_base" respawn="false" name="move_base_node" output="screen">
<remap from="odom" to="odom" />
<remap from="cmd_vel" to="cmd_vel" />
<remap from="map" to="/map" />
<rosparam file="$(find robot_2dnav)/costmap_common_params.yaml" command="load" ns="global_costmap" />
<rosparam file="$(find robot_2dnav)/costmap_common_params.yaml" command="load" ns="local_costmap" />
<rosparam file="$(find robot_2dnav)/local_costmap_params.yaml" command="load" />
<rosparam file="$(find robot_2dnav)/global_costmap_params.yaml" command="load" />
<rosparam file="$(find robot_2dnav)/base_local_planner_params.yaml" command="load" /><br>
<param name="~/global_costmap/robot_base_frame" value="robot_0/base_link" />
<param name="~/local_costmap/robot_base_frame" value="robot_0/base_link" />
<param name="~/local_costmap/global_frame" value="robot_0/odom" />
</node>
</group>