how do I create .launch file ?

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

Vikram Bais gravatar image

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

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 -0600 )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 -0600 )edit

thanks for support, I solve that

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