Ask Your Question

Broken ROS hydro configuration [closed]

asked 2013-09-30 01:21:25 -0500

Rasmus gravatar image

updated 2013-11-14 11:02:20 -0500

tfoote gravatar image

After during a system update this morning my ROS configuration is not valid anymore. I am using Ubuntu 12.04 and hydro.

My config is as follows (which used to work..):

source /opt/ros/hydro/setup.bash    # <-- ROS HYDRO
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/some/path:/some/other/path
export ROS_WORKSPACE=/some/path
# Catkin workspace 
source ~/catkin_ws/devel/setup.bash
# MoveIT setup  (i installed from source..)
source ~/moveit/devel/setup.bash # <-- Using the source installation of moveit
# More modifications modifications
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/more/folders

As said this used to work, but not anymore. I now have to source my hydro setup manually (added it again as the final step in my bashrc file).

Any ideas of what caused this change? Am i doing something wrong in my configuration steps?

This is what is shown when running roscore

WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/usr/bin/rosversion", line 85, in <module>
    version = rosstack.get_stack_version(stack_name)
  File "/usr/lib/pymodules/python2.7/rospkg/", line 377, in get_stack_version
    return get_stack_version_by_dir(self.get_path(stack))
  File "/usr/lib/pymodules/python2.7/rospkg/", line 165, in get_path
  File "/usr/lib/pymodules/python2.7/rospkg/", line 148, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/pymodules/python2.7/rospkg/", line 63, in list_by_path
    root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
  File "/usr/lib/python2.7/xml/etree/", line 611, in __init__
  File "<string>", line 38, in parse
cElementTree.ParseError: mismatched tag: line 53, column 2
Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1]. 

Param xml is <param command="rosversion roslaunch" name="rosversion"/>

Env | grep ROS gives:

$ env | grep ROS
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by georgebrindeiro
close date 2013-09-30 05:42:37


What is "not working" exactly? What environment variables are set? Some of the other setup.bash that you are sourcing might overwrite things.

dornhege gravatar image dornhege  ( 2013-09-30 01:28:53 -0500 )edit

I just updated the Question. What puzzles me is that it worked on Friday.. But after an update this morning something went wrong.

Rasmus gravatar image Rasmus  ( 2013-09-30 01:37:00 -0500 )edit

Did the system update also update ROS pacakges?

dornhege gravatar image dornhege  ( 2013-09-30 02:01:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-30 02:17:21 -0500

Rasmus gravatar image

Okay so this was a stupid typo in a package.xml file. I must have edited it as the last thing Friday. I corrected it and all works fine. Sorry

edit flag offensive delete link more


Can you tell me how you solve the problem? Because I encounter the same problem.

l_a_den gravatar image l_a_den  ( 2014-05-14 17:23:20 -0500 )edit

This is due to some syntax error in your package.xml. For me, I accidentaly hit enter in one line and broke a commented line into an uncommented one with syntax errors. After fixing this, I could run roscore again.

Juan gravatar image Juan  ( 2015-01-03 20:22:41 -0500 )edit

Question Tools

1 follower


Asked: 2013-09-30 01:21:25 -0500

Seen: 1,332 times

Last updated: Sep 30 '13