Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add and use groups for generator and runtime packages #25

Merged
merged 2 commits into from
Jun 15, 2018

Conversation

dirk-thomas
Copy link
Member

@dirk-thomas dirk-thomas commented Jun 14, 2018

Requires ros2/rosidl#283.

The rosidl generator | runtime packages declare being a member of a group as well as register themselves at the resource index.

Additionally the default packages depend on their group and in CMake collect the available generator | runtime packages from the resource index instead of using a hard coded list (while keeping the mandatory ones explicitly listed in the manifest).

Build Status

@dirk-thomas dirk-thomas added enhancement New feature or request in review Waiting for review (Kanban column) labels Jun 14, 2018
@dirk-thomas dirk-thomas self-assigned this Jun 14, 2018
@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Jun 14, 2018
@dirk-thomas
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jun 15, 2018
Copy link
Member

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change looks good to me, I didnt get a chance to try registering an additional generator to test it.
Maybe @esteve can confirm if it works for the java use case

@@ -19,6 +19,7 @@
<buildtool_export_depend>rosidl_typesupport_c</buildtool_export_depend>
<buildtool_export_depend>rosidl_typesupport_cpp</buildtool_export_depend>

<group_depend>rosidl_generator_packages</group_depend>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need to explicitly list all generators as build_export_depend here ? or do we keep it just to enforce that at least these 3 are present?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They need to be explicit for packaging into Debians.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 yeah that was my understanding.

+1 to merge it as is.

We will revisit after the release where the dependencies for packaging should be listed as we have a conflicting policy at the moment (comparing to ros1_bridge for example)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR aims to ease integrating custom generators. Making currently required generators optional would be a different thing.

@dirk-thomas
Copy link
Member Author

@esteve I will merge this change for now hoping it addresses your use case. Please comment after the fact so that we know it does (or doesn't 😟 and iterate on it).

@dirk-thomas dirk-thomas merged commit aa730a8 into master Jun 15, 2018
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 15, 2018
@dirk-thomas dirk-thomas deleted the generator_and_runtime_groups branch June 15, 2018 21:35
@esteve
Copy link
Member

esteve commented Jun 19, 2018

@dirk-thomas it works great, thanks! https://travis-ci.org/esteve/ros2_java/jobs/393401730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants