rcl  master
C API providing common ROS client library functionality.
logging_rosout.h
1 // Copyright 2018-2019 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RCL__LOGGING_ROSOUT_H_
16 #define RCL__LOGGING_ROSOUT_H_
17 
18 #include "rcl/allocator.h"
19 #include "rcl/error_handling.h"
20 #include "rcl/node.h"
21 #include "rcl/types.h"
22 #include "rcl/visibility_control.h"
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
30 
48 RCL_PUBLIC
49 RCL_WARN_UNUSED
50 rcl_ret_t
51 rcl_logging_rosout_init(
52  const rcl_allocator_t * allocator);
53 
55 
70 RCL_PUBLIC
71 RCL_WARN_UNUSED
72 rcl_ret_t
73 rcl_logging_rosout_fini();
74 
76 
101 RCL_LOCAL
102 RCL_WARN_UNUSED
103 rcl_ret_t
104 rcl_logging_rosout_init_publisher_for_node(
105  rcl_node_t * node);
106 
108 
127 RCL_LOCAL
128 RCL_WARN_UNUSED
129 rcl_ret_t
130 rcl_logging_rosout_fini_publisher_for_node(
131  rcl_node_t * node);
132 
134 
157 RCL_PUBLIC
158 void rcl_logging_rosout_output_handler(
159  const rcutils_log_location_t * location,
160  int severity,
161  const char * name,
162  rcutils_time_point_value_t timestamp,
163  const char * format,
164  va_list * args);
165 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif // RCL__LOGGING_ROSOUT_H_
rcl_node_t
Structure which encapsulates a ROS Node.
Definition: node.h:37
rcutils_time_point_value_t
int64_t rcutils_time_point_value_t
rcutils_log_location_t
rcutils_allocator_t
va_list