diff --git a/launch/include/save_map.launch b/launch/include/save_map.launch new file mode 100644 index 0000000000000000000000000000000000000000..88301dfc0c3b7b36df9e4982a04e0c783ee3ad44 --- /dev/null +++ b/launch/include/save_map.launch @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<!-- --> +<launch> + + <arg name="ns" default="robot"/> + <arg name="path" default="$(find iri_maps)/maps"/> + <arg name="map_name" default="my_map"/> + <arg name="map_topic" default="$(arg ns)/map"/> + <arg name="output" default="screen" /> + <arg name="launch_prefix" default="" /> + + <group ns="$(arg ns)"> + + <node name="map_saver" + pkg ="map_server" + type="map_saver" + args="-f $(arg path)/$(arg map_name)" + output="$(arg output)" + launch-prefix="$(arg launch_prefix)"> + <remap from="~map" to="$(arg map_topic)"/> + </node> + + </group> + +</launch>