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: add SIGINT handler to manage cancel request. #956

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

fujitatomoya
Copy link
Collaborator

Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes the problem described in ros2/rclpy#1390 (comment)

root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 action send_goal /fibonacci example_interfaces/action/Fibonacci "{order: 10}"
Waiting for an action server to become available...
Sending goal:
     order: 10

Goal accepted with ID: 64f5bdaf913348e98ef2180881c6fa68

^CCanceling goal...
Goal canceled.
Result:
    sequence: []

Goal finished with status: CANCELED

No exception generated, and correct status returned.

@fujitatomoya
Copy link
Collaborator Author

@clalancette @ahcorde can you take a look when you have time? if you think of any better solution, please let me know.

@fujitatomoya
Copy link
Collaborator Author

Pulls: #956
Gist: https://gist.githubusercontent.com/fujitatomoya/14161c38cefc8cb9f746a86ebbcced24/raw/829431971767647f7b721eb369249bdc998dddd2/ros2.repos
BUILD args: --packages-above-and-dependencies ros2action
TEST args: --packages-above ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14990

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canceling an action goal returns "Exception while canceling goal: None"
3 participants