include
cras_cpp_common
log_utils
macros.h
Go to the documentation of this file.
1
#pragma once
2
18
// This file contains code heavily inspired by ros/console.h and rosconsole/macros_generated.h, both
19
// Copyright (c) 2008, Willow Garage, Inc. under the BSD-3 license.
20
21
#include <algorithm>
22
#include <unordered_map>
23
#include <vector>
24
25
#include <
cras_cpp_common/small_map.hpp
>
26
33
#define CRASCONSOLE_AUTOINIT(logger) \
34
do \
35
{ \
36
if (ROS_UNLIKELY(!(logger)->initialized)) \
37
{ \
38
(logger)->initialize(); \
39
} \
40
} while (false)
41
42
#define CRASCONSOLE_DEFINE_LOCATION(logger, cond, level, name) \
43
CRASCONSOLE_AUTOINIT((logger)); \
44
static ::cras::SmallMap<const void*, ::ros::console::LogLocation> __rosconsole_define_location__map; \
45
const auto __cras_logger_id__ = (logger)->getId(); \
46
auto& __rosconsole_define_location__loc = __rosconsole_define_location__map.insertIfNew(__cras_logger_id__, \
47
false, false, ::ros::console::levels::Count, nullptr); \
48
if (ROS_UNLIKELY(!__rosconsole_define_location__loc.initialized_)) \
49
{ \
50
(logger)->initializeLogLocation(&__rosconsole_define_location__loc, (name), (level)); \
51
} \
52
if (ROS_UNLIKELY(__rosconsole_define_location__loc.level_ != (level))) \
53
{ \
54
(logger)->setLogLocationLevel(&__rosconsole_define_location__loc, level); \
55
(logger)->checkLogLocationEnabled(&__rosconsole_define_location__loc); \
56
} \
57
bool __rosconsole_define_location__enabled = __rosconsole_define_location__loc.logger_enabled_ && (cond);
58
59
#define CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(logger, filter, ...) \
60
(logger)->print((filter), __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, \
61
__FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
62
63
#define CRASCONSOLE_PRINT_AT_LOCATION(logger, ...) \
64
CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER((logger), NULL, __VA_ARGS__)
65
66
#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(logger, filter, args) \
67
do \
68
{ \
69
std::stringstream __rosconsole_print_stream_at_location_with_filter__ss__; \
70
__rosconsole_print_stream_at_location_with_filter__ss__ << args; \
71
(logger)->print((filter), __rosconsole_define_location__loc.logger_, \
72
__rosconsole_define_location__loc.level_, __rosconsole_print_stream_at_location_with_filter__ss__, \
73
__FILE__, __LINE__, __ROSCONSOLE_FUNCTION__); \
74
} while (0)
75
76
#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION(logger, args) \
77
CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER((logger), NULL, args)
78
91
#define CRAS_LOG_COND(logger, cond, level, name, ...) \
92
do \
93
{ \
94
CRASCONSOLE_DEFINE_LOCATION((logger), (cond), (level), (name)); \
95
\
96
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
97
{ \
98
CRASCONSOLE_PRINT_AT_LOCATION(logger, __VA_ARGS__); \
99
} \
100
} while (false)
101
115
#define CRAS_LOG_STREAM_COND(logger, cond, level, name, args) \
116
do \
117
{ \
118
CRASCONSOLE_DEFINE_LOCATION((logger), (cond), (level), (name)); \
119
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
120
{ \
121
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
122
} \
123
} while (false)
124
134
#define CRAS_LOG_ONCE(logger, level, name, ...) \
135
do \
136
{ \
137
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
138
static ::std::vector<const void*> hitSet;
/* vector instead of set as we assume only a few elements */
\
139
const auto hit = ::std::find(hitSet.begin(), hitSet.end(), __cras_logger_id__) != hitSet.end(); \
140
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!hit)) \
141
{ \
142
hitSet.push_back(__cras_logger_id__); \
143
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
144
} \
145
} while (false)
146
157
#define CRAS_LOG_STREAM_ONCE(logger, level, name, args) \
158
do \
159
{ \
160
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
161
static ::cras::SmallSet<const void*> hitSet; \
162
const auto hit = !hitSet.insert(__cras_logger_id__); \
163
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!hit)) \
164
{ \
165
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
166
} \
167
} while (false)
168
180
#define CRAS_LOG_THROTTLE(logger, period, level, name, ...) \
181
do \
182
{ \
183
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
184
static ::cras::SmallMap<const void*, double> lastHitMap; \
185
const auto now = (logger)->getTimeNow().toSec(); \
186
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, 0.0); \
187
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
188
{ \
189
lastHit = now; \
190
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
191
} \
192
} while (false)
193
206
#define CRAS_LOG_STREAM_THROTTLE(logger, period, level, name, args) \
207
do \
208
{ \
209
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
210
static ::cras::SmallMap<const void*, double> lastHitMap; \
211
const auto now = (logger)->getTimeNow().toSec(); \
212
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, 0.0); \
213
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
214
{ \
215
lastHit = now; \
216
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
217
} \
218
} while (false)
219
231
#define CRAS_LOG_DELAYED_THROTTLE(logger, period, level, name, ...) \
232
do \
233
{ \
234
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
235
const auto now = (logger)->getTimeNow().toSec(); \
236
static ::cras::SmallMap<const void*, double> lastHitMap; \
237
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, now); \
238
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period)))\
239
{ \
240
lastHit = now; \
241
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
242
} \
243
} while (false)
244
257
#define CRAS_LOG_STREAM_DELAYED_THROTTLE(logger, period, level, name, args) \
258
do \
259
{ \
260
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
261
const auto now = (logger)->getTimeNow().toSec(); \
262
static ::cras::SmallMap<const void*, double> lastHitMap; \
263
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, now); \
264
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
265
{ \
266
lastHit = now; \
267
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
268
} \
269
} while (false)
270
281
#define CRAS_LOG_FILTER(logger, filter, level, name, ...) \
282
do \
283
{ \
284
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
285
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
286
{ \
287
CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER((logger), filter, __VA_ARGS__); \
288
} \
289
} while (false)
290
302
#define CRAS_LOG_STREAM_FILTER(logger, filter, level, name, args) \
303
do \
304
{ \
305
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
306
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
307
{ \
308
CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER((logger), filter, args); \
309
} \
310
} while (false)
311
320
#define CRAS_LOG(logger, level, name, ...) CRAS_LOG_COND((logger), true, (level), (name), __VA_ARGS__)
321
331
#define CRAS_LOG_STREAM(logger, level, name, args) CRAS_LOG_STREAM_COND((logger), true, (level), (name), args)
332
333
#if (ROSCONSOLE_MIN_SEVERITY > ROSCONSOLE_SEVERITY_DEBUG)
334
#define CRAS_LOG_DEBUG(logger, ...)
335
#define CRAS_LOG_DEBUG_STREAM(logger, args)
336
#define CRAS_LOG_DEBUG_NAMED(logger, name, ...)
337
#define CRAS_LOG_DEBUG_STREAM_NAMED(logger, name, args)
338
#define CRAS_LOG_DEBUG_COND(logger, cond, ...)
339
#define CRAS_LOG_DEBUG_STREAM_COND(logger, cond, args)
340
#define CRAS_LOG_DEBUG_COND_NAMED(logger, cond, name, ...)
341
#define CRAS_LOG_DEBUG_STREAM_COND_NAMED(logger, cond, name, args)
342
#define CRAS_LOG_DEBUG_ONCE(logger, ...)
343
#define CRAS_LOG_DEBUG_STREAM_ONCE(logger, args)
344
#define CRAS_LOG_DEBUG_ONCE_NAMED(logger, name, ...)
345
#define CRAS_LOG_DEBUG_STREAM_ONCE_NAMED(logger, name, args)
346
#define CRAS_LOG_DEBUG_THROTTLE(logger, period, ...)
347
#define CRAS_LOG_DEBUG_STREAM_THROTTLE(logger, period, args)
348
#define CRAS_LOG_DEBUG_THROTTLE_NAMED(logger, period, name, ...)
349
#define CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED(logger, period, name, args)
350
#define CRAS_LOG_DEBUG_DELAYED_THROTTLE(logger, period, ...)
351
#define CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE(logger, period, args)
352
#define CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED(logger, period, name, ...)
353
#define CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args)
354
#define CRAS_LOG_DEBUG_FILTER(logger, filter, ...)
355
#define CRAS_LOG_DEBUG_STREAM_FILTER(logger, filter, args)
356
#define CRAS_LOG_DEBUG_FILTER_NAMED(logger, filter, name, ...)
357
#define CRAS_LOG_DEBUG_STREAM_FILTER_NAMED(logger, filter, name, args)
358
#define CRAS_DEBUG(...)
359
#define CRAS_DEBUG_STREAM(args)
360
#define CRAS_DEBUG_NAMED(name, ...)
361
#define CRAS_DEBUG_STREAM_NAMED(name, args)
362
#define CRAS_DEBUG_COND(cond, ...)
363
#define CRAS_DEBUG_STREAM_COND(cond, args)
364
#define CRAS_DEBUG_COND_NAMED(cond, name, ...)
365
#define CRAS_DEBUG_STREAM_COND_NAMED(cond, name, args)
366
#define CRAS_DEBUG_ONCE(...)
367
#define CRAS_DEBUG_STREAM_ONCE(args)
368
#define CRAS_DEBUG_ONCE_NAMED(name, ...)
369
#define CRAS_DEBUG_STREAM_ONCE_NAMED(name, args)
370
#define CRAS_DEBUG_THROTTLE(period, ...)
371
#define CRAS_DEBUG_STREAM_THROTTLE(period, args)
372
#define CRAS_DEBUG_THROTTLE_NAMED(period, name, ...)
373
#define CRAS_DEBUG_STREAM_THROTTLE_NAMED(period, name, args)
374
#define CRAS_DEBUG_DELAYED_THROTTLE(period, ...)
375
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE(period, args)
376
#define CRAS_DEBUG_DELAYED_THROTTLE_NAMED(period, name, ...)
377
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)
378
#define CRAS_DEBUG_FILTER(filter, ...)
379
#define CRAS_DEBUG_STREAM_FILTER(filter, args)
380
#define CRAS_DEBUG_FILTER_NAMED(filter, name, ...)
381
#define CRAS_DEBUG_STREAM_FILTER_NAMED(filter, name, args)
382
#else
383
#define CRAS_LOG_DEBUG(logger, ...) CRAS_LOG((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
384
#define CRAS_LOG_DEBUG_STREAM(logger, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
385
#define CRAS_LOG_DEBUG_NAMED(logger, name, ...) CRAS_LOG((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
386
#define CRAS_LOG_DEBUG_STREAM_NAMED(logger, name, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
387
#define CRAS_LOG_DEBUG_COND(logger, cond, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
388
#define CRAS_LOG_DEBUG_STREAM_COND(logger, cond, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
389
#define CRAS_LOG_DEBUG_COND_NAMED(logger, cond, name, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
390
#define CRAS_LOG_DEBUG_STREAM_COND_NAMED(logger, cond, name, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
391
#define CRAS_LOG_DEBUG_ONCE(logger, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
392
#define CRAS_LOG_DEBUG_STREAM_ONCE(logger, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
393
#define CRAS_LOG_DEBUG_ONCE_NAMED(logger, name, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
394
#define CRAS_LOG_DEBUG_STREAM_ONCE_NAMED(logger, name, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
395
#define CRAS_LOG_DEBUG_THROTTLE(logger, period, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
396
#define CRAS_LOG_DEBUG_STREAM_THROTTLE(logger, period, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
397
#define CRAS_LOG_DEBUG_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
398
#define CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
399
#define CRAS_LOG_DEBUG_DELAYED_THROTTLE(logger, period, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
400
#define CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE(logger, period, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
401
#define CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
402
#define CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
403
#define CRAS_LOG_DEBUG_FILTER(logger, filter, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
404
#define CRAS_LOG_DEBUG_STREAM_FILTER(logger, filter, args) CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
405
#define CRAS_LOG_DEBUG_FILTER_NAMED(logger, filter, name, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
406
#define CRAS_LOG_DEBUG_STREAM_FILTER_NAMED(logger, filter, name, args) CRAS_LOG_STREAM_FILTER(getCrasLogger(), (filter), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
407
#define CRAS_DEBUG(...) CRAS_LOG_DEBUG(getCrasLogger(), __VA_ARGS__)
408
#define CRAS_DEBUG_STREAM(args) CRAS_LOG_DEBUG_STREAM(getCrasLogger(), args)
409
#define CRAS_DEBUG_NAMED(name, ...) CRAS_LOG_DEBUG_NAMED(getCrasLogger(), (name), __VA_ARGS__)
410
#define CRAS_DEBUG_STREAM_NAMED(name, args) CRAS_LOG_DEBUG_STREAM_NAMED(getCrasLogger(), (name), args)
411
#define CRAS_DEBUG_COND(cond, ...) CRAS_LOG_DEBUG_COND(getCrasLogger(), (cond), __VA_ARGS__)
412
#define CRAS_DEBUG_STREAM_COND(cond, args) CRAS_LOG_DEBUG_STREAM_COND(getCrasLogger(), (cond), args)
413
#define CRAS_DEBUG_COND_NAMED(cond, name, ...) CRAS_LOG_DEBUG_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
414
#define CRAS_DEBUG_STREAM_COND_NAMED(cond, name, args) CRAS_LOG_DEBUG_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args)
/* NOLINT */
415
#define CRAS_DEBUG_ONCE(...) CRAS_LOG_DEBUG_ONCE(getCrasLogger(), __VA_ARGS__)
416
#define CRAS_DEBUG_STREAM_ONCE(args) CRAS_LOG_DEBUG_STREAM_ONCE(getCrasLogger(), args)
417
#define CRAS_DEBUG_ONCE_NAMED(name, ...) CRAS_LOG_DEBUG_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
418
#define CRAS_DEBUG_STREAM_ONCE_NAMED(name, args) CRAS_LOG_DEBUG_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
419
#define CRAS_DEBUG_THROTTLE(period, ...) CRAS_LOG_DEBUG_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
420
#define CRAS_DEBUG_STREAM_THROTTLE(period, args) CRAS_LOG_DEBUG_STREAM_THROTTLE(getCrasLogger(), (period), args)
421
#define CRAS_DEBUG_THROTTLE_NAMED(period, name, ...) CRAS_LOG_DEBUG_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
422
#define CRAS_DEBUG_STREAM_THROTTLE_NAMED(period, name, args) CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
423
#define CRAS_DEBUG_DELAYED_THROTTLE(period, ...) CRAS_LOG_DEBUG_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
424
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE(period, args) CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args)
/* NOLINT */
425
#define CRAS_DEBUG_DELAYED_THROTTLE_NAMED(period, name, ...) CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
426
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(period, name, args) CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
427
#define CRAS_DEBUG_FILTER(filter, ...) CRAS_LOG_DEBUG_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
428
#define CRAS_DEBUG_STREAM_FILTER(filter, args) CRAS_LOG_DEBUG_STREAM_FILTER(getCrasLogger(), (filter), args)
429
#define CRAS_DEBUG_FILTER_NAMED(filter, name, ...) CRAS_LOG_DEBUG_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__)
/* NOLINT */
430
#define CRAS_DEBUG_STREAM_FILTER_NAMED(filter, name, args) CRAS_LOG_DEBUG_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args)
/* NOLINT */
431
#endif
432
433
#if (ROSCONSOLE_MIN_SEVERITY > ROSCONSOLE_SEVERITY_INFO)
434
#define CRAS_LOG_INFO(logger, ...)
435
#define CRAS_LOG_INFO_STREAM(logger, args)
436
#define CRAS_LOG_INFO_NAMED(logger, name, ...)
437
#define CRAS_LOG_INFO_STREAM_NAMED(logger, name, args)
438
#define CRAS_LOG_INFO_COND(logger, cond, ...)
439
#define CRAS_LOG_INFO_STREAM_COND(logger, cond, args)
440
#define CRAS_LOG_INFO_COND_NAMED(logger, cond, name, ...)
441
#define CRAS_LOG_INFO_STREAM_COND_NAMED(logger, cond, name, args)
442
#define CRAS_LOG_INFO_ONCE(logger, ...)
443
#define CRAS_LOG_INFO_STREAM_ONCE(logger, args)
444
#define CRAS_LOG_INFO_ONCE_NAMED(logger, name, ...)
445
#define CRAS_LOG_INFO_STREAM_ONCE_NAMED(logger, name, args)
446
#define CRAS_LOG_INFO_THROTTLE(logger, period, ...)
447
#define CRAS_LOG_INFO_STREAM_THROTTLE(logger, period, args)
448
#define CRAS_LOG_INFO_THROTTLE_NAMED(logger, period, name, ...)
449
#define CRAS_LOG_INFO_STREAM_THROTTLE_NAMED(logger, period, name, args)
450
#define CRAS_LOG_INFO_DELAYED_THROTTLE(logger, period, ...)
451
#define CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE(logger, period, args)
452
#define CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED(logger, period, name, ...)
453
#define CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args)
454
#define CRAS_LOG_INFO_FILTER(logger, filter, ...)
455
#define CRAS_LOG_INFO_STREAM_FILTER(logger, filter, args)
456
#define CRAS_LOG_INFO_FILTER_NAMED(logger, filter, name, ...)
457
#define CRAS_LOG_INFO_STREAM_FILTER_NAMED(logger, filter, name, args)
458
#define CRAS_INFO(...)
459
#define CRAS_INFO_STREAM(args)
460
#define CRAS_INFO_NAMED(name, ...)
461
#define CRAS_INFO_STREAM_NAMED(name, args)
462
#define CRAS_INFO_COND(cond, ...)
463
#define CRAS_INFO_STREAM_COND(cond, args)
464
#define CRAS_INFO_COND_NAMED(cond, name, ...)
465
#define CRAS_INFO_STREAM_COND_NAMED(cond, name, args)
466
#define CRAS_INFO_ONCE(...)
467
#define CRAS_INFO_STREAM_ONCE(args)
468
#define CRAS_INFO_ONCE_NAMED(name, ...)
469
#define CRAS_INFO_STREAM_ONCE_NAMED(name, args)
470
#define CRAS_INFO_THROTTLE(period, ...)
471
#define CRAS_INFO_STREAM_THROTTLE(period, args)
472
#define CRAS_INFO_THROTTLE_NAMED(period, name, ...)
473
#define CRAS_INFO_STREAM_THROTTLE_NAMED(period, name, args)
474
#define CRAS_INFO_DELAYED_THROTTLE(period, ...)
475
#define CRAS_INFO_STREAM_DELAYED_THROTTLE(period, args)
476
#define CRAS_INFO_DELAYED_THROTTLE_NAMED(period, name, ...)
477
#define CRAS_INFO_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)
478
#define CRAS_INFO_FILTER(filter, ...)
479
#define CRAS_INFO_STREAM_FILTER(filter, args)
480
#define CRAS_INFO_FILTER_NAMED(filter, name, ...)
481
#define CRAS_INFO_STREAM_FILTER_NAMED(filter, name, args)
482
#else
483
#define CRAS_LOG_INFO(logger, ...) CRAS_LOG((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
484
#define CRAS_LOG_INFO_STREAM(logger, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
485
#define CRAS_LOG_INFO_NAMED(logger, name, ...) CRAS_LOG((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
486
#define CRAS_LOG_INFO_STREAM_NAMED(logger, name, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
487
#define CRAS_LOG_INFO_COND(logger, cond, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
488
#define CRAS_LOG_INFO_STREAM_COND(logger, cond, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
489
#define CRAS_LOG_INFO_COND_NAMED(logger, cond, name, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
490
#define CRAS_LOG_INFO_STREAM_COND_NAMED(logger, cond, name, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
491
#define CRAS_LOG_INFO_ONCE(logger, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
492
#define CRAS_LOG_INFO_STREAM_ONCE(logger, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
493
#define CRAS_LOG_INFO_ONCE_NAMED(logger, name, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
494
#define CRAS_LOG_INFO_STREAM_ONCE_NAMED(logger, name, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
495
#define CRAS_LOG_INFO_THROTTLE(logger, period, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
496
#define CRAS_LOG_INFO_STREAM_THROTTLE(logger, period, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
497
#define CRAS_LOG_INFO_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
498
#define CRAS_LOG_INFO_STREAM_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
499
#define CRAS_LOG_INFO_DELAYED_THROTTLE(logger, period, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
500
#define CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE(logger, period, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
501
#define CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
502
#define CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
503
#define CRAS_LOG_INFO_FILTER(logger, filter, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
504
#define CRAS_LOG_INFO_STREAM_FILTER(logger, filter, args) CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
505
#define CRAS_LOG_INFO_FILTER_NAMED(logger, filter, name, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
506
#define CRAS_LOG_INFO_STREAM_FILTER_NAMED(logger, filter, name, args) CRAS_LOG_STREAM_FILTER(getCrasLogger(), (filter), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
507
#define CRAS_INFO(...) CRAS_LOG_INFO(getCrasLogger(), __VA_ARGS__)
508
#define CRAS_INFO_STREAM(args) CRAS_LOG_INFO_STREAM(getCrasLogger(), args)
509
#define CRAS_INFO_NAMED(name, ...) CRAS_LOG_INFO_NAMED(getCrasLogger(), (name), __VA_ARGS__)
510
#define CRAS_INFO_STREAM_NAMED(name, args) CRAS_LOG_INFO_STREAM_NAMED(getCrasLogger(), (name), args)
511
#define CRAS_INFO_COND(cond, ...) CRAS_LOG_INFO_COND(getCrasLogger(), (cond), __VA_ARGS__)
512
#define CRAS_INFO_STREAM_COND(cond, args) CRAS_LOG_INFO_STREAM_COND(getCrasLogger(), (cond), args)
513
#define CRAS_INFO_COND_NAMED(cond, name, ...) CRAS_LOG_INFO_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
514
#define CRAS_INFO_STREAM_COND_NAMED(cond, name, args) CRAS_LOG_INFO_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args)
/* NOLINT */
515
#define CRAS_INFO_ONCE(...) CRAS_LOG_INFO_ONCE(getCrasLogger(), __VA_ARGS__)
516
#define CRAS_INFO_STREAM_ONCE(args) CRAS_LOG_INFO_STREAM_ONCE(getCrasLogger(), args)
517
#define CRAS_INFO_ONCE_NAMED(name, ...) CRAS_LOG_INFO_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
518
#define CRAS_INFO_STREAM_ONCE_NAMED(name, args) CRAS_LOG_INFO_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
519
#define CRAS_INFO_THROTTLE(period, ...) CRAS_LOG_INFO_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
520
#define CRAS_INFO_STREAM_THROTTLE(period, args) CRAS_LOG_INFO_STREAM_THROTTLE(getCrasLogger(), (period), args)
521
#define CRAS_INFO_THROTTLE_NAMED(period, name, ...) CRAS_LOG_INFO_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
522
#define CRAS_INFO_STREAM_THROTTLE_NAMED(period, name, args) CRAS_LOG_INFO_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
523
#define CRAS_INFO_DELAYED_THROTTLE(period, ...) CRAS_LOG_INFO_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
524
#define CRAS_INFO_STREAM_DELAYED_THROTTLE(period, args) CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args)
/* NOLINT */
525
#define CRAS_INFO_DELAYED_THROTTLE_NAMED(period, name, ...) CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
526
#define CRAS_INFO_STREAM_DELAYED_THROTTLE_NAMED(period, name, args) CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
527
#define CRAS_INFO_FILTER(filter, ...) CRAS_LOG_INFO_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
528
#define CRAS_INFO_STREAM_FILTER(filter, args) CRAS_LOG_INFO_STREAM_FILTER(getCrasLogger(), (filter), args)
529
#define CRAS_INFO_FILTER_NAMED(filter, name, ...) CRAS_LOG_INFO_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__)
/* NOLINT */
530
#define CRAS_INFO_STREAM_FILTER_NAMED(filter, name, args) CRAS_LOG_INFO_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args)
/* NOLINT */
531
#endif
532
533
#if (ROSCONSOLE_MIN_SEVERITY > ROSCONSOLE_SEVERITY_WARN)
534
#define CRAS_LOG_WARN(logger, ...)
535
#define CRAS_LOG_WARN_STREAM(logger, args)
536
#define CRAS_LOG_WARN_NAMED(logger, name, ...)
537
#define CRAS_LOG_WARN_STREAM_NAMED(logger, name, args)
538
#define CRAS_LOG_WARN_COND(logger, cond, ...)
539
#define CRAS_LOG_WARN_STREAM_COND(logger, cond, args)
540
#define CRAS_LOG_WARN_COND_NAMED(logger, cond, name, ...)
541
#define CRAS_LOG_WARN_STREAM_COND_NAMED(logger, cond, name, args)
542
#define CRAS_LOG_WARN_ONCE(logger, ...)
543
#define CRAS_LOG_WARN_STREAM_ONCE(logger, args)
544
#define CRAS_LOG_WARN_ONCE_NAMED(logger, name, ...)
545
#define CRAS_LOG_WARN_STREAM_ONCE_NAMED(logger, name, args)
546
#define CRAS_LOG_WARN_THROTTLE(logger, period, ...)
547
#define CRAS_LOG_WARN_STREAM_THROTTLE(logger, period, args)
548
#define CRAS_LOG_WARN_THROTTLE_NAMED(logger, period, name, ...)
549
#define CRAS_LOG_WARN_STREAM_THROTTLE_NAMED(logger, period, name, args)
550
#define CRAS_LOG_WARN_DELAYED_THROTTLE(logger, period, ...)
551
#define CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE(logger, period, args)
552
#define CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED(logger, period, name, ...)
553
#define CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args)
554
#define CRAS_LOG_WARN_FILTER(logger, filter, ...)
555
#define CRAS_LOG_WARN_STREAM_FILTER(logger, filter, args)
556
#define CRAS_LOG_WARN_FILTER_NAMED(logger, filter, name, ...)
557
#define CRAS_LOG_WARN_STREAM_FILTER_NAMED(logger, filter, name, args)
558
#define CRAS_WARN(...)
559
#define CRAS_WARN_STREAM(args)
560
#define CRAS_WARN_NAMED(name, ...)
561
#define CRAS_WARN_STREAM_NAMED(name, args)
562
#define CRAS_WARN_COND(cond, ...)
563
#define CRAS_WARN_STREAM_COND(cond, args)
564
#define CRAS_WARN_COND_NAMED(cond, name, ...)
565
#define CRAS_WARN_STREAM_COND_NAMED(cond, name, args)
566
#define CRAS_WARN_ONCE(...)
567
#define CRAS_WARN_STREAM_ONCE(args)
568
#define CRAS_WARN_ONCE_NAMED(name, ...)
569
#define CRAS_WARN_STREAM_ONCE_NAMED(name, args)
570
#define CRAS_WARN_THROTTLE(period, ...)
571
#define CRAS_WARN_STREAM_THROTTLE(period, args)
572
#define CRAS_WARN_THROTTLE_NAMED(period, name, ...)
573
#define CRAS_WARN_STREAM_THROTTLE_NAMED(period, name, args)
574
#define CRAS_WARN_DELAYED_THROTTLE(period, ...)
575
#define CRAS_WARN_STREAM_DELAYED_THROTTLE(period, args)
576
#define CRAS_WARN_DELAYED_THROTTLE_NAMED(period, name, ...)
577
#define CRAS_WARN_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)
578
#define CRAS_WARN_FILTER(filter, ...)
579
#define CRAS_WARN_STREAM_FILTER(filter, args)
580
#define CRAS_WARN_FILTER_NAMED(filter, name, ...)
581
#define CRAS_WARN_STREAM_FILTER_NAMED(filter, name, args)
582
#else
583
#define CRAS_LOG_WARN(logger, ...) CRAS_LOG((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
584
#define CRAS_LOG_WARN_STREAM(logger, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
585
#define CRAS_LOG_WARN_NAMED(logger, name, ...) CRAS_LOG((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
586
#define CRAS_LOG_WARN_STREAM_NAMED(logger, name, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
587
#define CRAS_LOG_WARN_COND(logger, cond, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
588
#define CRAS_LOG_WARN_STREAM_COND(logger, cond, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
589
#define CRAS_LOG_WARN_COND_NAMED(logger, cond, name, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
590
#define CRAS_LOG_WARN_STREAM_COND_NAMED(logger, cond, name, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
591
#define CRAS_LOG_WARN_ONCE(logger, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
592
#define CRAS_LOG_WARN_STREAM_ONCE(logger, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
593
#define CRAS_LOG_WARN_ONCE_NAMED(logger, name, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
594
#define CRAS_LOG_WARN_STREAM_ONCE_NAMED(logger, name, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
595
#define CRAS_LOG_WARN_THROTTLE(logger, period, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
596
#define CRAS_LOG_WARN_STREAM_THROTTLE(logger, period, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
597
#define CRAS_LOG_WARN_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
598
#define CRAS_LOG_WARN_STREAM_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
599
#define CRAS_LOG_WARN_DELAYED_THROTTLE(logger, period, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
600
#define CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE(logger, period, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
601
#define CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
602
#define CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
603
#define CRAS_LOG_WARN_FILTER(logger, filter, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
604
#define CRAS_LOG_WARN_STREAM_FILTER(logger, filter, args) CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
605
#define CRAS_LOG_WARN_FILTER_NAMED(logger, filter, name, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
606
#define CRAS_LOG_WARN_STREAM_FILTER_NAMED(logger, filter, name, args) CRAS_LOG_STREAM_FILTER(getCrasLogger(), (filter), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
607
#define CRAS_WARN(...) CRAS_LOG_WARN(getCrasLogger(), __VA_ARGS__)
608
#define CRAS_WARN_STREAM(args) CRAS_LOG_WARN_STREAM(getCrasLogger(), args)
609
#define CRAS_WARN_NAMED(name, ...) CRAS_LOG_WARN_NAMED(getCrasLogger(), (name), __VA_ARGS__)
610
#define CRAS_WARN_STREAM_NAMED(name, args) CRAS_LOG_WARN_STREAM_NAMED(getCrasLogger(), (name), args)
611
#define CRAS_WARN_COND(cond, ...) CRAS_LOG_WARN_COND(getCrasLogger(), (cond), __VA_ARGS__)
612
#define CRAS_WARN_STREAM_COND(cond, args) CRAS_LOG_WARN_STREAM_COND(getCrasLogger(), (cond), args)
613
#define CRAS_WARN_COND_NAMED(cond, name, ...) CRAS_LOG_WARN_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
614
#define CRAS_WARN_STREAM_COND_NAMED(cond, name, args) CRAS_LOG_WARN_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args)
/* NOLINT */
615
#define CRAS_WARN_ONCE(...) CRAS_LOG_WARN_ONCE(getCrasLogger(), __VA_ARGS__)
616
#define CRAS_WARN_STREAM_ONCE(args) CRAS_LOG_WARN_STREAM_ONCE(getCrasLogger(), args)
617
#define CRAS_WARN_ONCE_NAMED(name, ...) CRAS_LOG_WARN_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
618
#define CRAS_WARN_STREAM_ONCE_NAMED(name, args) CRAS_LOG_WARN_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
619
#define CRAS_WARN_THROTTLE(period, ...) CRAS_LOG_WARN_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
620
#define CRAS_WARN_STREAM_THROTTLE(period, args) CRAS_LOG_WARN_STREAM_THROTTLE(getCrasLogger(), (period), args)
621
#define CRAS_WARN_THROTTLE_NAMED(period, name, ...) CRAS_LOG_WARN_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
622
#define CRAS_WARN_STREAM_THROTTLE_NAMED(period, name, args) CRAS_LOG_WARN_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
623
#define CRAS_WARN_DELAYED_THROTTLE(period, ...) CRAS_LOG_WARN_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
624
#define CRAS_WARN_STREAM_DELAYED_THROTTLE(period, args) CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args)
/* NOLINT */
625
#define CRAS_WARN_DELAYED_THROTTLE_NAMED(period, name, ...) CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
626
#define CRAS_WARN_STREAM_DELAYED_THROTTLE_NAMED(period, name, args) CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
627
#define CRAS_WARN_FILTER(filter, ...) CRAS_LOG_WARN_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
628
#define CRAS_WARN_STREAM_FILTER(filter, args) CRAS_LOG_WARN_STREAM_FILTER(getCrasLogger(), (filter), args)
629
#define CRAS_WARN_FILTER_NAMED(filter, name, ...) CRAS_LOG_WARN_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__)
/* NOLINT */
630
#define CRAS_WARN_STREAM_FILTER_NAMED(filter, name, args) CRAS_LOG_WARN_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args)
/* NOLINT */
631
#endif
632
633
#if (ROSCONSOLE_MIN_SEVERITY > ROSCONSOLE_SEVERITY_ERROR)
634
#define CRAS_LOG_ERROR(logger, ...)
635
#define CRAS_LOG_ERROR_STREAM(logger, args)
636
#define CRAS_LOG_ERROR_NAMED(logger, name, ...)
637
#define CRAS_LOG_ERROR_STREAM_NAMED(logger, name, args)
638
#define CRAS_LOG_ERROR_COND(logger, cond, ...)
639
#define CRAS_LOG_ERROR_STREAM_COND(logger, cond, args)
640
#define CRAS_LOG_ERROR_COND_NAMED(logger, cond, name, ...)
641
#define CRAS_LOG_ERROR_STREAM_COND_NAMED(logger, cond, name, args)
642
#define CRAS_LOG_ERROR_ONCE(logger, ...)
643
#define CRAS_LOG_ERROR_STREAM_ONCE(logger, args)
644
#define CRAS_LOG_ERROR_ONCE_NAMED(logger, name, ...)
645
#define CRAS_LOG_ERROR_STREAM_ONCE_NAMED(logger, name, args)
646
#define CRAS_LOG_ERROR_THROTTLE(logger, period, ...)
647
#define CRAS_LOG_ERROR_STREAM_THROTTLE(logger, period, args)
648
#define CRAS_LOG_ERROR_THROTTLE_NAMED(logger, period, name, ...)
649
#define CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED(logger, period, name, args)
650
#define CRAS_LOG_ERROR_DELAYED_THROTTLE(logger, period, ...)
651
#define CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE(logger, period, args)
652
#define CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED(logger, period, name, ...)
653
#define CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args)
654
#define CRAS_LOG_ERROR_FILTER(logger, filter, ...)
655
#define CRAS_LOG_ERROR_STREAM_FILTER(logger, filter, args)
656
#define CRAS_LOG_ERROR_FILTER_NAMED(logger, filter, name, ...)
657
#define CRAS_LOG_ERROR_STREAM_FILTER_NAMED(logger, filter, name, args)
658
#define CRAS_ERROR(...)
659
#define CRAS_ERROR_STREAM(args)
660
#define CRAS_ERROR_NAMED(name, ...)
661
#define CRAS_ERROR_STREAM_NAMED(name, args)
662
#define CRAS_ERROR_COND(cond, ...)
663
#define CRAS_ERROR_STREAM_COND(cond, args)
664
#define CRAS_ERROR_COND_NAMED(cond, name, ...)
665
#define CRAS_ERROR_STREAM_COND_NAMED(cond, name, args)
666
#define CRAS_ERROR_ONCE(...)
667
#define CRAS_ERROR_STREAM_ONCE(args)
668
#define CRAS_ERROR_ONCE_NAMED(name, ...)
669
#define CRAS_ERROR_STREAM_ONCE_NAMED(name, args)
670
#define CRAS_ERROR_THROTTLE(period, ...)
671
#define CRAS_ERROR_STREAM_THROTTLE(period, args)
672
#define CRAS_ERROR_THROTTLE_NAMED(period, name, ...)
673
#define CRAS_ERROR_STREAM_THROTTLE_NAMED(period, name, args)
674
#define CRAS_ERROR_DELAYED_THROTTLE(period, ...)
675
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE(period, args)
676
#define CRAS_ERROR_DELAYED_THROTTLE_NAMED(period, name, ...)
677
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)
678
#define CRAS_ERROR_FILTER(filter, ...)
679
#define CRAS_ERROR_STREAM_FILTER(filter, args)
680
#define CRAS_ERROR_FILTER_NAMED(filter, name, ...)
681
#define CRAS_ERROR_STREAM_FILTER_NAMED(filter, name, args)
682
#else
683
#define CRAS_LOG_ERROR(logger, ...) CRAS_LOG((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
684
#define CRAS_LOG_ERROR_STREAM(logger, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
685
#define CRAS_LOG_ERROR_NAMED(logger, name, ...) CRAS_LOG((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
686
#define CRAS_LOG_ERROR_STREAM_NAMED(logger, name, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
687
#define CRAS_LOG_ERROR_COND(logger, cond, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
688
#define CRAS_LOG_ERROR_STREAM_COND(logger, cond, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
689
#define CRAS_LOG_ERROR_COND_NAMED(logger, cond, name, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
690
#define CRAS_LOG_ERROR_STREAM_COND_NAMED(logger, cond, name, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
691
#define CRAS_LOG_ERROR_ONCE(logger, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
692
#define CRAS_LOG_ERROR_STREAM_ONCE(logger, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
693
#define CRAS_LOG_ERROR_ONCE_NAMED(logger, name, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
694
#define CRAS_LOG_ERROR_STREAM_ONCE_NAMED(logger, name, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
695
#define CRAS_LOG_ERROR_THROTTLE(logger, period, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
696
#define CRAS_LOG_ERROR_STREAM_THROTTLE(logger, period, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
697
#define CRAS_LOG_ERROR_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
698
#define CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
699
#define CRAS_LOG_ERROR_DELAYED_THROTTLE(logger, period, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
700
#define CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE(logger, period, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
701
#define CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
702
#define CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
703
#define CRAS_LOG_ERROR_FILTER(logger, filter, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
704
#define CRAS_LOG_ERROR_STREAM_FILTER(logger, filter, args) CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
705
#define CRAS_LOG_ERROR_FILTER_NAMED(logger, filter, name, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
706
#define CRAS_LOG_ERROR_STREAM_FILTER_NAMED(logger, filter, name, args) CRAS_LOG_STREAM_FILTER(getCrasLogger(), (filter), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
707
#define CRAS_ERROR(...) CRAS_LOG_ERROR(getCrasLogger(), __VA_ARGS__)
708
#define CRAS_ERROR_STREAM(args) CRAS_LOG_ERROR_STREAM(getCrasLogger(), args)
709
#define CRAS_ERROR_NAMED(name, ...) CRAS_LOG_ERROR_NAMED(getCrasLogger(), (name), __VA_ARGS__)
710
#define CRAS_ERROR_STREAM_NAMED(name, args) CRAS_LOG_ERROR_STREAM_NAMED(getCrasLogger(), (name), args)
711
#define CRAS_ERROR_COND(cond, ...) CRAS_LOG_ERROR_COND(getCrasLogger(), (cond), __VA_ARGS__)
712
#define CRAS_ERROR_STREAM_COND(cond, args) CRAS_LOG_ERROR_STREAM_COND(getCrasLogger(), (cond), args)
713
#define CRAS_ERROR_COND_NAMED(cond, name, ...) CRAS_LOG_ERROR_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
714
#define CRAS_ERROR_STREAM_COND_NAMED(cond, name, args) CRAS_LOG_ERROR_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args)
/* NOLINT */
715
#define CRAS_ERROR_ONCE(...) CRAS_LOG_ERROR_ONCE(getCrasLogger(), __VA_ARGS__)
716
#define CRAS_ERROR_STREAM_ONCE(args) CRAS_LOG_ERROR_STREAM_ONCE(getCrasLogger(), args)
717
#define CRAS_ERROR_ONCE_NAMED(name, ...) CRAS_LOG_ERROR_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
718
#define CRAS_ERROR_STREAM_ONCE_NAMED(name, args) CRAS_LOG_ERROR_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
719
#define CRAS_ERROR_THROTTLE(period, ...) CRAS_LOG_ERROR_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
720
#define CRAS_ERROR_STREAM_THROTTLE(period, args) CRAS_LOG_ERROR_STREAM_THROTTLE(getCrasLogger(), (period), args)
721
#define CRAS_ERROR_THROTTLE_NAMED(period, name, ...) CRAS_LOG_ERROR_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
722
#define CRAS_ERROR_STREAM_THROTTLE_NAMED(period, name, args) CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
723
#define CRAS_ERROR_DELAYED_THROTTLE(period, ...) CRAS_LOG_ERROR_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
724
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE(period, args) CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args)
/* NOLINT */
725
#define CRAS_ERROR_DELAYED_THROTTLE_NAMED(period, name, ...) CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
726
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE_NAMED(period, name, args) CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
727
#define CRAS_ERROR_FILTER(filter, ...) CRAS_LOG_ERROR_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
728
#define CRAS_ERROR_STREAM_FILTER(filter, args) CRAS_LOG_ERROR_STREAM_FILTER(getCrasLogger(), (filter), args)
729
#define CRAS_ERROR_FILTER_NAMED(filter, name, ...) CRAS_LOG_ERROR_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__)
/* NOLINT */
730
#define CRAS_ERROR_STREAM_FILTER_NAMED(filter, name, args) CRAS_LOG_ERROR_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args)
/* NOLINT */
731
#endif
732
733
#if (ROSCONSOLE_MIN_SEVERITY > ROSCONSOLE_SEVERITY_FATAL)
734
#define CRAS_LOG_FATAL(logger, ...)
735
#define CRAS_LOG_FATAL_STREAM(logger, args)
736
#define CRAS_LOG_FATAL_NAMED(logger, name, ...)
737
#define CRAS_LOG_FATAL_STREAM_NAMED(logger, name, args)
738
#define CRAS_LOG_FATAL_COND(logger, cond, ...)
739
#define CRAS_LOG_FATAL_STREAM_COND(logger, cond, args)
740
#define CRAS_LOG_FATAL_COND_NAMED(logger, cond, name, ...)
741
#define CRAS_LOG_FATAL_STREAM_COND_NAMED(logger, cond, name, args)
742
#define CRAS_LOG_FATAL_ONCE(logger, ...)
743
#define CRAS_LOG_FATAL_STREAM_ONCE(logger, args)
744
#define CRAS_LOG_FATAL_ONCE_NAMED(logger, name, ...)
745
#define CRAS_LOG_FATAL_STREAM_ONCE_NAMED(logger, name, args)
746
#define CRAS_LOG_FATAL_THROTTLE(logger, period, ...)
747
#define CRAS_LOG_FATAL_STREAM_THROTTLE(logger, period, args)
748
#define CRAS_LOG_FATAL_THROTTLE_NAMED(logger, period, name, ...)
749
#define CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED(logger, period, name, args)
750
#define CRAS_LOG_FATAL_DELAYED_THROTTLE(logger, period, ...)
751
#define CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE(logger, period, args)
752
#define CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED(logger, period, name, ...)
753
#define CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args)
754
#define CRAS_LOG_FATAL_FILTER(logger, filter, ...)
755
#define CRAS_LOG_FATAL_STREAM_FILTER(logger, filter, args)
756
#define CRAS_LOG_FATAL_FILTER_NAMED(logger, filter, name, ...)
757
#define CRAS_LOG_FATAL_STREAM_FILTER_NAMED(logger, filter, name, args)
758
#define CRAS_FATAL(...)
759
#define CRAS_FATAL_STREAM(args)
760
#define CRAS_FATAL_NAMED(name, ...)
761
#define CRAS_FATAL_STREAM_NAMED(name, args)
762
#define CRAS_FATAL_COND(cond, ...)
763
#define CRAS_FATAL_STREAM_COND(cond, args)
764
#define CRAS_FATAL_COND_NAMED(cond, name, ...)
765
#define CRAS_FATAL_STREAM_COND_NAMED(cond, name, args)
766
#define CRAS_FATAL_ONCE(...)
767
#define CRAS_FATAL_STREAM_ONCE(args)
768
#define CRAS_FATAL_ONCE_NAMED(name, ...)
769
#define CRAS_FATAL_STREAM_ONCE_NAMED(name, args)
770
#define CRAS_FATAL_THROTTLE(period, ...)
771
#define CRAS_FATAL_STREAM_THROTTLE(period, args)
772
#define CRAS_FATAL_THROTTLE_NAMED(period, name, ...)
773
#define CRAS_FATAL_STREAM_THROTTLE_NAMED(period, name, args)
774
#define CRAS_FATAL_DELAYED_THROTTLE(period, ...)
775
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE(period, args)
776
#define CRAS_FATAL_DELAYED_THROTTLE_NAMED(period, name, ...)
777
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)
778
#define CRAS_FATAL_FILTER(filter, ...)
779
#define CRAS_FATAL_STREAM_FILTER(filter, args)
780
#define CRAS_FATAL_FILTER_NAMED(filter, name, ...)
781
#define CRAS_FATAL_STREAM_FILTER_NAMED(filter, name, args)
782
#else
783
#define CRAS_LOG_FATAL(logger, ...) CRAS_LOG((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
784
#define CRAS_LOG_FATAL_STREAM(logger, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
785
#define CRAS_LOG_FATAL_NAMED(logger, name, ...) CRAS_LOG((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
786
#define CRAS_LOG_FATAL_STREAM_NAMED(logger, name, args) CRAS_LOG_STREAM((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
787
#define CRAS_LOG_FATAL_COND(logger, cond, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
788
#define CRAS_LOG_FATAL_STREAM_COND(logger, cond, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
789
#define CRAS_LOG_FATAL_COND_NAMED(logger, cond, name, ...) CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
790
#define CRAS_LOG_FATAL_STREAM_COND_NAMED(logger, cond, name, args) CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
791
#define CRAS_LOG_FATAL_ONCE(logger, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
792
#define CRAS_LOG_FATAL_STREAM_ONCE(logger, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
793
#define CRAS_LOG_FATAL_ONCE_NAMED(logger, name, ...) CRAS_LOG_ONCE((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
794
#define CRAS_LOG_FATAL_STREAM_ONCE_NAMED(logger, name, args) CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
795
#define CRAS_LOG_FATAL_THROTTLE(logger, period, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
796
#define CRAS_LOG_FATAL_STREAM_THROTTLE(logger, period, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
797
#define CRAS_LOG_FATAL_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
798
#define CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
799
#define CRAS_LOG_FATAL_DELAYED_THROTTLE(logger, period, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
800
#define CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE(logger, period, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
801
#define CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED(logger, period, name, ...) CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
802
#define CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED(logger, period, name, args) CRAS_LOG_STREAM_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
803
#define CRAS_LOG_FATAL_FILTER(logger, filter, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
/* NOLINT */
804
#define CRAS_LOG_FATAL_STREAM_FILTER(logger, filter, args) CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args)
/* NOLINT */
805
#define CRAS_LOG_FATAL_FILTER_NAMED(logger, filter, name, ...) CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__)
/* NOLINT */
806
#define CRAS_LOG_FATAL_STREAM_FILTER_NAMED(logger, filter, name, args) CRAS_LOG_STREAM_FILTER(getCrasLogger(), (filter), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), args)
/* NOLINT */
807
#define CRAS_FATAL(...) CRAS_LOG_FATAL(getCrasLogger(), __VA_ARGS__)
808
#define CRAS_FATAL_STREAM(args) CRAS_LOG_FATAL_STREAM(getCrasLogger(), args)
809
#define CRAS_FATAL_NAMED(name, ...) CRAS_LOG_FATAL_NAMED(getCrasLogger(), (name), __VA_ARGS__)
810
#define CRAS_FATAL_STREAM_NAMED(name, args) CRAS_LOG_FATAL_STREAM_NAMED(getCrasLogger(), (name), args)
811
#define CRAS_FATAL_COND(cond, ...) CRAS_LOG_FATAL_COND(getCrasLogger(), (cond), __VA_ARGS__)
812
#define CRAS_FATAL_STREAM_COND(cond, args) CRAS_LOG_FATAL_STREAM_COND(getCrasLogger(), (cond), args)
813
#define CRAS_FATAL_COND_NAMED(cond, name, ...) CRAS_LOG_FATAL_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
814
#define CRAS_FATAL_STREAM_COND_NAMED(cond, name, args) CRAS_LOG_FATAL_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args)
/* NOLINT */
815
#define CRAS_FATAL_ONCE(...) CRAS_LOG_FATAL_ONCE(getCrasLogger(), __VA_ARGS__)
816
#define CRAS_FATAL_STREAM_ONCE(args) CRAS_LOG_FATAL_STREAM_ONCE(getCrasLogger(), args)
817
#define CRAS_FATAL_ONCE_NAMED(name, ...) CRAS_LOG_FATAL_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
818
#define CRAS_FATAL_STREAM_ONCE_NAMED(name, args) CRAS_LOG_FATAL_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
819
#define CRAS_FATAL_THROTTLE(period, ...) CRAS_LOG_FATAL_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
820
#define CRAS_FATAL_STREAM_THROTTLE(period, args) CRAS_LOG_FATAL_STREAM_THROTTLE(getCrasLogger(), (period), args)
821
#define CRAS_FATAL_THROTTLE_NAMED(period, name, ...) CRAS_LOG_FATAL_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
822
#define CRAS_FATAL_STREAM_THROTTLE_NAMED(period, name, args) CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
823
#define CRAS_FATAL_DELAYED_THROTTLE(period, ...) CRAS_LOG_FATAL_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
824
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE(period, args) CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args)
/* NOLINT */
825
#define CRAS_FATAL_DELAYED_THROTTLE_NAMED(period, name, ...) CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__)
/* NOLINT */
826
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE_NAMED(period, name, args) CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args)
/* NOLINT */
827
#define CRAS_FATAL_FILTER(filter, ...) CRAS_LOG_FATAL_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
828
#define CRAS_FATAL_STREAM_FILTER(filter, args) CRAS_LOG_FATAL_STREAM_FILTER(getCrasLogger(), (filter), args)
829
#define CRAS_FATAL_FILTER_NAMED(filter, name, ...) CRAS_LOG_FATAL_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__)
/* NOLINT */
830
#define CRAS_FATAL_STREAM_FILTER_NAMED(filter, name, args) CRAS_LOG_FATAL_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args)
/* NOLINT */
831
#endif
small_map.hpp
Simple map implemented on top of a std::list<std::pair>. The map is append-only, with lock-free reads...
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Dec 14 2024 03:51:04