Function rcl_action_get_result_service_name
Defined in File names.h
Function Documentation
-
rcl_ret_t rcl_action_get_result_service_name(const char *action_name, rcl_allocator_t allocator, char **result_service_name)
Get the result service name of an action.
This function returns the result service name for a given action name that must be used by action clients and action servers to successfully communicate with each other.
Attribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
action_name – [in] The name of the action whose result service name is being returned.
allocator – [in] A valid allocator to be used.
result_service_name – [out] Either an allocated string with the action result service name, or
NULLif the function failed to allocate memory for it. Must refer to aNULLpointer upon call.
- Returns:
RCL_RET_OKif the action result service name was returned, or- Returns:
RCL_RET_ACTION_NAME_INVALIDif the action name is not valid (i.e. empty), or- Returns:
RCL_RET_INVALID_ARGUMENTif the action name isNULL, or- Returns:
RCL_RET_INVALID_ARGUMENTif the allocator is invalid, or- Returns:
RCL_RET_INVALID_ARGUMENTif the result service name pointer isNULLor points to a non-NULLpointer, or- Returns:
RCL_RET_BAD_ALLOCif allocating memory failed.