Skip to content

Unified Node Interfaces: Add const version of get_node_x_interface() (backport #3006)#3009

Merged
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-3006
Dec 18, 2025
Merged

Unified Node Interfaces: Add const version of get_node_x_interface() (backport #3006)#3009
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-3006

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Dec 18, 2025

Description

This small PR adds a const version of get_node_x_interface() which returns a const shared pointer.

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

This addition is required when the NodeInterfaces class is a member of a class and one then would like to use the NodeInterfaces class member in a const member function of that class to access at least const member functions of the separate node interfaces. Without this addition this is not possible at all and NodeInterfaces class members can only be accessed in non-const member functions.

It would also be great if this can be backported to older versions as well (especially in my case to Humble which gets just now the unified node interfaces backported with #3002).


This is an automatic backport of pull request #3006 done by Mergify.

…3006)

Signed-off-by: Fabian Hirmann <f.hirmann@arti-robots.com>
(cherry picked from commit 825b4e4)
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Dec 18, 2025

Pulls: #3009
Gist: https://gist.githubusercontent.com/ahcorde/8e856551799fda4a6d243774ed36e230/raw/e18506f60212808c5c3ec38f384e653a9e247e45/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17826

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

@ahcorde ahcorde merged commit f50ec36 into jazzy Dec 18, 2025
1 of 3 checks passed
@ahcorde ahcorde deleted the mergify/bp/jazzy/pr-3006 branch December 18, 2025 21:21
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