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

How to install packages as subdirectory of metapackage?

asked 2014-10-01 13:19:50 -0600

pachuc gravatar image

So, currently I have packages that install their binaries to catkin_ws/install/lib/package_name

I made a metapackage to contain these directories. Now I would like them to install like this: install/lib/meta_package_name/package_name

Is there any good way of achieving this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-10-01 13:22:21 -0600

gvdhoorn gravatar image

Unless I misunderstand you, metapackages don't work that way (they are not stacks). They are essentially a way to group a number of packages and make them easily installable by only installing the metapackage. Dependency resolution then pulls in the others.

In the original design, metapackages didn't even have a CMakeLists.txt.

Do you have any specific reason for such a directory layout?

edit flag offensive delete link more

Comments

well my source is laid out like this: /src/group_of_files/many_individual_package_folders.

I was hoping that my install could look the same way ie: install/lib/group_of_files_/my_packages

I think this is mostly just for convenience and easily identifying package install locations.

pachuc gravatar image pachuc  ( 2014-10-01 13:27:07 -0600 )edit

i guess its not necessary, but it would be nice. So did stacks used to work this way (sorry im new to catkin/ros)? If so, why did they change it for metapackages? I guess the only point of a metapackage is just to install easier?

pachuc gravatar image pachuc  ( 2014-10-01 13:28:32 -0600 )edit

If you really want to know, take a look at the rationale behind the move to catkin (FHS compliance, etc). Stacks did not put everything in install/lib, but they did contain all packages.

As to 'being nice': you typically do things like $(find PKGNAME), so does it matter where things are?

gvdhoorn gravatar image gvdhoorn  ( 2014-10-01 13:34:55 -0600 )edit

ok, thanks for the answer. I guess it doesn't really matter... its just... annoying lol

pachuc gravatar image pachuc  ( 2014-10-01 13:44:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-10-01 13:19:50 -0600

Seen: 1,059 times

Last updated: Oct 01 '14