Ask Your Question

creating metapackage

asked 2019-05-02 03:11:24 -0500

JMM gravatar image

Is there any good reference for creating metapackage? Or Is there any command like catkin_create_pkg for creating normal package?

edit retag flag offensive close merge delete



Is enough?

As it states:

A metapackage is a normal package...

it is sufficient to use catkin_create_pkg <WHATEVER>, add the mentioned tag in the package.xml, add the respective dependencies and replace the CMakeLists.txt with the boilerplate one. Note that this needs to be exact that (whitespace!) except for the package name.

mgruhler gravatar image mgruhler  ( 2019-05-02 04:25:47 -0500 )edit

Might be a nice PR to extend catkin_create_pkg so it can generate metapackages.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-02 05:10:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-05-03 08:56:44 -0500

mgruhler gravatar image

Actually, @gvdhoorn's recommendation is already implemented. So now posting as answer:

catkin_create_pkg <MY_META_PACKAGE> --meta

will do what you want. You still have to add the dependencies to the package.xml, though. But this is actually trivial...

edit flag offensive delete link more



Yes, indeed. Not sure how I missed that in the --help of catkin_create_pkg:

optional arguments:
  --meta                Creates meta-package files
gvdhoorn gravatar image gvdhoorn  ( 2019-05-03 09:02:31 -0500 )edit

I'm stumped how I missed that as well. This feature is actually four years old and I've been copying around files to achieve this :-D

mgruhler gravatar image mgruhler  ( 2019-05-03 09:06:49 -0500 )edit

thanks guys

JMM gravatar image JMM  ( 2019-05-07 02:07:14 -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

1 follower


Asked: 2019-05-02 03:11:24 -0500

Seen: 1,885 times

Last updated: May 03 '19