Skip to content

Support generic subscription callbacks in LifecycleNode - #3227

Merged
mjcarroll merged 1 commit into
ros2:rollingfrom
mini-1235:codex/lifecycle-generic-subscription-callback
Aug 15, 2026
Merged

Support generic subscription callbacks in LifecycleNode#3227
mjcarroll merged 1 commit into
ros2:rollingfrom
mini-1235:codex/lifecycle-generic-subscription-callback

Conversation

@mini-1235

Copy link
Copy Markdown
Contributor

Description

While exploring #3176, I noticed that create_generic_subscription only supports std::function<void(std::shared_ptr<rclcpp::SerializedMessage>)> which is missing in #1928, this PR supports AnySubscriptionCallback

Is this user-facing behavior change?

Yes, API change

Did you use Generative AI?

Yes, Codex Sol 5.6

Additional Information

Signed-off-by: Maurice <mauricepurnawan@gmail.com>
@mergify

mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@wjwwood

wjwwood commented Aug 14, 2026

Copy link
Copy Markdown
Member

Pulls: #3227
Gist: https://gist.githubusercontent.com/wjwwood/42dbd0a07f56248781887f36df8fe319/raw/4f9346c8087347b72c77c146c8b9d66339d311aa/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_lifecycle rclcpp
TEST args: --packages-above rclcpp_lifecycle rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20082

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

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@mjcarroll

Copy link
Copy Markdown
Member

Purely flakes on Windows.

@mjcarroll
mjcarroll merged commit b48b3a3 into ros2:rolling Aug 15, 2026
3 checks passed
@mini-1235
mini-1235 deleted the codex/lifecycle-generic-subscription-callback branch August 15, 2026 15:09
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