-
Notifications
You must be signed in to change notification settings - Fork 528
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
cancel_action_goal results in action_result with no status #920
Comments
I tried something to fix this, but I couldn't get it working with CANCELED. If you're ok with it returning ABORTED and no result, there is #952 |
I think the issue with my above attempt, which didn't quite work, is that if you post an The current workaround of aborting a goal when a cancel is sent doesn't seem correct; rather, we should wait until the action returns, check its status, and update the goal in rosbridge accordingly. So the real integration test would be that you create a ROS 2 action server that is cancellable, and see if the cancel request goes through, and you get a return with the right status. HOWEVER, this idea will likely need to change the protocol so the |
Update: I just tried again in #953 -- could you check if this works for you? I'm not sure how you're sending the messages, but currently If all went well, the result should look like: {
"op": "action_result",
"action": "/robot/navigate_to_pose",
"values": {
"result": {}
},
"status": 5,
"result": true,
"id": "2"
} |
Description
If I send
send_action_goal
message and let the action run to completion I get back anaction_result
with avalues
field that contains astatus
of 4 (i.e. SUCCEEDED), e.g.:However, if I send a
cancel_action_goal
message before the action has completed, I get back anaction_result
with avalues
field that does not contain astatus
(I expected to seestatus
5 (i.e. CANCELED)).Steps To Reproduce
Send
send_action_goal
followed bycancel_action_goal
. Am running rosbridge withsend_action_goals_in_new_thread:=true
Expected Behavior
Expect to receive an
action_result
withvalues
field withstatus
5 (CANCELED), e.g.Actual Behavior
Actually receive an
action_result
withvalues
field with nostatus
, e.g.Also see the following error log from the rosbridge server:
The text was updated successfully, but these errors were encountered: