Ask Your Question
0

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

hid123 gravatar image

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

l4ncelot gravatar image

Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 225, in main args = rlutil.resolve_launch_arguments(args) File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/rlutil.py", 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/packages.py", line 499, in find_resource pkg_path = rospack.get_path(pkg) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 201, in get_path self._update_location_cache() File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 184, in _update_location_cache list_by_path(self._manifest_name, path, cache) File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 67, in list_by_path root = ElementTree(None, os.path.join(d, PACKAGE_FILE)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", 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

Comments

@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 imagel4ncelot ( 2019-11-21 08:01:11 -0600 )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 imagel4ncelot ( 2019-11-21 08:10:54 -0600 )edit

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

l4ncelot gravatar imagel4ncelot ( 2019-11-24 21:01:28 -0600 )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 imagel4ncelot ( 2019-11-24 21:08:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

hid123 gravatar image

I am referring to the following tutorial . http://wiki.ros.org/ROS/Tutorials/Usi...

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

<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>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 21 times

Last updated: Nov 21 '19