Function rclc_action_send_result
Defined in File action_server.h
Function Documentation
-
rcl_ret_t rclc_action_send_result(rclc_action_goal_handle_t *goal_handle, rcl_action_goal_state_t status, void *ros_response)
Finish a goal with a given status and result. If successful, the goal_handle will be released on the next executor spin.
Attribute
Adherence
Allocates Memory
Yes
Thread-Safe
Yes
Uses Atomics
No
Lock-Free
No
- Parameters:
goal_handle – [inout] goal handle to be finished
status – [in] goal terminal state
ros_response – [in] action result message
- Returns:
RCL_RET_OK
if successful- Returns:
RCLC_RET_ACTION_WAIT_RESULT_REQUEST
if the result has not been requested yet.- Returns:
RCL_ERROR
(or other error code) if an error has occurred