ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

roslaunch and map_server

asked 2011-03-10 08:07:33 -0600

jdt141 gravatar image

Does anyone know how to do the following using roslaunch?

rosrun map_server map_server mymap.yaml

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2011-03-10 08:25:39 -0600

raphael favier gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-03-10 08:07:33 -0600

Seen: 22,103 times

Last updated: Mar 10 '11