Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goal response callback compatibility shim with deprecation of old signature #1495

Merged
merged 5 commits into from
Dec 21, 2020

Conversation

ivanpauno
Copy link
Member

#1311 broke the goal response callback signature, this adds a compatibility shim so we affect less users in the next galactic release (see this comment).

I think this is a good idea, but there's a minor caveat: goal_response_callback was before a std::function<>, with the full std::function API available, and now there are a few things that the shim type doesn't implement (e.g.: assign, swap), though we could try to implement all of them.

…nature

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added the enhancement New feature or request label Dec 18, 2020
@ivanpauno ivanpauno self-assigned this Dec 18, 2020
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

Code overall looks OK, pending green CI.

rclcpp_action/include/rclcpp_action/client.hpp Outdated Show resolved Hide resolved
rclcpp_action/include/rclcpp_action/client.hpp Outdated Show resolved Hide resolved
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno force-pushed the ivanpauno/goal_response_callback_compatibility_shim branch from 5acca93 to 476381b Compare December 21, 2020 15:06
@ivanpauno
Copy link
Member Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM !

@ivanpauno ivanpauno merged commit 6257103 into master Dec 21, 2020
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/goal_response_callback_compatibility_shim branch December 21, 2020 17:54
@jacobperron
Copy link
Member

Thanks, LGTM too!

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.

None yet

3 participants