spin until future complete for async service client#317
Closed
Karsten1987 wants to merge 1 commit intomasterfrom
Closed
spin until future complete for async service client#317Karsten1987 wants to merge 1 commit intomasterfrom
Karsten1987 wants to merge 1 commit intomasterfrom
Conversation
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Member
|
I think it might make for a more compelling demo if the spinning on the future was encapsulated in the class, although it's a bit more involved. For example, in ros2/examples#230 I have class methods "spin_until_goal_complete" (client) and "spin" (server) for encapsulating the logic related to the futures. |
jacobperron
approved these changes
Apr 24, 2019
Member
jacobperron
left a comment
There was a problem hiding this comment.
Following my previous comment, we'd like to change this (and the other demos) to use composition. I've opened #325 to track this. I'll leave it up to you if you want to merge this as-is.
Member
|
@Karsten1987 with the composition transition underway what is the status of this PR? |
Member
|
We can try to address it in #325 (or post) to avoid conflicts. @skucheria FYI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #316
When hitting
ctrl-c, the node exits cleanly now:Signed-off-by: Karsten Knese karsten@openrobotics.org