Ask Your Question
0

How to make a launch file? [closed]

asked 2014-08-14 07:28:50 -0500

HelpwithUbuntu gravatar image

Now let's create a launch file called turtlemimic.launch and paste the following: I pull up gedit and copy/paste 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> into gedit with sudo and save it at /home/pc/catkin_ws/src/beginner_tutorials/launch I $ cd ~/catkin_ws/ source devel/setup.bash then I try to run roslaunch beginner_tutorials turtlemimic.launch but i get the error

pc@pc:~$ cd ~/catkin_ws/ pc@pc:~/catkin_ws$ source devel/setup.bash pc@pc:~/catkin_ws$ roslaunch beginner_tutorials turtlemimic.launch ... logging to /home/pc/.ros/log/93f61492-23a7-11e4-bf9f-9439e5ec40e7/roslaunch-pc-3090.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

Invalid roslaunch XML syntax: syntax error: line 1, column 3I

I don't know what im doing wrong, the file will only save as plain text and not XML, the tutorial does not say how to save files in XML

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by HelpwithUbuntu
close date 2014-08-14 07:44:13.541972

Comments

1

Please use the code block formatting tool. It's the button with the 101010 in it. I always have to edit your questions to avoid eye cancer.

BennyRe gravatar image BennyRe  ( 2014-08-14 07:32:21 -0500 )edit

Thanks for formatting my question, it looks ok when I put it in the question box but changes when it's posted. I have searched and I can't find out what a CODE BLOCK tool is. What is the button with 101010 and if all of this is important why is it not in the tutorial, it says beginner level. I am not playing dumb I really don't know what this stuff is.

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 07:37:32 -0500 )edit

Do you really want to do robotics? The ROS tutorials are very easy and compared to real robotics a child's play.

BennyRe gravatar image BennyRe  ( 2014-08-14 07:51:54 -0500 )edit

YES, I will get the hang of it just like anything else hard in life the more you do it the better you get. How was I suppose to know that I don't include the line numbers, the tutorial said copy and paste, I find it funny you asked about spam.

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 08:22:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-14 07:33:28 -0500

BennyRe gravatar image

Don't copy-paste the line numbers from the tutorial page.

You always can disable the line numbers in ROS wiki code examples.

edit flag offensive delete link more

Comments

Thank you so much, it works now. I don't understand why the tutorial does not tell me that.

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 07:41:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-14 07:28:50 -0500

Seen: 579 times

Last updated: Aug 14 '14