Skip to content

change ParameterEventHandler to take events as const ref instead of shared pointer#494

Merged
wjwwood merged 3 commits intomasterfrom
refactor_any_subscription
Apr 3, 2021
Merged

change ParameterEventHandler to take events as const ref instead of shared pointer#494
wjwwood merged 3 commits intomasterfrom
refactor_any_subscription

Conversation

@wjwwood
Copy link
Copy Markdown
Member

@wjwwood wjwwood commented Apr 1, 2021

This is related to, and requires, ros2/rclcpp#1598

@mjeronimo can you think of any other places we need to update something like this? Documentation?

…hared pointer

Signed-off-by: William Woodall <william@osrfoundation.org>
@wjwwood wjwwood added the enhancement New feature or request label Apr 1, 2021
@wjwwood wjwwood requested a review from mjeronimo April 1, 2021 08:41
@wjwwood wjwwood self-assigned this Apr 1, 2021
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
@mjeronimo
Copy link
Copy Markdown

Yes, probably need to update the ROS2 tutorial for the ParameterEventHandler. I'll take a look.

@mjeronimo
Copy link
Copy Markdown

mjeronimo commented Apr 2, 2021

As it turns out the ParameterEventHandler tutorial doesn't need to be updated as it doesn't use the add_parameter_event_handler() method (which is the one use to monitor all parameter events); instead, it uses add_parameter_handler(), which is unaffected by the change from the client code point of view.

So, the changes in the #494 and ros2/rclcpp#1598 are sufficient.

@wjwwood wjwwood merged commit eba767b into master Apr 3, 2021
@delete-merged-branch delete-merged-branch bot deleted the refactor_any_subscription branch April 3, 2021 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants