Skip to content

Comments

Add support for passing arguments to constructors#291

Merged
ahcorde merged 1 commit intoros:rollingfrom
pum1k:feat/constructor-arguments
Feb 20, 2026
Merged

Add support for passing arguments to constructors#291
ahcorde merged 1 commit intoros:rollingfrom
pum1k:feat/constructor-arguments

Conversation

@pum1k
Copy link
Contributor

@pum1k pum1k commented Feb 20, 2026

Description

This PR allows passing arguments to plugin constructors. This is done by exposing a new feature of class_loader added in ros/class_loader#223.

- updated `create*Instance` methods to forward arguments to plugin
  constructors using class_loader interface traits

Signed-off-by: pum1k <55055380+pum1k@users.noreply.github.com>
@ahcorde
Copy link
Contributor

ahcorde commented Feb 20, 2026

Pulls: #291
Gist: https://gist.githubusercontent.com/ahcorde/a60864c74e3698258ac6711f38798467/raw/f2aa7f4ba8de68858cc4a421df49836dcf859dbb/ros2.repos
BUILD args: --packages-above-and-dependencies pluginlib
TEST args: --packages-above pluginlib
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18275

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

@ahcorde ahcorde merged commit ee18deb into ros:rolling Feb 20, 2026
2 of 3 checks passed
@pum1k pum1k deleted the feat/constructor-arguments branch February 20, 2026 18:19
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