Ask Your Question
0

Absolute path in rosdep.yaml

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

Robert Krug gravatar image

Hi,

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
2

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

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

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 294 times

Last updated: Jan 12 '12