20 #include "rcutils/macros.h"
26 #include "rcl/error_handling.h"
35 .use_global_arguments =
true,
37 .enable_rosout =
true,
38 .rosout_qos = rcl_qos_profile_rosout_default,
40 return default_options;
52 if (options_out == options) {
53 RCL_SET_ERROR_MSG(
"Attempted to copy options into itself");
57 RCL_SET_ERROR_MSG(
"Options out must be zero initialized");
81 RCL_SET_ERROR_MSG(
"Failed to fini rcl arguments");
#define RCL_CHECK_ALLOCATOR(allocator, fail_statement)
Check that the given allocator is initialized.
#define rcl_get_default_allocator
Return a properly initialized rcl_allocator_t with default values.
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_arguments_copy(const rcl_arguments_t *args, rcl_arguments_t *args_out)
Copy one arguments structure into another.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_arguments_fini(rcl_arguments_t *args)
Reclaim resources held inside rcl_arguments_t structure.
RCL_PUBLIC RCL_WARN_UNUSED rcl_arguments_t rcl_get_zero_initialized_arguments(void)
Return a rcl_arguments_t struct with members initialized to NULL.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_node_options_copy(const rcl_node_options_t *options, rcl_node_options_t *options_out)
Copy one options structure into another.
RCL_PUBLIC rcl_node_options_t rcl_node_get_default_options(void)
Return the default node options in a rcl_node_options_t.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_node_options_fini(rcl_node_options_t *options)
Finalize the given node_options.
rcl_arguments_impl_t * impl
Private implementation pointer.
Structure which encapsulates the options for creating a rcl_node_t.
bool use_global_arguments
If false then only use arguments in this struct, otherwise use global arguments also.
rmw_qos_profile_t rosout_qos
Middleware quality of service settings for /rosout.
rcl_arguments_t arguments
Command line arguments that apply only to this node.
bool enable_rosout
Flag to enable rosout for this node.
rcl_allocator_t allocator
If true, no parameter infrastructure will be setup.
#define RCL_RET_OK
Success return code.
#define RCL_RET_INVALID_ARGUMENT
Invalid argument return code.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.