17 #ifndef RCL__LOGGING_ROSOUT_H_
18 #define RCL__LOGGING_ROSOUT_H_
21 #include "rcl/error_handling.h"
23 #include "rcl/macros.h"
25 #include "rcl/visibility_control.h"
27 #include "rmw/qos_profiles.h"
40 RCUTILS_DEPRECATED_WITH_MSG(
"use rmw_qos_profile_rosout_default instead")
41 static const rmw_qos_profile_t rcl_qos_profile_rosout_default =
43 RMW_QOS_POLICY_HISTORY_KEEP_LAST,
45 RMW_QOS_POLICY_RELIABILITY_RELIABLE,
46 RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL,
47 RMW_QOS_DEADLINE_DEFAULT,
49 RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT,
50 RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT,
188 const rcutils_log_location_t * location,
191 rcutils_time_point_value_t timestamp,
228 const char * logger_name,
const char * sublogger_name);
257 const char * logger_name,
const char * sublogger_name);
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_add_sublogger(const char *logger_name, const char *sublogger_name)
Add a subordinate logger based on a logger.
RCL_PUBLIC void rcl_logging_rosout_output_handler(const rcutils_log_location_t *location, int severity, const char *name, rcutils_time_point_value_t timestamp, const char *format, va_list *args)
The output handler outputs log messages to rosout topics.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_init_publisher_for_node(rcl_node_t *node)
Creates a rosout publisher for a node and registers it to be used by the logging system.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_fini_publisher_for_node(rcl_node_t *node)
Deregisters a rosout publisher for a node and cleans up allocated resources.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_fini(void)
Uninitializes the rcl_logging_rosout features.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_init(const rcl_allocator_t *allocator)
Initializes the rcl_logging_rosout features.
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_logging_rosout_remove_sublogger(const char *logger_name, const char *sublogger_name)
Remove a subordinate logger and cleans up allocated resources.
Structure which encapsulates a ROS Node.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.