Setting up ROS Groovy - can't launch roscore
Hi all!
I'm trying to get set up with the MoveIt! framework (which, incidentally, is quite well written for beta code :D) but I'm actually having trouble setting up ROS Groovy. I installed the debs for Groovy beta on Ubuntu 12.04 and things seem to have installed correctly, however I can't get a roscore to start up. It looks like rospack.py is unable to find paths for some reason, judging from the errors I'm getting.
Traceback (most recent call last):
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/__init__.py", line 263, in main
p.start()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
self._start_infrastructure()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/parent.py", line 206, in _start_infrastructure
self._load_config()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/parent.py", line 121, in _load_config
self.config = roslaunch.config.load_config_default(self.roslaunch_files, self.port, verbose=self.verbose)
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/config.py", line 415, in load_config_default
load_roscore(loader, config, verbose=verbose)
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/config.py", line 86, in load_roscore
f_roscore = get_roscore_filename()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/config.py", line 78, in get_roscore_filename
return os.path.join(r.get_path('roslaunch'), 'resources', 'roscore.xml')
File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 149, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: roslaunch
ROS path [0]=/opt/ros/groovy/share/ros
ROS path [1]=/opt/ros/groovy/share
ROS path [2]=/opt/ros/groovy/stacks
Other ROS tools such as rosgraph also give similar errors. Debugging in IPython points out that the RosPack._location_cache variable is simply an empty dict.
I'm trying to debug further and figure out what the issue is, but if anyone knows what the problem might be that would save me some time. Any help is appreciated!
Update1:
For reference, here are my ROS related environment variables:
$ env | grep ROS
ROS_ROOT=/opt/ros/groovy/share/ros
ROS_PACKAGE_PATH=/opt/ros/groovy/share:/opt/ros/groovy/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=groovy
ROS_DISTRO=groovy
ROS_ETC_DIR=/opt/ros/groovy/etc/roslib
Figured out part of the problem was that ROS_ETC_DIR should have been /opt/ros/groovy/etc/ros instead of /roslib. Now I get this:
Cannot locate [roslaunch]Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1].