Ask Your Question
-1

ROS_ROOT Problem

asked Feb 21 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated Feb 21 '11

alfa_80 gravatar image alfa_80
609 1 14 37

Hi,

I accidentally tweaked something "export ROS_ROOT=$PWD:$ROS_ROOT" into several directories, into /diamondback and /unstable directories. Where should it be located? I mean a standard ROS_ROOT. BTW, I want to point to the diamondback instead of unstable. Hopefully someone could guide me..

delete close flag offensive retag edit

Comments

Please don't put [SOLVED] in the title. Also, don't mark every question as a community wiki, there is no reason for that. mjcarroll (Feb 21 '11)edit

2 Answers

Sort by ยป oldest newest most voted
1

answered Feb 21 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated Feb 21 '11

alfa_80 gravatar image alfa_80
609 1 14 37

Finally this command "source /opt/ros/diamondback/setup.bash" saved me :-)

link delete flag offensive edit

Comments

If the issue is solved, mark one (can be your own) of the answers "the-best-one", for the question not to appear unanswered any more, please. Glad you made it :). tom (Feb 21 '11)edit
How to mark it? is it by clicking thumbs up? alfa_80 (Feb 21 '11)edit
There should be a check mark under the thumbs up/thumbs down. mjcarroll (Feb 21 '11)edit
Unfortunately, I could not tick my because it was complaining "Sorry, you cannot vote for your own post". I just wrote as [SOLVED] in the title, instead .. alfa_80 (Feb 21 '11)edit
Please try again. Not the thumbs up, but the check mark. This question still shows up as "unanswered", wasting people's time. joq (Feb 21 '11)edit
0

answered Feb 21 '11

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated Feb 21 '11

tom gravatar image tom flag of Poland
849 5 27 51

ROS_ROOT points to the directory, where the core package resides (I mean, if core package's path is ~/ros/ros/core, then ROS_ROOT=~/ros/ros).

I suppose ROS_ROOT/../setup.sh is the right place define ROS_ROOT. This script is being executed by ROS_ROOT/../setup.bash which, in turn, you should normally add to your ~/.bashrc

link delete flag offensive edit

Comments

I got this output: shah@shah-laptop:~$ roscd [rospack] the path specified as ROS_ROOT is not accessible. Please ensure that this environment variable is set and is writeable by your user account. [rospack] no ROS_ROOT [rospack] the path specified as ROS_ROOT is not accessible. Please ensure that this environment variable is set and is writeable by your user account. [rosstack] no ROS_ROOT, how to recover the ROS_ROOT, then since the "source /opt/ros/diamondback/setup.bash" line is already in the ~/.bashrc. alfa_80 (Feb 21 '11)edit
I built Diamondback from source, so I don't have it installed under /opt/ros/diamondback but in my homedir. I'd assume, you can find a file /opt/ros/diamondback/setup.sh on you computer. ROS_ROOT should point to the directory under which the core package resides (probably /opt/ros/diamondback/ros) tom (Feb 21 '11)edit
I still do not know how to go about this..huhu alfa_80 (Feb 21 '11)edit
I got what you mean. I've tried to run "roswtf" and it show that my ROS system is still problematic. Here is the error found: shah@shah-laptop:/opt/ros/diamondback/ros$ export ROS_ROOT=$PWD:$ROS_ROOT shah@shah-laptop:/opt/ros/diamondback/ros$ cd shah@shah-laptop:~$ roscd bash: cd: /opt/ros/diamondback/ros:/opt/ros/diamondback/ros:/opt/ros/diamondback:/opt/ros/diamondback/ros:/opt/ros:/opt/ros/unstable:/opt/ros:/opt/ros/diamondback:/opt/ros/unstable/ros: No such file or directory shah@shah-laptop:~$ roswtf Traceback (most recent call last): File "/opt/ros/unstable/ros/bin/roswtf", line 34, in <module> from ros import roswtf File "/opt/ros/unstable/ros/core/roslib/src/ros/__init__.py", line 56, in __getattr__ raise ImportError("Cannot import module '%s': \n%s"%(name, str(e))) ImportError: Cannot import module 'roswtf': Environment configuration is invalid: cannot locate rospack ([Errno 2] No such file or directory) alfa_80 (Feb 21 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Feb 21 '11

Seen: 280 times

Last updated: Feb 21 '11