Install the dependencies and build a subset of packages in a workspace

asked 2022-03-09 06:35:33 -0500

Mackou gravatar image

updated 2022-03-09 06:36:28 -0500

Hey everyone, I have a pretty big catkin workspace and I would like to build a subset of the packages. Let's say I have a workspaces with packages {A, ..., Z}. Then I want to build package A, and A depends on B, C, D

So, I can just use : catkin build A and A, B, C, and D will be built. But how can I install the dependencies for the package A and it's dependencies without installing all the deps in the workspace ?

I have tried

  • rosdep install -yi A (Only installs dependencies for A and not it's dependencies)
  • rosdep install -yi --from-src ./src/A (Only installs dependencies for A and not it's dependencies)

Thanks !

edit retag flag offensive close merge delete

Comments

Please edit your question to be more specific and accurate. --from-src is not a valid option for rosdep. And "(Only installs dependencies for A and not it's dependencies)" is not clear what is not being installed? When you install a debian package (which is what rosdep does by default) it pulls in all the transitive dependencies automatically.

tfoote gravatar image tfoote  ( 2022-03-10 15:39:45 -0500 )edit