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

Partial hydro install missing ROS_ROOT variable [closed]

asked 2013-09-12 10:30:55 -0500

scpeters gravatar image

I'm using hydro to test drcsim using rosbuild, and I have had instances where the ROS_ROOT environment variable was not set. I did not have a full install of hydro, just a few packages. Not having the ROS_ROOT environment variable can actually break roswtf.

To reproduce, remove all hydro packages, install ros-hydro-roswtf, source the setup script and run roswtf.


$ sudo apt-get update
$ sudo apt-get remove ros-hydro-*
$ sudo apt-get install ros-hydro-roswtf
$ . /opt/ros/hydro/setup.bash
$ env | grep ROS
ROS_PACKAGE_PATH=/opt/ros/hydro/share:/opt/ros/hydro/stacks
ROS_MASTER_URI=localhost:11311
ROS_DISTRO=hydro
ROS_ETC_DIR=/opt/ros/hydro/etc/ros
$ roswtf
Traceback (most recent call last):
  File "/opt/ros/hydro/bin/roswtf", line 35, in <module>
    roswtf.roswtf_main()
  File "/opt/ros/hydro/lib/python2.7/dist-packages/roswtf/__init__.py", line 87, in roswtf_main
    _roswtf_main()
  File "/opt/ros/hydro/lib/python2.7/dist-packages/roswtf/__init__.py", line 141, in _roswtf_main
    error = ros_root_check(None, ros_root=os.environ['ROS_ROOT'])
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'ROS_ROOT'
$
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by scpeters
close date 2014-09-08 16:39:45.356867

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-12 10:33:28 -0500

scpeters gravatar image

After some help from @dirk-thomas, we identified ros-hydro-rosbuild as the provider of ROS_ROOT. So the answer is to make sure you have rosbuild installed if you need the ROS_ROOT variable.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-09-12 10:30:55 -0500

Seen: 289 times

Last updated: Sep 12 '13