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

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

Comments

1

Is http://wiki.ros.org/catkin/package.xm... 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
2

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
9

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

Comments

1

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
1

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
1

thanks guys

JMM gravatar image JMM  ( 2019-05-07 02:07:14 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 2,384 times

Last updated: May 03 '19