ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

wkpst's profile - activity

2021-05-20 12:14:12 -0500 received badge  Famous Question (source)
2021-03-17 23:33:11 -0500 marked best answer What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine?

From the figure above, when exactly does the used-defined functions (handle_goal, handle_cancel, and handle_accepted) passed to the create_server function get called?

What I understand from the document is that: once we return rclcpp_action::GoalResponse::ACCEPT_AND_EXECUTE from the handle_goal (passed to the create_server), then at some point, the handle_accepted function will get called and we can perform the task inside the handle_accepted function.

But for cancelling the action, I am a little bit confused reading the document. From the document, it is written that:

  • CANCELING - The client has requested that the goal be canceled and the action server has accepted the cancel request. This state is useful for any user-defined “clean up” that the action server may have to do.

But once we return rclcpp_action::CancelResponse::ACCEPT in the function handle_cancel (passed to the create_server), what happen and what does the "CANCELING" state in the figure do? Where should we define the user-defined "clean up" function?

2021-03-17 23:33:11 -0500 received badge  Scholar (source)
2021-03-17 23:33:08 -0500 received badge  Notable Question (source)
2021-03-02 02:45:19 -0500 commented answer What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine?

@jacobperron I'm just curious if I understand correctly that the handle_cancel is also a blocking call as well as handle

2021-03-02 02:45:19 -0500 commented answer What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine?

@jacobperron Thanks for your detailed explanation. Aha, so it seems the design is that: the user (server side) is respon

2021-03-02 02:45:18 -0500 commented question What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine?

@kscottz Sorry, I posted on ROS Discourse first and I realized I should post here. Will remove my post on ROS Discourse.

2021-03-02 02:25:50 -0500 received badge  Supporter (source)
2021-03-01 23:08:30 -0500 received badge  Popular Question (source)
2021-03-01 09:03:15 -0500 asked a question What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine?

What does "ACCEPTED" and "CANCELING" states do in the ros2 action state machine? From the figure above, when exactly d

2021-02-14 04:25:22 -0500 received badge  Enthusiast