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

cancel_action_goal results in action_result with no status #920

Open
mirons5678 opened this issue Apr 12, 2024 · 0 comments
Open

cancel_action_goal results in action_result with no status #920

mirons5678 opened this issue Apr 12, 2024 · 0 comments
Labels

Comments

@mirons5678
Copy link

Description

If I send send_action_goal message and let the action run to completion I get back an action_result with a values field that contains a status of 4 (i.e. SUCCEEDED), e.g.:

{
  "op": "action_result",
  "action": "/robot/navigate_to_pose",
  "values": {
    "status": 4,
    "result": {
      "result": {}
    }
  },
  "result": true,
  "id": "2"
}

However, if I send a cancel_action_goal message before the action has completed, I get back an action_result with a values field that does not contain a status (I expected to see status 5 (i.e. CANCELED)).

  • Library Version: Built from source (7d78af1)
  • ROS Version: Humble
  • Platform / OS: Ubuntu 22.04

Steps To Reproduce

Send send_action_goal followed by cancel_action_goal. Am running rosbridge with send_action_goals_in_new_thread:=true

Expected Behavior

Expect to receive an action_result with values field with status 5 (CANCELED), e.g.

{
  "op": "action_result",
  "action": "/robot/navigate_to_pose",
  "values": {
    "status": 5,
    "result": {
      "result": {}
    }
  },
  "result": true,
  "id": "2"
}

Actual Behavior

Actually receive an action_result with values field with no status, e.g.

{
  "op": "action_result",
  "action": "/robot/navigate_to_pose",
  "values": "None",
  "result": false,
  "id": "1"
}

Also see the following error log from the rosbridge server:

[rosbridge_websocket-1] [ERROR] [1712917839.725245716] [rosbridge_websocket]: [Client c19854d4-a8e8-49d2-9736-3b500c846d61] send_action_goal Exception: send_action_goal:/robot/navigate_to_pose:49724a1e-dffc-4a4d-a8f6-a66cbe77d5ec
@mirons5678 mirons5678 added the bug label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant