Skip to content

Update Pluginlib tutorial to use constructors#6412

Merged
ahcorde merged 1 commit into
ros2:rollingfrom
pum1k:feat/pluginlib-constructors
Apr 20, 2026
Merged

Update Pluginlib tutorial to use constructors#6412
ahcorde merged 1 commit into
ros2:rollingfrom
pum1k:feat/pluginlib-constructors

Conversation

@pum1k

@pum1k pum1k commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Description

This PR updates the Pluginlib tutorial to pass arguments directly to constructors of the plugins instead of using initialize method. This is possible using a new feature of pluginlib (ros/pluginlib#291).

Did you use Generative AI?

No.

Additional Information

I tested the updated code with osrf/ros2:nightly Docker image.

ros/pluginlib#291 added the ability to pass arguments dircetly to
the constructor of the plugin. This updates the documentation to use
this new feature.

Signed-off-by: pum1k <55055380+pum1k@users.noreply.github.com>
@ahcorde ahcorde merged commit 137e28d into ros2:rolling Apr 20, 2026
7 checks passed
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