Minimal service client implementation without using wait_until_future_complete #4993
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.
This PR relates to Tutorial for writing a service with an asynchronous client node, as it originates from the discussion on synchronous vs. asynchronous service requests in that PR. However, I believe this proposal should follow its own review process.
I am not entirely sure this proposal will be accepted, but I strongly believe the other one should be, particularly due to some of the arguments I outline here. My intention here is to show how to send an asynchronous request in a timer. That is a basic example not truly meant to understanding asynchronism, just to use it.
Since I anticipate a thoughtful technical discussion, I will first provide a brief introduction to key concepts (as I understand them), then explain why this new version of the minimal client is an improvement, and finally discuss its benefits for learning.
Concepts and Facts:
Advantages of this approach:
Why this approach is better for learning ROS 2:
As mentioned, I expect an extensive discussion on these matters, especially since this proposal suggests significant changes to an existing and established implementation. I encourage everyone to approach this discussion with an open mind.