Function rcl_get_disable_loaned_message

Function Documentation

rcl_ret_t rcl_get_disable_loaned_message(bool *disable_loaned_message)

Check if loaned message is disabled, according to the environment variable.

If the ROS_DISABLE_LOANED_MESSAGES environment variable is set to “1”, disable_loaned_message will be set to true.

Parameters:

disable_loaned_message[out] Must not be NULL.

Returns:

RCL_RET_INVALID_ARGUMENT if an argument is not valid, or

Returns:

RCL_RET_ERROR if an unexpected error happened, or

Returns:

RCL_RET_OK.