Skip to content

Comments

Fix component registering in subdirectories (backport #3064)#3076

Open
mergify[bot] wants to merge 1 commit intohumblefrom
mergify/bp/humble/pr-3064
Open

Fix component registering in subdirectories (backport #3064)#3076
mergify[bot] wants to merge 1 commit intohumblefrom
mergify/bp/humble/pr-3064

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 19, 2026

Description

This PR allows using rclcpp_components_register_node and rclcpp_components_register_nodes functions in subdirectories added by add_subdirectory (and other non global scopes). This was done by storing the internal data in a property of the project directory instead of variable.

Fixes: #1698

Is this user-facing behavior change?

Yes, users will be able to use the above mentioned functions inside nested scopes.

Did you use Generative AI?

No


This is an automatic backport of pull request #3064 done by [Mergify](https://mergify.com).

Signed-off-by: pum1k <55055380+pum1k@users.noreply.github.com>
(cherry picked from commit fc1afcb)
@ahcorde
Copy link
Contributor

ahcorde commented Feb 19, 2026

Pulls: #3076
Gist: https://gist.githubusercontent.com/ahcorde/8a0cf56844ab7d9cd32edc6750a1eacf/raw/24a7f24a07c7586cf085d910cf2e8058736e650f/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_components
TEST args: --packages-above rclcpp_components
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18254

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

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.

2 participants