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

Revision history [back]

click to hide/show revision 1
initial version

Just to expand on my comment (I'll reiterate it first):

Metapackage

[...] do not install files (other than their package.xml manifest) and they do not contain any tests, code, files, or other items usually found in packages.

and

A metapackage simply references one or more related packages which are loosely grouped together.

So, it's a package of packages and isn't meant to be depended on. You should depend on one of the packages that's contained in the metapackage, not the metapackage itself.

Look at one of the tests in ros_control, for example the controller_manager_tests package. You'll notice that in its CMakeLists.txt file, it doesn't depend on the ros_control metapackage. Instead, it depends on the package that it's using (testing in this case).

So, you need to depend on the package that you're using not the metapackage.