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

roslaunch beginner_tutorials turtlemimic.launch, Can't run. [closed]

asked 2014-08-14 06:45:31 -0500

HelpwithUbuntu gravatar image

updated 2014-08-14 06:49:41 -0500

BennyRe gravatar image

I can't run <<roslaunch beginner_tutorials="" turtlemimic.launch="">> 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 created a gedit file and copy pasted the line, but I still can't launch this command.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by HelpwithUbuntu
close date 2014-08-14 07:22:41.350442

Comments

Please post your launch file.

BennyRe gravatar image BennyRe  ( 2014-08-14 06:55:34 -0500 )edit

I have launched that file succesful! You must type cd .. to come back home in terminal and type roslaunch command here. My launch file 's type is XML. You can create a XML file by copy from other location.

Catkin gravatar image Catkin  ( 2018-12-10 22:15:28 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-08-14 07:15:37 -0500

HelpwithUbuntu gravatar image

updated 2014-08-14 07:24:13 -0500

bvbdort gravatar image

I have gedit already installed, I don't understand " Rename it with .launch extension"?

I copy pasted the line,

 <launch> 
     <group ns="turtlesim1">    
 <node pkg="turtlesim" name="sim" type="turtlesim_node"/>
     </group>     
 <group ns="turtlesim2">    
 <node pkg="turtlesim" name="sim" type="turtlesim_node"/>     
 </group>     
 <node pkg="turtlesim" name="mimic" type="mimic">     
 <remap from="input" to="turtlesim1/turtle1"/>     
 <remap from="output" to="turtlesim2/turtle1"/> 
     </node>     
 </launch>

I saved it to home/pc/catkin_ws/src/beginner_tutorials/launch but it said I didnt have permission so I sudo it and it saved then but its not an xml file its a plain text file,

I do I save it in XML?

edit flag offensive delete link more
0

answered 2014-08-14 06:49:14 -0500

Kenny Low gravatar image

Hi, I encountered similar situation as you in the beginning. On the terminal that you are launching turtlemimic.launch, did you do the following:

  1. cd ~/catkin_ws
  2. source ./devel/setup.bash

Finally, roslaunch your turtlemimic.launch file? Previously I couldn't launch, after I did this, it worked. Hope it works out well for you!

edit flag offensive delete link more

Comments

Yes i did that but I still get the same error, is it suppose to be an xml file or a plain text?

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 06:52:44 -0500 )edit

His question states, that he has done these commands and the error if he wouldn't would be different.

BennyRe gravatar image BennyRe  ( 2014-08-14 06:53:41 -0500 )edit

XML of course

BennyRe gravatar image BennyRe  ( 2014-08-14 06:56:37 -0500 )edit

I don't understand >> and the error if he wouldn't would be differen << What do you mean?

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 06:57:17 -0500 )edit

How do I make a xml file or convert the plain text to xml

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 06:57:52 -0500 )edit

Post your launch file

BennyRe gravatar image BennyRe  ( 2014-08-14 06:59:08 -0500 )edit

The tutorials says nothing about making an xml file, it just says create a launch file called turtlemimic.launch and paste the following. I copy pasted the text into gedit and saved it.

HelpwithUbuntu gravatar image HelpwithUbuntu  ( 2014-08-14 07:00:49 -0500 )edit

Are you some how familiar with XML?

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

Question Tools

1 follower

Stats

Asked: 2014-08-14 06:45:31 -0500

Seen: 1,661 times

Last updated: Aug 14 '14