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

Checking if workspace is properly overlayed by the setup script

asked 2017-02-25 14:35:40 -0600

SarSam gravatar image

I am following this tutorial: http://wiki.ros.org/catkin/Tutorials/...
The last step is to make sure that workspace is properly overlayed by the setup script. For that, I entered this:

$ echo $ROS_PACKAGE_PATH

As I have ROS Indigo, so I was expecting this:

/home/username/catkin_ws/src:/opt/ros/indigo/share

But I am getting this:

/home/username/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

What does this additional :/opt/ros/indigo/stacks mean and why does this appear? Is this some problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-26 04:05:02 -0600

gvdhoorn gravatar image

No, this is expected.

/opt/ros/indigo/stacks is added for backwards-compatibility reasons: in earlier versions of ROS, that is where all content of packages was placed (distributed in stacks, hence the name). As there could still be some old packages that depend on artefacts to be located there, the directory is still added to the package search path.

Note that even though the directory is added to the search path, whether it actually exits on your FS depends on whether you have installed any package that places artefacts there.

edit flag offensive delete link more

Comments

Note that this disappears with kinetic...

mgruhler gravatar image mgruhler  ( 2017-02-28 07:05:24 -0600 )edit

I have ROS Kinetic and i have a similar problem. After: $ echo $ROS_PACKAGE_PATH, im getting nothing(no path) in return. sorry, newbie here!

atha gravatar image atha  ( 2017-08-18 10:37:35 -0600 )edit

A 'similar problem', or exactly the same? If similar, please search to see whether there is already a post dealing with yours, otherwise post a new question.

gvdhoorn gravatar image gvdhoorn  ( 2017-08-18 10:41:24 -0600 )edit
1

Note that ROS_PACKAGE_PATH will only be set after you have run source /path/to/your/setup.bash, where appropriate setup.bash may be found in the devel directory in your workspace, and in /opt/ros/kinetic.

gvdhoorn gravatar image gvdhoorn  ( 2017-08-18 10:42:17 -0600 )edit

thanks a lot, i posted a new question to specify the problem

atha gravatar image atha  ( 2017-08-18 11:30:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-25 14:35:40 -0600

Seen: 643 times

Last updated: Feb 26 '17