Function rcl_action_get_cancel_service_name
Defined in File names.h
Function Documentation
-
rcl_ret_t rcl_action_get_cancel_service_name(const char *action_name, rcl_allocator_t allocator, char **cancel_service_name)
Get the cancel service name of an action.
This function returns the cancel 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 cancel service name is being returned.
allocator – [in] A valid allocator to be used.
cancel_service_name – [out] Either an allocated string with the action cancel service name, or
NULLif the function failed to allocate memory for it. Must refer to aNULLpointer upon call.
- Returns:
RCL_RET_OKif the action cancel 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 cancel service name isNULLor points to a non-NULLpointer, or- Returns:
RCL_RET_BAD_ALLOCif allocating memory failed.