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

Revision history [back]

I even wonder if you can cancel some specific goal using the rclcpp_action API nowadays. You can see this: https://github.com/ros2/rclcpp/issues/747

Cancelling everything is an alternative:

  client_ptr->async_cancel_all_goals();

I even wonder if you can cancel some specific action goal using the rclcpp_action API nowadays. nowadays (Aug 2022).

The problem is that the "async_cancel_goal" requires a goal handle, but the "send_goal" function only provides a "future goal handle". You will get the required "goal handle" only after the response from the server is received. Too late to cancel.

You can see this: https://github.com/ros2/rclcpp/issues/747

Cancelling everything is an alternative:

  client_ptr->async_cancel_all_goals();

I even wonder if you can cancel some specific action goal using the rclcpp_action API nowadays (Aug (Sept 2022).

The problem is that the "async_cancel_goal" requires a goal handle, but the "send_goal" function only provides a "future goal handle". You will get the required "goal handle" only after the response from the server is received. Too late to cancel.

You can see this: https://github.com/ros2/rclcpp/issues/747

Cancelling everything is an alternative:

  client_ptr->async_cancel_all_goals();

I even wonder if you can cancel some specific action goal using the rclcpp_action API nowadays (Sept 2022).

The problem is that the "async_cancel_goal" requires a goal handle, but the "send_goal" function only provides a "future goal handle". You will get the required "goal handle" only after the response from the server is received. Too late to cancel.

You can see this: I would say that is still an open issue in the rclcpp repo: https://github.com/ros2/rclcpp/issues/747

Cancelling By the moment, cancelling everything is an alternative:

  client_ptr->async_cancel_all_goals();

I even wonder if you can cancel some specific action goal using the rclcpp_action API nowadays (Sept 2022).

The problem is that the "async_cancel_goal" requires a goal handle, but the "send_goal" function only provides a "future goal handle". You will get the required "goal handle" only after the response from the server is received. Too late to cancel.

see: https://github.com/ros2/rclcpp/blob/33dae5d679751b603205008fcb31755986bcee1c/rclcpp_action/include/rclcpp_action/client.hpp#L454

I would say that is still an open issue in the rclcpp repo: https://github.com/ros2/rclcpp/issues/747

By the moment, cancelling everything is an alternative:

  client_ptr->async_cancel_all_goals();