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

I was trying to run the example of the tutorial rqt_console and roslaunch and was trying to create and run a launch file in the example regarding turtlesim1 and turtle sim2 and encountered the following error.

asked 2019-11-20 15:36:13 -0500

hid123 gravatar image

updated 2019-11-21 07:57:29 -0500

l4ncelot gravatar image

Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 225, in main args = rlutil.resolve_launch_arguments(args) File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/", line 92, in resolve_launch_arguments resolved = roslib.packages.find_resource(args[0], args[1]) File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/", line 499, in find_resource pkg_path = rospack.get_path(pkg) File "/usr/lib/python2.7/dist-packages/rospkg/", line 201, in get_path self._update_location_cache() File "/usr/lib/python2.7/dist-packages/rospkg/", line 184, in _update_location_cache list_by_path(self._manifest_name, path, cache) File "/usr/lib/python2.7/dist-packages/rospkg/", line 67, in list_by_path root = ElementTree(None, os.path.join(d, PACKAGE_FILE)) File "/usr/lib/python2.7/xml/etree/", line 611, in __init__ self.parse(file) File "<string>", line 38, in parse ParseError: junk after document element: line 70, column 2

edit retag flag offensive close merge delete


@hid123, edit your title so it's shorter and more meaningful and describe the problem in more detail. Which tutorial are you referring to etc.

l4ncelot gravatar image l4ncelot  ( 2019-11-21 08:01:11 -0500 )edit

@hid123, according to the error message there should be some error while parsing XML file. Can you provide us with some launch files etc? How do you run the whole thing?

l4ncelot gravatar image l4ncelot  ( 2019-11-21 08:10:54 -0500 )edit

@hid123, use the edit button to update your question instead of answering it.

l4ncelot gravatar image l4ncelot  ( 2019-11-24 21:01:28 -0500 )edit

This is really weird to me as I cannot see anything wrong with the launch file and my version of turtlesim is working just fine... What operating system do you use and how did you install the ROS distribution?

l4ncelot gravatar image l4ncelot  ( 2019-11-24 21:08:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-21 12:12:05 -0500

hid123 gravatar image

I am referring to the following tutorial .

Here is the following xml file as given in the tutorial.


  <group ns="turtlesim1">
    <node pkg="turtlesim" name="sim" type="turtlesim_node"/>

  <group ns="turtlesim2">
    <node pkg="turtlesim" name="sim" type="turtlesim_node"/>

 <node pkg="turtlesim" name="mimic" type="mimic">
   <remap from="input" to="turtlesim1/turtle1"/>
   <remap from="output" to="turtlesim2/turtle1"/>


edit flag offensive delete link more

Question Tools


Asked: 2019-11-20 15:36:13 -0500

Seen: 126 times

Last updated: Nov 21 '19