Function rcl_action_server_wait_set_get_entities_ready
Defined in File wait.h
Function Documentation
-
rcl_ret_t rcl_action_server_wait_set_get_entities_ready(const rcl_wait_set_t *wait_set, const rcl_action_server_t *action_server, bool *is_goal_request_ready, bool *is_cancel_request_ready, bool *is_result_request_ready, bool *is_goal_expired)
Get the wait set entities that are ready for a rcl_action_server_t.
The caller can use this function to determine the relevant action server functions to call: rcl_action_take_goal_request(), rcl_action_take_cancel_request(), or rcl_action_take_result_request().
Attribute
Adherence
Allocates Memory
No
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
wait_set – [in] struct where action server services are to be stored
action_server – [in] an action server to query
is_goal_request_ready – [out]
trueif there is a goal request message ready to take,falseotherwiseis_cancel_request_ready – [out]
trueif there is a cancel request message ready to take,falseotherwiseis_result_request_ready – [out]
trueif there is a result request message ready to take,falseotherwiseis_goal_expired – [out]
trueif there is a goal that expired,falseotherwise
- Returns:
RCL_RET_OKif call is successful, or- Returns:
RCL_RET_WAIT_SET_INVALIDif the wait set is invalid, or- Returns:
RCL_RET_INVALID_ARGUMENTif any arguments are invalid, or- Returns:
RCL_RET_ACTION_CLIENT_INVALIDif the action server is invalid, or- Returns:
RCL_RET_ERRORif an unspecified error occurs.