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

[ros2action] Calling cancel even after successful execution #219

Closed
Karsten1987 opened this issue Apr 15, 2019 · 4 comments · Fixed by #254
Closed

[ros2action] Calling cancel even after successful execution #219

Karsten1987 opened this issue Apr 15, 2019 · 4 comments · Fixed by #254
Assignees
Labels
bug Something isn't working in review Waiting for review (Kanban column)

Comments

@Karsten1987
Copy link
Contributor

Bug report

Required Info:

  • Operating System:
    • OSX
  • Installation type:
    • source
  • Version or commit hash:
    • latest master

Steps to reproduce issue

ros2 action send_goal --feedback <action name> <action type> "<data>"

Expected behavior

Goal finished with status: SUCCEEDED

Actual behavior

Goal finished with status: SUCCEEDED
Canceling goal...
Failed to cancel goal

Additional information

My believe is I see Failed to cancel goal because my implementation of the action server does not handle a cancel request atm.

Feature request

When goal is successfully reached, don't call cancel.

@Karsten1987 Karsten1987 added the bug Something isn't working label Apr 15, 2019
@jacobperron
Copy link
Member

I'm unable to reproduce this. If you could post a SSCCE for the action server that would be helpful.

@Karsten1987
Copy link
Contributor Author

hmm, maybe an OSX thing?

 ➭ ros2 run examples_rclcpp_minimal_action_server action_server_not_composable
[INFO] [server]: Got goal request with order 10
[INFO] [server]: Executing goal
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Publish Feedback
[INFO] [server]: Goal Suceeded
 ➭ ros2 action send_goal --feedback /fibonacci example_interfaces/Fibonacci "{order: 10}"
Waiting for an action server to become available...
Sending goal:
     order: 10

Goal accepted with ID: 06c856ccc5ba4c16b18f8bf432d68f23

Feedback:
    sequence: [0, 1, 1]

Feedback:
    sequence: [0, 1, 1, 2]

Feedback:
    sequence: [0, 1, 1, 2, 3]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5, 8]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5, 8, 13]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]

Feedback:
    sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]

Result:
    sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]

Goal finished with status: SUCCEEDED
Canceling goal...
Failed to cancel goal

@jubeira
Copy link
Contributor

jubeira commented Apr 16, 2019

I could reproduce this with:

  • Ubuntu 18.04
  • Version 0.7.0 from debians (Dashing pre-release)
  • fastrtps and connext; not with opensplice.

It doesn't happen always (I'd say ~20% of the times). Same output as @Karsten1987 described.

@Karsten1987
Copy link
Contributor Author

@jacobperron: This is still happening for me at every command I issue.

@jacobperron jacobperron added the ready Work is about to start (Kanban column) label Apr 25, 2019
@dirk-thomas dirk-thomas self-assigned this May 23, 2019
@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed ready Work is about to start (Kanban column) labels May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants