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

catkin command for rosbuild_invoke_rospack(${PROJECT_NAME} ${_prefix} DIRS depends-manifests)

asked 2013-08-01 00:46:28 -0600

Kei Okada gravatar image

I'm currently working to update our package from from rosbuild to catkin and would like know how to write get list of packages that depends on current target package.

in the rosbuild system, we used following command and we're looking for the equivalent function/procedure in catkin system.

rosbuild_invoke_rospack(${PROJECT_NAME} ${_prefix} DIRS depends-manifests)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-01 06:49:47 -0600

Dirk Thomas gravatar image

The catkin migration guide ( says "do not do this". Conceptually a package should not query its downstream dependencies.

Could you describe why you have been doing this before? Perhaps there is another way to get to the same goal.

edit flag offensive delete link more


thanks, we have defined idl message compilation helper cmake functions, that searches all downlostreamy dependent directories with ./idl folder and compile them

Kei Okada gravatar image Kei Okada  ( 2013-08-01 13:18:22 -0600 )edit

Without further information I would just guess that this should be handled differently. Message generation is very similar to this an genmsg/genpy/gencpp provide cmake functions and additional scripts to perform the generation. But each downstream package explicitly invokes the generation for its messages. That also makes it more in line with the goal that the result should be bundled within each package (and not with the generator).

Dirk Thomas gravatar image Dirk Thomas  ( 2013-08-01 13:30:34 -0600 )edit

Ok, but how about [1] case, To invoke message generation for each downstream package, for custom client library which is not available as ubuntu system package? [1]

Kei Okada gravatar image Kei Okada  ( 2013-08-01 14:05:29 -0600 )edit

The clean way is to write a generator and build all message packages from source to also generate messages with your custom generator. Otherwise I don't see a good way to perform clean dependencies and checking for rebuilds.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-08-01 14:12:04 -0600 )edit

Question Tools

1 follower


Asked: 2013-08-01 00:46:28 -0600

Seen: 140 times

Last updated: Aug 01 '13