-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add response code to action_msgs/CancelGoal service #63
Comments
PR with proposed API: #76 |
@mjeronimo, please take a look |
What happens if there is a request to cancel multiple goals? Are the only options that all or canceled or none are canceled? If so, if there is a failure to cancel all of them, would the reason for the failed cancellation be the same for all of them? If a client can send a request to cancel many goals (per the spec, "If the goal ID is empty and timestamp is zero, cancel all goals"), but only some are canceled then we can't just have a single reason/response code. Or, if they can fail to cancel for different reasons, it's also not enough information. |
That's a good point. Currently, the implementation will only return It's possible that during a "cancel all goals" request that the user's callback only accepts the request for a subset of active goals. This is because the user-defined callback is called separately for each goal. In retrospect this might be misleading since |
Feature request
Feature description
It was discussed as part of the Actions design doc that a response code be added to the
CancelGoal
service to better communicate to an action client the reason for a declined cancel request.Currently, in the event of a declined request (whether it is due to invalid data or is flat-out rejected by the server) the only information the action client receives is an empty list of goal IDs.
Implementation considerations
To avoid confusion with the action Result service, I propose we avoid the word "result" as proposed in ros2/design#193 (comment) and instead use "response":
Open to ideas on changes to the possible error codes.
The text was updated successfully, but these errors were encountered: