how do I create .launch file ?

asked 2020-07-29 09:46:51 -0500

Vikram Bais gravatar image

updated 2020-07-29 13:58:03 -0500

gvdhoorn gravatar image

I have to create turtlemimic.launch file which contains:

   1 <launch>
   2 
   3   <group ns="turtlesim1">
   4     <node pkg="turtlesim" name="sim" type="turtlesim_node"/>
   5   </group>
   6 
   7   <group ns="turtlesim2">
   8     <node pkg="turtlesim" name="sim" type="turtlesim_node"/>
   9   </group>
  10 
  11   <node pkg="turtlesim" name="mimic" type="mimic">
  12     <remap from="input" to="turtlesim1/turtle1"/>
  13     <remap from="output" to="turtlesim2/turtle1"/>
  14   </node>
  15 
  16 </launch>

how do I create file with extension ".launch" ??

edit retag flag offensive close merge delete

Comments

Have you tried save as "myfile.launch" in your editor?

kscottz gravatar image kscottz  ( 2020-07-29 13:48:07 -0500 )edit

To add more depth on @ kscottz comment, you can find a nice tutorial about roslaunch in the wiki. It is a video in which you can see how to generate and use launch files.

Weasfas gravatar image Weasfas  ( 2020-08-01 06:10:23 -0500 )edit

thanks for support, I solve that

Vikram Bais gravatar image Vikram Bais  ( 2020-08-10 02:32:02 -0500 )edit

you can start from terminal:

touch mylaunchfile.launch and open it with vi mylaunchfile.launch then you can add the content you need

Petros ADLATUS gravatar image Petros ADLATUS  ( 2022-03-24 04:54:46 -0500 )edit