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

Duplicate directories in $ROS_PACKAGE_PATH

asked 2012-12-15 12:46:49 -0600

1morelearner gravatar image

ROS_PACKAGE_PATH variable contains duplicate elements.

It's weird, since I was following the very first tutorials step by step. When we were supposed to check that our variable was pointing to the right places, this is what I get:

/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros:/opt/ros/fuerte/share:/opt/ros/fuerte/stacks

What can be happening? I've checked my .bashrc file and it's right (I mean, it just sources the setup.bash file from the just created workspace.) :S

Thank you very much in advance for your time!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-12-15 22:37:27 -0600

KruseT gravatar image

updated 2012-12-15 22:58:05 -0600

Hi, this is a flaw in the current rosinstall/rosws. It should not impact your work, so you can ignore this. We introduced this in preparation of Groovy.

EDIT: To explain more, the additional path entries come from the setup-file element, which also changes the ROS_PACKAGE_PATH.

Maybe I'll write a duplicate removal function.

edit flag offensive delete link more
0

answered 2012-12-16 03:40:30 -0600

autorover gravatar image

There do seem to be duplicates in the resulting ROS_PACKAGE_PATH you posted. opt/ros/fuerte/stacks and /opt/ros/fuerte/share are both mentioned twice. If you do not see the ros path defined in your .bashrc file, you may want to add this line to set the path yourself, and I have gotten rid of the duplicates from your previous result export ROS_PACKAGE_PATH=/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros

edit flag offensive delete link more

Comments

1

It is not recommended to manage ROS_PACKAGE_PATH manually. Instead, you should use rosws.

Lorenz gravatar image Lorenz  ( 2012-12-16 06:08:52 -0600 )edit

Question Tools

Stats

Asked: 2012-12-15 12:46:49 -0600

Seen: 283 times

Last updated: Dec 16 '12