Skip to content

Comments

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

Merged
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-3064
Feb 20, 2026
Merged

Fix component registering in subdirectories (backport #3064)#3075
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/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: #3075
Gist: https://gist.githubusercontent.com/ahcorde/6385231fb7722c0dff0159186ddd7403/raw/b60471c4c43a3c6850da833696c152c9062350d4/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_components
TEST args: --packages-above rclcpp_components
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18253

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

@ahcorde ahcorde merged commit 8dd1ec2 into jazzy Feb 20, 2026
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/jazzy/pr-3064 branch February 20, 2026 12:07
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