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

how to create a the launch file xml

asked 2017-04-01 08:12:30 -0500

zpzsky gravatar image

updated 2017-09-24 18:25:11 -0500

jayess gravatar image

i follow the tutorials to 2.3 The launch file .the tutorials just tell us to :"Now let's create a launch file called turtlemimic.launch and paste the following: "but it doesn't tell us how to create a launch file .so ,i really don't know where to past the scripts it provides :


  <group ns="turtlesim1">
    <node pkg="turtlesim" name="sim" type="turtlesim_node"/>

  <group ns="turtlesim2">
    <node pkg="turtlesim" name="sim" type="turtlesim_node"/>

  <node pkg="turtlesim" name="mimic" type="mimic">
    <remap from="input" to="turtlesim1/turtle1"/>
    <remap from="output" to="turtlesim2/turtle1"/>


so ,could any can tell me how to create a launch file and where to paste the scripts .

edit retag flag offensive close merge delete


Typically the .launch files stay inside a catkin package in the folder launch. Not sure if this is the answer that you pretend. If not please be more explicit

agbj gravatar image agbj  ( 2017-04-01 09:55:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-01 13:00:52 -0500

ahendrix gravatar image

A launch file is a text file whose name ends in .launch; you can create them with your favorite text editor or IDE.

edit flag offensive delete link more


but sir how will you make it as xml file as well as launch file ,will you add .xml or .launch as extension

nullspace gravatar image nullspace  ( 2020-09-10 08:59:34 -0500 )edit

save the file with .launch extension

a_shaman gravatar image a_shaman  ( 2022-09-03 18:51:46 -0500 )edit

Question Tools



Asked: 2017-04-01 08:12:30 -0500

Seen: 1,056 times

Last updated: Sep 24 '17