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

Absolute path in rosdep.yaml

asked 2012-01-12 03:22:35 -0600

Robert Krug gravatar image


I would like to wrap an external library in a package. I want to download and build the code in the same directory the package resides. Is it possible to find out the absolute path to the package in the corresponding rosdep.yaml script? If I try the bash command dirname in rosdep.yaml (i.e. echo "$(dirname $(readlink -f $0))") it gives the /tmp directory instead of the actuall directory in which the rosdep.yaml script resides. Im using ROS Electric under Ubuntu 11.04.

Thanks, -Robert-

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-12 03:26:37 -0600

John Hoare gravatar image

You can use the "rospack" command to find the location of your package. If your package's name is called "extlib" you would use:

rospack find extlib
edit flag offensive delete link more


That did the trick. Thank you!
Robert Krug gravatar image Robert Krug  ( 2012-01-12 04:14:33 -0600 )edit

Question Tools


Asked: 2012-01-12 03:22:35 -0600

Seen: 351 times

Last updated: Jan 12 '12