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

Fail to create the roslaunch file.

asked 2018-11-14 09:37:44 -0500

3104 gravatar image

updated 2018-11-14 09:46:42 -0500

gvdhoorn gravatar image

I'm ROS starter, and I'm following the ROS beginner tutorials step by step. Now I'm on using rosrqtconsol and roslaunch. I created the turtlemimic.launch file in the catkin_ws/src/beginner_tutorials/launch using the gedit. In turtlemimic.launch file, I copied and pasted following:

   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>

Just like the tutorials. But when I did roslaunch, I got this messages.

... logging to /home/user01/.ros/log/e7ccb2d6-e821-11e8-b66a-4ccc6af183ea/roslaunch-trailENG03869-15281.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 3
The traceback for the exception was written to the log file

How can I solve this problem?

edit retag flag offensive close merge delete

Comments

Why did you delete the question?

gvdhoorn gravatar image gvdhoorn  ( 2018-11-14 09:55:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-14 09:47:49 -0500

gvdhoorn gravatar image

updated 2018-11-14 09:48:26 -0500

I copied and pasted following:

   1 <launch>
   2 
   3   <group ns="turtlesim1">
   4     <node pkg="turtlesim" name="sim" type="turtlesim_node"/>
   5   </group>
   6 
   7 ...

If that is an actual copy-paste, then the problem is the line numbers.

Those are not supposed to be there.

Remove them and try again.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-11-14 09:37:44 -0500

Seen: 153 times

Last updated: Nov 14 '18