Skip to content

Cleanup the dependencies in rclcpp_components.#2918

Merged
clalancette merged 1 commit intorollingfrom
clalancette/cleanup-rclcpp-components
Aug 4, 2025
Merged

Cleanup the dependencies in rclcpp_components.#2918
clalancette merged 1 commit intorollingfrom
clalancette/cleanup-rclcpp-components

Conversation

@clalancette
Copy link
Copy Markdown
Contributor

Description

The most important change in here is the changes to the package.xml and the CMakeLists.txt, which now properly export the dependencies to downstream packages as required. On those two fronts:

  1. Make sure to add a dependency on rmw, which this package does depend on for rmw_request_id_t
  2. Make sure to add a dependency on rcl_interfaces, which this package also depends on.
  3. Export depend class_loader, composition_interfaces, rclcpp, rcpputils, and rmw, all of which are exported in the header files.
  4. Remove the unnecessary test dependencies on launch_testing and std_msgs, neither of which is used.

The rest of the change here is to cleanup the header files to include what you use everywhere.

Is this user-facing behavior change?

Not really. There is some possibility that a downstream package was inadvertently relying on this package to export ament_index_cpp to it, but it is a minor point.

Did you use Generative AI?

No.

Additional Information

N/A

The most important change in here is the changes to the package.xml
and the CMakeLists.txt, which now properly export the dependencies
to downstream packages as required.  On those two fronts:

1.  Make sure to add a dependency on rmw, which this package does depend
    on for rmw_request_id_t
2. Make sure to add a dependency on rcl_interfaces, which this package
   also depends on.
3. Export depend class_loader, composition_interfaces, rclcpp,
   rcpputils, and rmw, all of which are exported in the header files.
4. Remove the unnecessary test dependencies on launch_testing and
   std_msgs, neither of which is used.

The rest of the change here is to cleanup the header files to include
what you use everywhere.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #2918
Gist: https://gist.githubusercontent.com/fujitatomoya/5ed2e2271cde1849a47144f402c602ca/raw/f73094d8128855ae52dc3adae16b97d581f9baa0/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_components
TEST args: --packages-above rclcpp_components
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16660

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Copy Markdown
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Thanks Chris!

@clalancette clalancette merged commit a919a6e into rolling Aug 4, 2025
2 of 3 checks passed
@clalancette clalancette deleted the clalancette/cleanup-rclcpp-components branch August 4, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants