How to rosdep install dependencies of one package?
Given a catkin workspace topology that looks like this...
/tmp/foobar_catkin_ws.Nxg25I
`-- src
|-- bar
| |-- CMakeLists.txt
| |-- inc
| | `-- bar
| | `-- bar.hpp
| |-- package.xml
| `-- src
| `-- bar.cpp
`-- foo
|-- CMakeLists.txt
|-- inc
| `-- foo
| `-- foo.hpp
|-- package.xml
`-- src
`-- foo.cpp
9 directories, 8 files
...where foo
depends on bar
, how do I install the dependencies for foo
but not bar
?
I already know I can install the dependencies for all packages in a catkin workspace with
rosdep install \
--from-path /tmp/foobar_catkin_ws.Nxg25I \
--ignore-src
But this is too much for my purposes.
Does this not work for you:
It won't work if
bar
is a dependency offoo
but otherwise seems to do what you ask.Assume that
foo
depends onbar
; and yes, it doesn't work.Well that would have been good to include in your question.
@gvdhoorn, fixed per your suggestion