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

Broken ROS hydro configuration [closed]

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

Rasmus gravatar image

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

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/rospack.py", line 377, in get_stack_version
    return get_stack_version_by_dir(self.get_path(stack))
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 165, in get_path
    self._update_location_cache()
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 148, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 63, 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
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
ROS_ROOT=/opt/ros/hydro/share/ros
ROS_PACKAGE_PATH=/home/xxxx/moveit/src:/home/xxxx/catkin_ws/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks:/home/xxxx/ros_stacks:/home/xxxx/youbot/youbot_driver
ROS_MASTER_URI=http://127.0.0.1:11311
ROS_TEST_RESULTS_DIR=/home/xxxx/moveit/build/test_results
ROSLISP_PACKAGE_DIRECTORIES=/home/xxxx/moveit/devel/share/common-lisp:/home/xxxx/catkin_ws/devel/share/common-lisp
ROS_DISTRO=hydro
ROS_ETC_DIR=/opt/ros/hydro/etc/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

Comments

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

Did the system update also update ROS pacakges?

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Comments

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

Question Tools

1 follower

Stats

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

Seen: 1,435 times

Last updated: Sep 30 '13