roslaunch and map_server
Does anyone know how to do the following using roslaunch?
rosrun map_server map_server mymap.yaml
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Does anyone know how to do the following using roslaunch?
rosrun map_server map_server mymap.yaml
Hello,
you can try the following:
<launch>
<arg name="map_file" default="$(find [package where your yaml file is])/mymap.yaml"/>
<!-- Run the map server -->
<node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" />
</launch>
I would strongly advise you to have a look at this tutorial that explains how to setup the navigation stack for a robot.
Also have a look at the xml tags allowed in launch files here.
Raph
Asked: 2011-03-10 08:07:33 -0600
Seen: 22,103 times
Last updated: Mar 10 '11