Macros
macros.h File Reference

ROS logging helpers macros. Do not include this file directly. Include log_utils.h instead. These logging macros are almost a copy of those from rosconsole/macros_generated.h and ros/console.h, but modified so that the underlying logger implementation can be dynamically changed, and also an alternative time source can be provided for the THROTTLE macros. To get the logger, these macros call getCrasLogger() method. If nothing special is done, the compiler will pick up the getCrasLogger() global function returning a globally usable logger that mimicks the ROS_* logging macros. If you want a different logger to be used, just call the macros in an environment where a more specific function named getCrasLogger() is defined - it can be a class method or a locally defined lambda. More...

#include <algorithm>
#include <unordered_map>
#include <vector>
#include <cras_cpp_common/small_map.hpp>
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRAS_DEBUG(...)   CRAS_LOG_DEBUG(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_DEBUG_COND(cond, ...)   CRAS_LOG_DEBUG_COND(getCrasLogger(), (cond), __VA_ARGS__)
 
#define CRAS_DEBUG_COND_NAMED(cond, name, ...)   CRAS_LOG_DEBUG_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
 
#define CRAS_DEBUG_DELAYED_THROTTLE(period, ...)   CRAS_LOG_DEBUG_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_DEBUG_DELAYED_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_DEBUG_FILTER(filter, ...)   CRAS_LOG_DEBUG_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
 
#define CRAS_DEBUG_FILTER_NAMED(filter, name, ...)   CRAS_LOG_DEBUG_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_DEBUG_NAMED(name, ...)   CRAS_LOG_DEBUG_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_DEBUG_ONCE(...)   CRAS_LOG_DEBUG_ONCE(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_DEBUG_ONCE_NAMED(name, ...)   CRAS_LOG_DEBUG_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_DEBUG_STREAM(args)   CRAS_LOG_DEBUG_STREAM(getCrasLogger(), args)
 
#define CRAS_DEBUG_STREAM_COND(cond, args)   CRAS_LOG_DEBUG_STREAM_COND(getCrasLogger(), (cond), args)
 
#define CRAS_DEBUG_STREAM_COND_NAMED(cond, name, args)   CRAS_LOG_DEBUG_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */
 
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE(period, args)   CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */
 
#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)   CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_DEBUG_STREAM_FILTER(filter, args)   CRAS_LOG_DEBUG_STREAM_FILTER(getCrasLogger(), (filter), args)
 
#define CRAS_DEBUG_STREAM_FILTER_NAMED(filter, name, args)   CRAS_LOG_DEBUG_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */
 
#define CRAS_DEBUG_STREAM_NAMED(name, args)   CRAS_LOG_DEBUG_STREAM_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_DEBUG_STREAM_ONCE(args)   CRAS_LOG_DEBUG_STREAM_ONCE(getCrasLogger(), args)
 
#define CRAS_DEBUG_STREAM_ONCE_NAMED(name, args)   CRAS_LOG_DEBUG_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_DEBUG_STREAM_THROTTLE(period, args)   CRAS_LOG_DEBUG_STREAM_THROTTLE(getCrasLogger(), (period), args)
 
#define CRAS_DEBUG_STREAM_THROTTLE_NAMED(period, name, args)   CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_DEBUG_THROTTLE(period, ...)   CRAS_LOG_DEBUG_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_DEBUG_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_DEBUG_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_ERROR(...)   CRAS_LOG_ERROR(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_ERROR_COND(cond, ...)   CRAS_LOG_ERROR_COND(getCrasLogger(), (cond), __VA_ARGS__)
 
#define CRAS_ERROR_COND_NAMED(cond, name, ...)   CRAS_LOG_ERROR_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
 
#define CRAS_ERROR_DELAYED_THROTTLE(period, ...)   CRAS_LOG_ERROR_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_ERROR_DELAYED_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_ERROR_FILTER(filter, ...)   CRAS_LOG_ERROR_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
 
#define CRAS_ERROR_FILTER_NAMED(filter, name, ...)   CRAS_LOG_ERROR_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_ERROR_NAMED(name, ...)   CRAS_LOG_ERROR_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_ERROR_ONCE(...)   CRAS_LOG_ERROR_ONCE(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_ERROR_ONCE_NAMED(name, ...)   CRAS_LOG_ERROR_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_ERROR_STREAM(args)   CRAS_LOG_ERROR_STREAM(getCrasLogger(), args)
 
#define CRAS_ERROR_STREAM_COND(cond, args)   CRAS_LOG_ERROR_STREAM_COND(getCrasLogger(), (cond), args)
 
#define CRAS_ERROR_STREAM_COND_NAMED(cond, name, args)   CRAS_LOG_ERROR_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */
 
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE(period, args)   CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */
 
#define CRAS_ERROR_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)   CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_ERROR_STREAM_FILTER(filter, args)   CRAS_LOG_ERROR_STREAM_FILTER(getCrasLogger(), (filter), args)
 
#define CRAS_ERROR_STREAM_FILTER_NAMED(filter, name, args)   CRAS_LOG_ERROR_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */
 
#define CRAS_ERROR_STREAM_NAMED(name, args)   CRAS_LOG_ERROR_STREAM_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_ERROR_STREAM_ONCE(args)   CRAS_LOG_ERROR_STREAM_ONCE(getCrasLogger(), args)
 
#define CRAS_ERROR_STREAM_ONCE_NAMED(name, args)   CRAS_LOG_ERROR_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_ERROR_STREAM_THROTTLE(period, args)   CRAS_LOG_ERROR_STREAM_THROTTLE(getCrasLogger(), (period), args)
 
#define CRAS_ERROR_STREAM_THROTTLE_NAMED(period, name, args)   CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_ERROR_THROTTLE(period, ...)   CRAS_LOG_ERROR_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_ERROR_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_ERROR_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_FATAL(...)   CRAS_LOG_FATAL(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_FATAL_COND(cond, ...)   CRAS_LOG_FATAL_COND(getCrasLogger(), (cond), __VA_ARGS__)
 
#define CRAS_FATAL_COND_NAMED(cond, name, ...)   CRAS_LOG_FATAL_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
 
#define CRAS_FATAL_DELAYED_THROTTLE(period, ...)   CRAS_LOG_FATAL_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_FATAL_DELAYED_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_FATAL_FILTER(filter, ...)   CRAS_LOG_FATAL_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
 
#define CRAS_FATAL_FILTER_NAMED(filter, name, ...)   CRAS_LOG_FATAL_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_FATAL_NAMED(name, ...)   CRAS_LOG_FATAL_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_FATAL_ONCE(...)   CRAS_LOG_FATAL_ONCE(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_FATAL_ONCE_NAMED(name, ...)   CRAS_LOG_FATAL_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_FATAL_STREAM(args)   CRAS_LOG_FATAL_STREAM(getCrasLogger(), args)
 
#define CRAS_FATAL_STREAM_COND(cond, args)   CRAS_LOG_FATAL_STREAM_COND(getCrasLogger(), (cond), args)
 
#define CRAS_FATAL_STREAM_COND_NAMED(cond, name, args)   CRAS_LOG_FATAL_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */
 
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE(period, args)   CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */
 
#define CRAS_FATAL_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)   CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_FATAL_STREAM_FILTER(filter, args)   CRAS_LOG_FATAL_STREAM_FILTER(getCrasLogger(), (filter), args)
 
#define CRAS_FATAL_STREAM_FILTER_NAMED(filter, name, args)   CRAS_LOG_FATAL_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */
 
#define CRAS_FATAL_STREAM_NAMED(name, args)   CRAS_LOG_FATAL_STREAM_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_FATAL_STREAM_ONCE(args)   CRAS_LOG_FATAL_STREAM_ONCE(getCrasLogger(), args)
 
#define CRAS_FATAL_STREAM_ONCE_NAMED(name, args)   CRAS_LOG_FATAL_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_FATAL_STREAM_THROTTLE(period, args)   CRAS_LOG_FATAL_STREAM_THROTTLE(getCrasLogger(), (period), args)
 
#define CRAS_FATAL_STREAM_THROTTLE_NAMED(period, name, args)   CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_FATAL_THROTTLE(period, ...)   CRAS_LOG_FATAL_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_FATAL_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_FATAL_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_INFO(...)   CRAS_LOG_INFO(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_INFO_COND(cond, ...)   CRAS_LOG_INFO_COND(getCrasLogger(), (cond), __VA_ARGS__)
 
#define CRAS_INFO_COND_NAMED(cond, name, ...)   CRAS_LOG_INFO_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
 
#define CRAS_INFO_DELAYED_THROTTLE(period, ...)   CRAS_LOG_INFO_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_INFO_DELAYED_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_INFO_FILTER(filter, ...)   CRAS_LOG_INFO_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
 
#define CRAS_INFO_FILTER_NAMED(filter, name, ...)   CRAS_LOG_INFO_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_INFO_NAMED(name, ...)   CRAS_LOG_INFO_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_INFO_ONCE(...)   CRAS_LOG_INFO_ONCE(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_INFO_ONCE_NAMED(name, ...)   CRAS_LOG_INFO_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_INFO_STREAM(args)   CRAS_LOG_INFO_STREAM(getCrasLogger(), args)
 
#define CRAS_INFO_STREAM_COND(cond, args)   CRAS_LOG_INFO_STREAM_COND(getCrasLogger(), (cond), args)
 
#define CRAS_INFO_STREAM_COND_NAMED(cond, name, args)   CRAS_LOG_INFO_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */
 
#define CRAS_INFO_STREAM_DELAYED_THROTTLE(period, args)   CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */
 
#define CRAS_INFO_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)   CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_INFO_STREAM_FILTER(filter, args)   CRAS_LOG_INFO_STREAM_FILTER(getCrasLogger(), (filter), args)
 
#define CRAS_INFO_STREAM_FILTER_NAMED(filter, name, args)   CRAS_LOG_INFO_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */
 
#define CRAS_INFO_STREAM_NAMED(name, args)   CRAS_LOG_INFO_STREAM_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_INFO_STREAM_ONCE(args)   CRAS_LOG_INFO_STREAM_ONCE(getCrasLogger(), args)
 
#define CRAS_INFO_STREAM_ONCE_NAMED(name, args)   CRAS_LOG_INFO_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_INFO_STREAM_THROTTLE(period, args)   CRAS_LOG_INFO_STREAM_THROTTLE(getCrasLogger(), (period), args)
 
#define CRAS_INFO_STREAM_THROTTLE_NAMED(period, name, args)   CRAS_LOG_INFO_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_INFO_THROTTLE(period, ...)   CRAS_LOG_INFO_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_INFO_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_INFO_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG(logger, level, name, ...)   CRAS_LOG_COND((logger), true, (level), (name), __VA_ARGS__)
 Log to a given named logger at a given verbosity level, with printf-style formatting. More...
 
#define CRAS_LOG_COND(logger, cond, level, name, ...)
 Log to a given named logger at a given verbosity level, only if a given condition has been met, with printf-style formatting. More...
 
#define CRAS_LOG_DEBUG(logger, ...)   CRAS_LOG((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_DEBUG_COND(logger, cond, ...)   CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_DELAYED_THROTTLE(logger, period, ...)   CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_FILTER(logger, filter, ...)   CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_NAMED(logger, name, ...)   CRAS_LOG((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_DEBUG_ONCE(logger, ...)   CRAS_LOG_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_STREAM(logger, args)   CRAS_LOG_STREAM((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#define CRAS_LOG_DEBUG_STREAM_COND(logger, cond, args)   CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#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 */
 
#define CRAS_LOG_DEBUG_STREAM_FILTER(logger, filter, args)   CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#define CRAS_LOG_DEBUG_STREAM_ONCE(logger, args)   CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_STREAM_THROTTLE(logger, period, args)   CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DEBUG_THROTTLE(logger, period, ...)   CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_DELAYED_THROTTLE(logger, period, level, name, ...)
 Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting. More...
 
#define CRAS_LOG_ERROR(logger, ...)   CRAS_LOG((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_ERROR_COND(logger, cond, ...)   CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_DELAYED_THROTTLE(logger, period, ...)   CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_FILTER(logger, filter, ...)   CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_NAMED(logger, name, ...)   CRAS_LOG((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_ERROR_ONCE(logger, ...)   CRAS_LOG_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_STREAM(logger, args)   CRAS_LOG_STREAM((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#define CRAS_LOG_ERROR_STREAM_COND(logger, cond, args)   CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#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 */
 
#define CRAS_LOG_ERROR_STREAM_FILTER(logger, filter, args)   CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#define CRAS_LOG_ERROR_STREAM_ONCE(logger, args)   CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_STREAM_THROTTLE(logger, period, args)   CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ERROR_THROTTLE(logger, period, ...)   CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL(logger, ...)   CRAS_LOG((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_FATAL_COND(logger, cond, ...)   CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_DELAYED_THROTTLE(logger, period, ...)   CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_FILTER(logger, filter, ...)   CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_NAMED(logger, name, ...)   CRAS_LOG((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_FATAL_ONCE(logger, ...)   CRAS_LOG_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_STREAM(logger, args)   CRAS_LOG_STREAM((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#define CRAS_LOG_FATAL_STREAM_COND(logger, cond, args)   CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#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 */
 
#define CRAS_LOG_FATAL_STREAM_FILTER(logger, filter, args)   CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#define CRAS_LOG_FATAL_STREAM_ONCE(logger, args)   CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_STREAM_THROTTLE(logger, period, args)   CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FATAL_THROTTLE(logger, period, ...)   CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_FILTER(logger, filter, level, name, ...)
 Log to a given named logger at a given verbosity level, with user-defined filtering, with printf-style formatting. More...
 
#define CRAS_LOG_INFO(logger, ...)   CRAS_LOG((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_INFO_COND(logger, cond, ...)   CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_DELAYED_THROTTLE(logger, period, ...)   CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_FILTER(logger, filter, ...)   CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_NAMED(logger, name, ...)   CRAS_LOG((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_INFO_ONCE(logger, ...)   CRAS_LOG_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_STREAM(logger, args)   CRAS_LOG_STREAM((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#define CRAS_LOG_INFO_STREAM_COND(logger, cond, args)   CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#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 */
 
#define CRAS_LOG_INFO_STREAM_FILTER(logger, filter, args)   CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#define CRAS_LOG_INFO_STREAM_ONCE(logger, args)   CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_STREAM_THROTTLE(logger, period, args)   CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_INFO_THROTTLE(logger, period, ...)   CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_ONCE(logger, level, name, ...)
 Log to a given named logger at a given verbosity level, only the first time it is hit when enabled, with printf-style formatting. More...
 
#define CRAS_LOG_STREAM(logger, level, name, args)   CRAS_LOG_STREAM_COND((logger), true, (level), (name), args)
 Log to a given named logger at a given verbosity level, with stream-style formatting. More...
 
#define CRAS_LOG_STREAM_COND(logger, cond, level, name, args)
 Log to a given named logger at a given verbosity level, only if a given condition has been met, with stream-style formatting. More...
 
#define CRAS_LOG_STREAM_DELAYED_THROTTLE(logger, period, level, name, args)
 Log to a given named logger at a given verbosity level, limited to a specific rate of printing and postponed first message. More...
 
#define CRAS_LOG_STREAM_FILTER(logger, filter, level, name, args)
 Log to a given named logger at a given verbosity level, with user-defined filtering, with stream-style formatting. More...
 
#define CRAS_LOG_STREAM_ONCE(logger, level, name, args)
 Log to a given named logger at a given verbosity level, only the first time it is hit when enabled, with printf-style formatting. More...
 
#define CRAS_LOG_STREAM_THROTTLE(logger, period, level, name, args)
 Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting. More...
 
#define CRAS_LOG_THROTTLE(logger, period, level, name, ...)
 Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting. More...
 
#define CRAS_LOG_WARN(logger, ...)   CRAS_LOG((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_WARN_COND(logger, cond, ...)   CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_DELAYED_THROTTLE(logger, period, ...)   CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_FILTER(logger, filter, ...)   CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_NAMED(logger, name, ...)   CRAS_LOG((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_LOG_WARN_ONCE(logger, ...)   CRAS_LOG_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_STREAM(logger, args)   CRAS_LOG_STREAM((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#define CRAS_LOG_WARN_STREAM_COND(logger, cond, args)   CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#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 */
 
#define CRAS_LOG_WARN_STREAM_FILTER(logger, filter, args)   CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#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 */
 
#define CRAS_LOG_WARN_STREAM_ONCE(logger, args)   CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_STREAM_THROTTLE(logger, period, args)   CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */
 
#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 */
 
#define CRAS_LOG_WARN_THROTTLE(logger, period, ...)   CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */
 
#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 */
 
#define CRAS_WARN(...)   CRAS_LOG_WARN(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_WARN_COND(cond, ...)   CRAS_LOG_WARN_COND(getCrasLogger(), (cond), __VA_ARGS__)
 
#define CRAS_WARN_COND_NAMED(cond, name, ...)   CRAS_LOG_WARN_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)
 
#define CRAS_WARN_DELAYED_THROTTLE(period, ...)   CRAS_LOG_WARN_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_WARN_DELAYED_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_WARN_FILTER(filter, ...)   CRAS_LOG_WARN_FILTER(getCrasLogger(), (filter), __VA_ARGS__)
 
#define CRAS_WARN_FILTER_NAMED(filter, name, ...)   CRAS_LOG_WARN_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */
 
#define CRAS_WARN_NAMED(name, ...)   CRAS_LOG_WARN_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_WARN_ONCE(...)   CRAS_LOG_WARN_ONCE(getCrasLogger(), __VA_ARGS__)
 
#define CRAS_WARN_ONCE_NAMED(name, ...)   CRAS_LOG_WARN_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)
 
#define CRAS_WARN_STREAM(args)   CRAS_LOG_WARN_STREAM(getCrasLogger(), args)
 
#define CRAS_WARN_STREAM_COND(cond, args)   CRAS_LOG_WARN_STREAM_COND(getCrasLogger(), (cond), args)
 
#define CRAS_WARN_STREAM_COND_NAMED(cond, name, args)   CRAS_LOG_WARN_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */
 
#define CRAS_WARN_STREAM_DELAYED_THROTTLE(period, args)   CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */
 
#define CRAS_WARN_STREAM_DELAYED_THROTTLE_NAMED(period, name, args)   CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_WARN_STREAM_FILTER(filter, args)   CRAS_LOG_WARN_STREAM_FILTER(getCrasLogger(), (filter), args)
 
#define CRAS_WARN_STREAM_FILTER_NAMED(filter, name, args)   CRAS_LOG_WARN_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */
 
#define CRAS_WARN_STREAM_NAMED(name, args)   CRAS_LOG_WARN_STREAM_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_WARN_STREAM_ONCE(args)   CRAS_LOG_WARN_STREAM_ONCE(getCrasLogger(), args)
 
#define CRAS_WARN_STREAM_ONCE_NAMED(name, args)   CRAS_LOG_WARN_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)
 
#define CRAS_WARN_STREAM_THROTTLE(period, args)   CRAS_LOG_WARN_STREAM_THROTTLE(getCrasLogger(), (period), args)
 
#define CRAS_WARN_STREAM_THROTTLE_NAMED(period, name, args)   CRAS_LOG_WARN_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */
 
#define CRAS_WARN_THROTTLE(period, ...)   CRAS_LOG_WARN_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)
 
#define CRAS_WARN_THROTTLE_NAMED(period, name, ...)   CRAS_LOG_WARN_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */
 
#define CRASCONSOLE_AUTOINIT(logger)
 Initializes the logging library. Usually unnecessary to call directly. More...
 
#define CRASCONSOLE_DEFINE_LOCATION(logger, cond, level, name)
 
#define CRASCONSOLE_PRINT_AT_LOCATION(logger, ...)   CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER((logger), NULL, __VA_ARGS__)
 
#define CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(logger, filter, ...)
 
#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION(logger, args)   CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER((logger), NULL, args)
 
#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(logger, filter, args)
 

Detailed Description

ROS logging helpers macros. Do not include this file directly. Include log_utils.h instead. These logging macros are almost a copy of those from rosconsole/macros_generated.h and ros/console.h, but modified so that the underlying logger implementation can be dynamically changed, and also an alternative time source can be provided for the THROTTLE macros. To get the logger, these macros call getCrasLogger() method. If nothing special is done, the compiler will pick up the getCrasLogger() global function returning a globally usable logger that mimicks the ROS_* logging macros. If you want a different logger to be used, just call the macros in an environment where a more specific function named getCrasLogger() is defined - it can be a class method or a locally defined lambda.

Author
Martin Pecka SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: Czech Technical University in Prague

Definition in file macros.h.

Macro Definition Documentation

◆ CRAS_DEBUG

#define CRAS_DEBUG (   ...)    CRAS_LOG_DEBUG(getCrasLogger(), __VA_ARGS__)

Definition at line 407 of file macros.h.

◆ CRAS_DEBUG_COND

#define CRAS_DEBUG_COND (   cond,
  ... 
)    CRAS_LOG_DEBUG_COND(getCrasLogger(), (cond), __VA_ARGS__)

Definition at line 411 of file macros.h.

◆ CRAS_DEBUG_COND_NAMED

#define CRAS_DEBUG_COND_NAMED (   cond,
  name,
  ... 
)    CRAS_LOG_DEBUG_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)

Definition at line 413 of file macros.h.

◆ CRAS_DEBUG_DELAYED_THROTTLE

#define CRAS_DEBUG_DELAYED_THROTTLE (   period,
  ... 
)    CRAS_LOG_DEBUG_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 423 of file macros.h.

◆ CRAS_DEBUG_DELAYED_THROTTLE_NAMED

#define CRAS_DEBUG_DELAYED_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 425 of file macros.h.

◆ CRAS_DEBUG_FILTER

#define CRAS_DEBUG_FILTER (   filter,
  ... 
)    CRAS_LOG_DEBUG_FILTER(getCrasLogger(), (filter), __VA_ARGS__)

Definition at line 427 of file macros.h.

◆ CRAS_DEBUG_FILTER_NAMED

#define CRAS_DEBUG_FILTER_NAMED (   filter,
  name,
  ... 
)    CRAS_LOG_DEBUG_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */

Definition at line 429 of file macros.h.

◆ CRAS_DEBUG_NAMED

#define CRAS_DEBUG_NAMED (   name,
  ... 
)    CRAS_LOG_DEBUG_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 409 of file macros.h.

◆ CRAS_DEBUG_ONCE

#define CRAS_DEBUG_ONCE (   ...)    CRAS_LOG_DEBUG_ONCE(getCrasLogger(), __VA_ARGS__)

Definition at line 415 of file macros.h.

◆ CRAS_DEBUG_ONCE_NAMED

#define CRAS_DEBUG_ONCE_NAMED (   name,
  ... 
)    CRAS_LOG_DEBUG_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 417 of file macros.h.

◆ CRAS_DEBUG_STREAM

#define CRAS_DEBUG_STREAM (   args)    CRAS_LOG_DEBUG_STREAM(getCrasLogger(), args)

Definition at line 408 of file macros.h.

◆ CRAS_DEBUG_STREAM_COND

#define CRAS_DEBUG_STREAM_COND (   cond,
  args 
)    CRAS_LOG_DEBUG_STREAM_COND(getCrasLogger(), (cond), args)

Definition at line 412 of file macros.h.

◆ CRAS_DEBUG_STREAM_COND_NAMED

#define CRAS_DEBUG_STREAM_COND_NAMED (   cond,
  name,
  args 
)    CRAS_LOG_DEBUG_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */

Definition at line 414 of file macros.h.

◆ CRAS_DEBUG_STREAM_DELAYED_THROTTLE

#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE (   period,
  args 
)    CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */

Definition at line 424 of file macros.h.

◆ CRAS_DEBUG_STREAM_DELAYED_THROTTLE_NAMED

#define CRAS_DEBUG_STREAM_DELAYED_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 426 of file macros.h.

◆ CRAS_DEBUG_STREAM_FILTER

#define CRAS_DEBUG_STREAM_FILTER (   filter,
  args 
)    CRAS_LOG_DEBUG_STREAM_FILTER(getCrasLogger(), (filter), args)

Definition at line 428 of file macros.h.

◆ CRAS_DEBUG_STREAM_FILTER_NAMED

#define CRAS_DEBUG_STREAM_FILTER_NAMED (   filter,
  name,
  args 
)    CRAS_LOG_DEBUG_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */

Definition at line 430 of file macros.h.

◆ CRAS_DEBUG_STREAM_NAMED

#define CRAS_DEBUG_STREAM_NAMED (   name,
  args 
)    CRAS_LOG_DEBUG_STREAM_NAMED(getCrasLogger(), (name), args)

Definition at line 410 of file macros.h.

◆ CRAS_DEBUG_STREAM_ONCE

#define CRAS_DEBUG_STREAM_ONCE (   args)    CRAS_LOG_DEBUG_STREAM_ONCE(getCrasLogger(), args)

Definition at line 416 of file macros.h.

◆ CRAS_DEBUG_STREAM_ONCE_NAMED

#define CRAS_DEBUG_STREAM_ONCE_NAMED (   name,
  args 
)    CRAS_LOG_DEBUG_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)

Definition at line 418 of file macros.h.

◆ CRAS_DEBUG_STREAM_THROTTLE

#define CRAS_DEBUG_STREAM_THROTTLE (   period,
  args 
)    CRAS_LOG_DEBUG_STREAM_THROTTLE(getCrasLogger(), (period), args)

Definition at line 420 of file macros.h.

◆ CRAS_DEBUG_STREAM_THROTTLE_NAMED

#define CRAS_DEBUG_STREAM_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 422 of file macros.h.

◆ CRAS_DEBUG_THROTTLE

#define CRAS_DEBUG_THROTTLE (   period,
  ... 
)    CRAS_LOG_DEBUG_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 419 of file macros.h.

◆ CRAS_DEBUG_THROTTLE_NAMED

#define CRAS_DEBUG_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_DEBUG_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 421 of file macros.h.

◆ CRAS_ERROR

#define CRAS_ERROR (   ...)    CRAS_LOG_ERROR(getCrasLogger(), __VA_ARGS__)

Definition at line 707 of file macros.h.

◆ CRAS_ERROR_COND

#define CRAS_ERROR_COND (   cond,
  ... 
)    CRAS_LOG_ERROR_COND(getCrasLogger(), (cond), __VA_ARGS__)

Definition at line 711 of file macros.h.

◆ CRAS_ERROR_COND_NAMED

#define CRAS_ERROR_COND_NAMED (   cond,
  name,
  ... 
)    CRAS_LOG_ERROR_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)

Definition at line 713 of file macros.h.

◆ CRAS_ERROR_DELAYED_THROTTLE

#define CRAS_ERROR_DELAYED_THROTTLE (   period,
  ... 
)    CRAS_LOG_ERROR_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 723 of file macros.h.

◆ CRAS_ERROR_DELAYED_THROTTLE_NAMED

#define CRAS_ERROR_DELAYED_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 725 of file macros.h.

◆ CRAS_ERROR_FILTER

#define CRAS_ERROR_FILTER (   filter,
  ... 
)    CRAS_LOG_ERROR_FILTER(getCrasLogger(), (filter), __VA_ARGS__)

Definition at line 727 of file macros.h.

◆ CRAS_ERROR_FILTER_NAMED

#define CRAS_ERROR_FILTER_NAMED (   filter,
  name,
  ... 
)    CRAS_LOG_ERROR_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */

Definition at line 729 of file macros.h.

◆ CRAS_ERROR_NAMED

#define CRAS_ERROR_NAMED (   name,
  ... 
)    CRAS_LOG_ERROR_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 709 of file macros.h.

◆ CRAS_ERROR_ONCE

#define CRAS_ERROR_ONCE (   ...)    CRAS_LOG_ERROR_ONCE(getCrasLogger(), __VA_ARGS__)

Definition at line 715 of file macros.h.

◆ CRAS_ERROR_ONCE_NAMED

#define CRAS_ERROR_ONCE_NAMED (   name,
  ... 
)    CRAS_LOG_ERROR_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 717 of file macros.h.

◆ CRAS_ERROR_STREAM

#define CRAS_ERROR_STREAM (   args)    CRAS_LOG_ERROR_STREAM(getCrasLogger(), args)

Definition at line 708 of file macros.h.

◆ CRAS_ERROR_STREAM_COND

#define CRAS_ERROR_STREAM_COND (   cond,
  args 
)    CRAS_LOG_ERROR_STREAM_COND(getCrasLogger(), (cond), args)

Definition at line 712 of file macros.h.

◆ CRAS_ERROR_STREAM_COND_NAMED

#define CRAS_ERROR_STREAM_COND_NAMED (   cond,
  name,
  args 
)    CRAS_LOG_ERROR_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */

Definition at line 714 of file macros.h.

◆ CRAS_ERROR_STREAM_DELAYED_THROTTLE

#define CRAS_ERROR_STREAM_DELAYED_THROTTLE (   period,
  args 
)    CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */

Definition at line 724 of file macros.h.

◆ CRAS_ERROR_STREAM_DELAYED_THROTTLE_NAMED

#define CRAS_ERROR_STREAM_DELAYED_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 726 of file macros.h.

◆ CRAS_ERROR_STREAM_FILTER

#define CRAS_ERROR_STREAM_FILTER (   filter,
  args 
)    CRAS_LOG_ERROR_STREAM_FILTER(getCrasLogger(), (filter), args)

Definition at line 728 of file macros.h.

◆ CRAS_ERROR_STREAM_FILTER_NAMED

#define CRAS_ERROR_STREAM_FILTER_NAMED (   filter,
  name,
  args 
)    CRAS_LOG_ERROR_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */

Definition at line 730 of file macros.h.

◆ CRAS_ERROR_STREAM_NAMED

#define CRAS_ERROR_STREAM_NAMED (   name,
  args 
)    CRAS_LOG_ERROR_STREAM_NAMED(getCrasLogger(), (name), args)

Definition at line 710 of file macros.h.

◆ CRAS_ERROR_STREAM_ONCE

#define CRAS_ERROR_STREAM_ONCE (   args)    CRAS_LOG_ERROR_STREAM_ONCE(getCrasLogger(), args)

Definition at line 716 of file macros.h.

◆ CRAS_ERROR_STREAM_ONCE_NAMED

#define CRAS_ERROR_STREAM_ONCE_NAMED (   name,
  args 
)    CRAS_LOG_ERROR_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)

Definition at line 718 of file macros.h.

◆ CRAS_ERROR_STREAM_THROTTLE

#define CRAS_ERROR_STREAM_THROTTLE (   period,
  args 
)    CRAS_LOG_ERROR_STREAM_THROTTLE(getCrasLogger(), (period), args)

Definition at line 720 of file macros.h.

◆ CRAS_ERROR_STREAM_THROTTLE_NAMED

#define CRAS_ERROR_STREAM_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 722 of file macros.h.

◆ CRAS_ERROR_THROTTLE

#define CRAS_ERROR_THROTTLE (   period,
  ... 
)    CRAS_LOG_ERROR_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 719 of file macros.h.

◆ CRAS_ERROR_THROTTLE_NAMED

#define CRAS_ERROR_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_ERROR_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 721 of file macros.h.

◆ CRAS_FATAL

#define CRAS_FATAL (   ...)    CRAS_LOG_FATAL(getCrasLogger(), __VA_ARGS__)

Definition at line 807 of file macros.h.

◆ CRAS_FATAL_COND

#define CRAS_FATAL_COND (   cond,
  ... 
)    CRAS_LOG_FATAL_COND(getCrasLogger(), (cond), __VA_ARGS__)

Definition at line 811 of file macros.h.

◆ CRAS_FATAL_COND_NAMED

#define CRAS_FATAL_COND_NAMED (   cond,
  name,
  ... 
)    CRAS_LOG_FATAL_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)

Definition at line 813 of file macros.h.

◆ CRAS_FATAL_DELAYED_THROTTLE

#define CRAS_FATAL_DELAYED_THROTTLE (   period,
  ... 
)    CRAS_LOG_FATAL_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 823 of file macros.h.

◆ CRAS_FATAL_DELAYED_THROTTLE_NAMED

#define CRAS_FATAL_DELAYED_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 825 of file macros.h.

◆ CRAS_FATAL_FILTER

#define CRAS_FATAL_FILTER (   filter,
  ... 
)    CRAS_LOG_FATAL_FILTER(getCrasLogger(), (filter), __VA_ARGS__)

Definition at line 827 of file macros.h.

◆ CRAS_FATAL_FILTER_NAMED

#define CRAS_FATAL_FILTER_NAMED (   filter,
  name,
  ... 
)    CRAS_LOG_FATAL_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */

Definition at line 829 of file macros.h.

◆ CRAS_FATAL_NAMED

#define CRAS_FATAL_NAMED (   name,
  ... 
)    CRAS_LOG_FATAL_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 809 of file macros.h.

◆ CRAS_FATAL_ONCE

#define CRAS_FATAL_ONCE (   ...)    CRAS_LOG_FATAL_ONCE(getCrasLogger(), __VA_ARGS__)

Definition at line 815 of file macros.h.

◆ CRAS_FATAL_ONCE_NAMED

#define CRAS_FATAL_ONCE_NAMED (   name,
  ... 
)    CRAS_LOG_FATAL_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 817 of file macros.h.

◆ CRAS_FATAL_STREAM

#define CRAS_FATAL_STREAM (   args)    CRAS_LOG_FATAL_STREAM(getCrasLogger(), args)

Definition at line 808 of file macros.h.

◆ CRAS_FATAL_STREAM_COND

#define CRAS_FATAL_STREAM_COND (   cond,
  args 
)    CRAS_LOG_FATAL_STREAM_COND(getCrasLogger(), (cond), args)

Definition at line 812 of file macros.h.

◆ CRAS_FATAL_STREAM_COND_NAMED

#define CRAS_FATAL_STREAM_COND_NAMED (   cond,
  name,
  args 
)    CRAS_LOG_FATAL_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */

Definition at line 814 of file macros.h.

◆ CRAS_FATAL_STREAM_DELAYED_THROTTLE

#define CRAS_FATAL_STREAM_DELAYED_THROTTLE (   period,
  args 
)    CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */

Definition at line 824 of file macros.h.

◆ CRAS_FATAL_STREAM_DELAYED_THROTTLE_NAMED

#define CRAS_FATAL_STREAM_DELAYED_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 826 of file macros.h.

◆ CRAS_FATAL_STREAM_FILTER

#define CRAS_FATAL_STREAM_FILTER (   filter,
  args 
)    CRAS_LOG_FATAL_STREAM_FILTER(getCrasLogger(), (filter), args)

Definition at line 828 of file macros.h.

◆ CRAS_FATAL_STREAM_FILTER_NAMED

#define CRAS_FATAL_STREAM_FILTER_NAMED (   filter,
  name,
  args 
)    CRAS_LOG_FATAL_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */

Definition at line 830 of file macros.h.

◆ CRAS_FATAL_STREAM_NAMED

#define CRAS_FATAL_STREAM_NAMED (   name,
  args 
)    CRAS_LOG_FATAL_STREAM_NAMED(getCrasLogger(), (name), args)

Definition at line 810 of file macros.h.

◆ CRAS_FATAL_STREAM_ONCE

#define CRAS_FATAL_STREAM_ONCE (   args)    CRAS_LOG_FATAL_STREAM_ONCE(getCrasLogger(), args)

Definition at line 816 of file macros.h.

◆ CRAS_FATAL_STREAM_ONCE_NAMED

#define CRAS_FATAL_STREAM_ONCE_NAMED (   name,
  args 
)    CRAS_LOG_FATAL_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)

Definition at line 818 of file macros.h.

◆ CRAS_FATAL_STREAM_THROTTLE

#define CRAS_FATAL_STREAM_THROTTLE (   period,
  args 
)    CRAS_LOG_FATAL_STREAM_THROTTLE(getCrasLogger(), (period), args)

Definition at line 820 of file macros.h.

◆ CRAS_FATAL_STREAM_THROTTLE_NAMED

#define CRAS_FATAL_STREAM_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 822 of file macros.h.

◆ CRAS_FATAL_THROTTLE

#define CRAS_FATAL_THROTTLE (   period,
  ... 
)    CRAS_LOG_FATAL_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 819 of file macros.h.

◆ CRAS_FATAL_THROTTLE_NAMED

#define CRAS_FATAL_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_FATAL_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 821 of file macros.h.

◆ CRAS_INFO

#define CRAS_INFO (   ...)    CRAS_LOG_INFO(getCrasLogger(), __VA_ARGS__)

Definition at line 507 of file macros.h.

◆ CRAS_INFO_COND

#define CRAS_INFO_COND (   cond,
  ... 
)    CRAS_LOG_INFO_COND(getCrasLogger(), (cond), __VA_ARGS__)

Definition at line 511 of file macros.h.

◆ CRAS_INFO_COND_NAMED

#define CRAS_INFO_COND_NAMED (   cond,
  name,
  ... 
)    CRAS_LOG_INFO_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)

Definition at line 513 of file macros.h.

◆ CRAS_INFO_DELAYED_THROTTLE

#define CRAS_INFO_DELAYED_THROTTLE (   period,
  ... 
)    CRAS_LOG_INFO_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 523 of file macros.h.

◆ CRAS_INFO_DELAYED_THROTTLE_NAMED

#define CRAS_INFO_DELAYED_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 525 of file macros.h.

◆ CRAS_INFO_FILTER

#define CRAS_INFO_FILTER (   filter,
  ... 
)    CRAS_LOG_INFO_FILTER(getCrasLogger(), (filter), __VA_ARGS__)

Definition at line 527 of file macros.h.

◆ CRAS_INFO_FILTER_NAMED

#define CRAS_INFO_FILTER_NAMED (   filter,
  name,
  ... 
)    CRAS_LOG_INFO_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */

Definition at line 529 of file macros.h.

◆ CRAS_INFO_NAMED

#define CRAS_INFO_NAMED (   name,
  ... 
)    CRAS_LOG_INFO_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 509 of file macros.h.

◆ CRAS_INFO_ONCE

#define CRAS_INFO_ONCE (   ...)    CRAS_LOG_INFO_ONCE(getCrasLogger(), __VA_ARGS__)

Definition at line 515 of file macros.h.

◆ CRAS_INFO_ONCE_NAMED

#define CRAS_INFO_ONCE_NAMED (   name,
  ... 
)    CRAS_LOG_INFO_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 517 of file macros.h.

◆ CRAS_INFO_STREAM

#define CRAS_INFO_STREAM (   args)    CRAS_LOG_INFO_STREAM(getCrasLogger(), args)

Definition at line 508 of file macros.h.

◆ CRAS_INFO_STREAM_COND

#define CRAS_INFO_STREAM_COND (   cond,
  args 
)    CRAS_LOG_INFO_STREAM_COND(getCrasLogger(), (cond), args)

Definition at line 512 of file macros.h.

◆ CRAS_INFO_STREAM_COND_NAMED

#define CRAS_INFO_STREAM_COND_NAMED (   cond,
  name,
  args 
)    CRAS_LOG_INFO_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */

Definition at line 514 of file macros.h.

◆ CRAS_INFO_STREAM_DELAYED_THROTTLE

#define CRAS_INFO_STREAM_DELAYED_THROTTLE (   period,
  args 
)    CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */

Definition at line 524 of file macros.h.

◆ CRAS_INFO_STREAM_DELAYED_THROTTLE_NAMED

#define CRAS_INFO_STREAM_DELAYED_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 526 of file macros.h.

◆ CRAS_INFO_STREAM_FILTER

#define CRAS_INFO_STREAM_FILTER (   filter,
  args 
)    CRAS_LOG_INFO_STREAM_FILTER(getCrasLogger(), (filter), args)

Definition at line 528 of file macros.h.

◆ CRAS_INFO_STREAM_FILTER_NAMED

#define CRAS_INFO_STREAM_FILTER_NAMED (   filter,
  name,
  args 
)    CRAS_LOG_INFO_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */

Definition at line 530 of file macros.h.

◆ CRAS_INFO_STREAM_NAMED

#define CRAS_INFO_STREAM_NAMED (   name,
  args 
)    CRAS_LOG_INFO_STREAM_NAMED(getCrasLogger(), (name), args)

Definition at line 510 of file macros.h.

◆ CRAS_INFO_STREAM_ONCE

#define CRAS_INFO_STREAM_ONCE (   args)    CRAS_LOG_INFO_STREAM_ONCE(getCrasLogger(), args)

Definition at line 516 of file macros.h.

◆ CRAS_INFO_STREAM_ONCE_NAMED

#define CRAS_INFO_STREAM_ONCE_NAMED (   name,
  args 
)    CRAS_LOG_INFO_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)

Definition at line 518 of file macros.h.

◆ CRAS_INFO_STREAM_THROTTLE

#define CRAS_INFO_STREAM_THROTTLE (   period,
  args 
)    CRAS_LOG_INFO_STREAM_THROTTLE(getCrasLogger(), (period), args)

Definition at line 520 of file macros.h.

◆ CRAS_INFO_STREAM_THROTTLE_NAMED

#define CRAS_INFO_STREAM_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_INFO_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 522 of file macros.h.

◆ CRAS_INFO_THROTTLE

#define CRAS_INFO_THROTTLE (   period,
  ... 
)    CRAS_LOG_INFO_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 519 of file macros.h.

◆ CRAS_INFO_THROTTLE_NAMED

#define CRAS_INFO_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_INFO_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 521 of file macros.h.

◆ CRAS_LOG

#define CRAS_LOG (   logger,
  level,
  name,
  ... 
)    CRAS_LOG_COND((logger), true, (level), (name), __VA_ARGS__)

Log to a given named logger at a given verbosity level, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.

Definition at line 320 of file macros.h.

◆ CRAS_LOG_COND

#define CRAS_LOG_COND (   logger,
  cond,
  level,
  name,
  ... 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), (cond), (level), (name)); \
\
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
{ \
CRASCONSOLE_PRINT_AT_LOCATION(logger, __VA_ARGS__); \
} \
} while (false)

Log to a given named logger at a given verbosity level, only if a given condition has been met, with printf-style formatting.

Note
The condition will only be evaluated if this logging statement is enabled
Parameters
[in]loggerThe logger to use.
[in]condBoolean condition to be evaluated
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.

Definition at line 91 of file macros.h.

◆ CRAS_LOG_DEBUG

#define CRAS_LOG_DEBUG (   logger,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 383 of file macros.h.

◆ CRAS_LOG_DEBUG_COND

#define CRAS_LOG_DEBUG_COND (   logger,
  cond,
  ... 
)    CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 387 of file macros.h.

◆ CRAS_LOG_DEBUG_COND_NAMED

#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 */

Definition at line 389 of file macros.h.

◆ CRAS_LOG_DEBUG_DELAYED_THROTTLE

#define CRAS_LOG_DEBUG_DELAYED_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 399 of file macros.h.

◆ CRAS_LOG_DEBUG_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 401 of file macros.h.

◆ CRAS_LOG_DEBUG_FILTER

#define CRAS_LOG_DEBUG_FILTER (   logger,
  filter,
  ... 
)    CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 403 of file macros.h.

◆ CRAS_LOG_DEBUG_FILTER_NAMED

#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 */

Definition at line 405 of file macros.h.

◆ CRAS_LOG_DEBUG_NAMED

#define CRAS_LOG_DEBUG_NAMED (   logger,
  name,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Debug, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */

Definition at line 385 of file macros.h.

◆ CRAS_LOG_DEBUG_ONCE

#define CRAS_LOG_DEBUG_ONCE (   logger,
  ... 
)    CRAS_LOG_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 391 of file macros.h.

◆ CRAS_LOG_DEBUG_ONCE_NAMED

#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 */

Definition at line 393 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM

#define CRAS_LOG_DEBUG_STREAM (   logger,
  args 
)    CRAS_LOG_STREAM((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 384 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_COND

#define CRAS_LOG_DEBUG_STREAM_COND (   logger,
  cond,
  args 
)    CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 388 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_COND_NAMED

#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 */

Definition at line 390 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE

#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 */

Definition at line 400 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 402 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_FILTER

#define CRAS_LOG_DEBUG_STREAM_FILTER (   logger,
  filter,
  args 
)    CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 404 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_FILTER_NAMED

#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 */

Definition at line 406 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_NAMED

#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 */

Definition at line 386 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_ONCE

#define CRAS_LOG_DEBUG_STREAM_ONCE (   logger,
  args 
)    CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 392 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_ONCE_NAMED

#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 */

Definition at line 394 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_THROTTLE

#define CRAS_LOG_DEBUG_STREAM_THROTTLE (   logger,
  period,
  args 
)    CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 396 of file macros.h.

◆ CRAS_LOG_DEBUG_STREAM_THROTTLE_NAMED

#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 */

Definition at line 398 of file macros.h.

◆ CRAS_LOG_DEBUG_THROTTLE

#define CRAS_LOG_DEBUG_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Debug, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 395 of file macros.h.

◆ CRAS_LOG_DEBUG_THROTTLE_NAMED

#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 */

Definition at line 397 of file macros.h.

◆ CRAS_LOG_DELAYED_THROTTLE

#define CRAS_LOG_DELAYED_THROTTLE (   logger,
  period,
  level,
  name,
  ... 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
const auto now = (logger)->getTimeNow().toSec(); \
static ::cras::SmallMap<const void*, double> lastHitMap; \
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, now); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period)))\
{ \
lastHit = now; \
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
} \
} while (false)

Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]periodThe period it should actually trigger at most, and the delay before which no message will be shown. If ROS time has moved backwards, it will trigger regardless.

Definition at line 231 of file macros.h.

◆ CRAS_LOG_ERROR

#define CRAS_LOG_ERROR (   logger,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 683 of file macros.h.

◆ CRAS_LOG_ERROR_COND

#define CRAS_LOG_ERROR_COND (   logger,
  cond,
  ... 
)    CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 687 of file macros.h.

◆ CRAS_LOG_ERROR_COND_NAMED

#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 */

Definition at line 689 of file macros.h.

◆ CRAS_LOG_ERROR_DELAYED_THROTTLE

#define CRAS_LOG_ERROR_DELAYED_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 699 of file macros.h.

◆ CRAS_LOG_ERROR_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 701 of file macros.h.

◆ CRAS_LOG_ERROR_FILTER

#define CRAS_LOG_ERROR_FILTER (   logger,
  filter,
  ... 
)    CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 703 of file macros.h.

◆ CRAS_LOG_ERROR_FILTER_NAMED

#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 */

Definition at line 705 of file macros.h.

◆ CRAS_LOG_ERROR_NAMED

#define CRAS_LOG_ERROR_NAMED (   logger,
  name,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Error, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */

Definition at line 685 of file macros.h.

◆ CRAS_LOG_ERROR_ONCE

#define CRAS_LOG_ERROR_ONCE (   logger,
  ... 
)    CRAS_LOG_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 691 of file macros.h.

◆ CRAS_LOG_ERROR_ONCE_NAMED

#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 */

Definition at line 693 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM

#define CRAS_LOG_ERROR_STREAM (   logger,
  args 
)    CRAS_LOG_STREAM((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 684 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_COND

#define CRAS_LOG_ERROR_STREAM_COND (   logger,
  cond,
  args 
)    CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 688 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_COND_NAMED

#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 */

Definition at line 690 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE

#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 */

Definition at line 700 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 702 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_FILTER

#define CRAS_LOG_ERROR_STREAM_FILTER (   logger,
  filter,
  args 
)    CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 704 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_FILTER_NAMED

#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 */

Definition at line 706 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_NAMED

#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 */

Definition at line 686 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_ONCE

#define CRAS_LOG_ERROR_STREAM_ONCE (   logger,
  args 
)    CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 692 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_ONCE_NAMED

#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 */

Definition at line 694 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_THROTTLE

#define CRAS_LOG_ERROR_STREAM_THROTTLE (   logger,
  period,
  args 
)    CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 696 of file macros.h.

◆ CRAS_LOG_ERROR_STREAM_THROTTLE_NAMED

#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 */

Definition at line 698 of file macros.h.

◆ CRAS_LOG_ERROR_THROTTLE

#define CRAS_LOG_ERROR_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 695 of file macros.h.

◆ CRAS_LOG_ERROR_THROTTLE_NAMED

#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 */

Definition at line 697 of file macros.h.

◆ CRAS_LOG_FATAL

#define CRAS_LOG_FATAL (   logger,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 783 of file macros.h.

◆ CRAS_LOG_FATAL_COND

#define CRAS_LOG_FATAL_COND (   logger,
  cond,
  ... 
)    CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 787 of file macros.h.

◆ CRAS_LOG_FATAL_COND_NAMED

#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 */

Definition at line 789 of file macros.h.

◆ CRAS_LOG_FATAL_DELAYED_THROTTLE

#define CRAS_LOG_FATAL_DELAYED_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 799 of file macros.h.

◆ CRAS_LOG_FATAL_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 801 of file macros.h.

◆ CRAS_LOG_FATAL_FILTER

#define CRAS_LOG_FATAL_FILTER (   logger,
  filter,
  ... 
)    CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 803 of file macros.h.

◆ CRAS_LOG_FATAL_FILTER_NAMED

#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 */

Definition at line 805 of file macros.h.

◆ CRAS_LOG_FATAL_NAMED

#define CRAS_LOG_FATAL_NAMED (   logger,
  name,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Fatal, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */

Definition at line 785 of file macros.h.

◆ CRAS_LOG_FATAL_ONCE

#define CRAS_LOG_FATAL_ONCE (   logger,
  ... 
)    CRAS_LOG_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 791 of file macros.h.

◆ CRAS_LOG_FATAL_ONCE_NAMED

#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 */

Definition at line 793 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM

#define CRAS_LOG_FATAL_STREAM (   logger,
  args 
)    CRAS_LOG_STREAM((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 784 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_COND

#define CRAS_LOG_FATAL_STREAM_COND (   logger,
  cond,
  args 
)    CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 788 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_COND_NAMED

#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 */

Definition at line 790 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE

#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 */

Definition at line 800 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 802 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_FILTER

#define CRAS_LOG_FATAL_STREAM_FILTER (   logger,
  filter,
  args 
)    CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 804 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_FILTER_NAMED

#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 */

Definition at line 806 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_NAMED

#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 */

Definition at line 786 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_ONCE

#define CRAS_LOG_FATAL_STREAM_ONCE (   logger,
  args 
)    CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 792 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_ONCE_NAMED

#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 */

Definition at line 794 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_THROTTLE

#define CRAS_LOG_FATAL_STREAM_THROTTLE (   logger,
  period,
  args 
)    CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 796 of file macros.h.

◆ CRAS_LOG_FATAL_STREAM_THROTTLE_NAMED

#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 */

Definition at line 798 of file macros.h.

◆ CRAS_LOG_FATAL_THROTTLE

#define CRAS_LOG_FATAL_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 795 of file macros.h.

◆ CRAS_LOG_FATAL_THROTTLE_NAMED

#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 */

Definition at line 797 of file macros.h.

◆ CRAS_LOG_FILTER

#define CRAS_LOG_FILTER (   logger,
  filter,
  level,
  name,
  ... 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
{ \
CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER((logger), filter, __VA_ARGS__); \
} \
} while (false)

Log to a given named logger at a given verbosity level, with user-defined filtering, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]filterpointer to the filter to be used
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.

Definition at line 281 of file macros.h.

◆ CRAS_LOG_INFO

#define CRAS_LOG_INFO (   logger,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 483 of file macros.h.

◆ CRAS_LOG_INFO_COND

#define CRAS_LOG_INFO_COND (   logger,
  cond,
  ... 
)    CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 487 of file macros.h.

◆ CRAS_LOG_INFO_COND_NAMED

#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 */

Definition at line 489 of file macros.h.

◆ CRAS_LOG_INFO_DELAYED_THROTTLE

#define CRAS_LOG_INFO_DELAYED_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 499 of file macros.h.

◆ CRAS_LOG_INFO_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 501 of file macros.h.

◆ CRAS_LOG_INFO_FILTER

#define CRAS_LOG_INFO_FILTER (   logger,
  filter,
  ... 
)    CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 503 of file macros.h.

◆ CRAS_LOG_INFO_FILTER_NAMED

#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 */

Definition at line 505 of file macros.h.

◆ CRAS_LOG_INFO_NAMED

#define CRAS_LOG_INFO_NAMED (   logger,
  name,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Info, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */

Definition at line 485 of file macros.h.

◆ CRAS_LOG_INFO_ONCE

#define CRAS_LOG_INFO_ONCE (   logger,
  ... 
)    CRAS_LOG_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 491 of file macros.h.

◆ CRAS_LOG_INFO_ONCE_NAMED

#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 */

Definition at line 493 of file macros.h.

◆ CRAS_LOG_INFO_STREAM

#define CRAS_LOG_INFO_STREAM (   logger,
  args 
)    CRAS_LOG_STREAM((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 484 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_COND

#define CRAS_LOG_INFO_STREAM_COND (   logger,
  cond,
  args 
)    CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 488 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_COND_NAMED

#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 */

Definition at line 490 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE

#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 */

Definition at line 500 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 502 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_FILTER

#define CRAS_LOG_INFO_STREAM_FILTER (   logger,
  filter,
  args 
)    CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 504 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_FILTER_NAMED

#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 */

Definition at line 506 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_NAMED

#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 */

Definition at line 486 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_ONCE

#define CRAS_LOG_INFO_STREAM_ONCE (   logger,
  args 
)    CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 492 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_ONCE_NAMED

#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 */

Definition at line 494 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_THROTTLE

#define CRAS_LOG_INFO_STREAM_THROTTLE (   logger,
  period,
  args 
)    CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 496 of file macros.h.

◆ CRAS_LOG_INFO_STREAM_THROTTLE_NAMED

#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 */

Definition at line 498 of file macros.h.

◆ CRAS_LOG_INFO_THROTTLE

#define CRAS_LOG_INFO_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 495 of file macros.h.

◆ CRAS_LOG_INFO_THROTTLE_NAMED

#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 */

Definition at line 497 of file macros.h.

◆ CRAS_LOG_ONCE

#define CRAS_LOG_ONCE (   logger,
  level,
  name,
  ... 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
static ::std::vector<const void*> hitSet; /* vector instead of set as we assume only a few elements */ \
const auto hit = ::std::find(hitSet.begin(), hitSet.end(), __cras_logger_id__) != hitSet.end(); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!hit)) \
{ \
hitSet.push_back(__cras_logger_id__); \
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
} \
} while (false)

Log to a given named logger at a given verbosity level, only the first time it is hit when enabled, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.

Definition at line 134 of file macros.h.

◆ CRAS_LOG_STREAM

#define CRAS_LOG_STREAM (   logger,
  level,
  name,
  args 
)    CRAS_LOG_STREAM_COND((logger), true, (level), (name), args)

Log to a given named logger at a given verbosity level, with stream-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 331 of file macros.h.

◆ CRAS_LOG_STREAM_COND

#define CRAS_LOG_STREAM_COND (   logger,
  cond,
  level,
  name,
  args 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), (cond), (level), (name)); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
{ \
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
} \
} while (false)

Log to a given named logger at a given verbosity level, only if a given condition has been met, with stream-style formatting.

Note
The condition will only be evaluated if this logging statement is enabled
Parameters
[in]loggerThe logger to use.
[in]condBoolean condition to be evaluated
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 115 of file macros.h.

◆ CRAS_LOG_STREAM_DELAYED_THROTTLE

#define CRAS_LOG_STREAM_DELAYED_THROTTLE (   logger,
  period,
  level,
  name,
  args 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
const auto now = (logger)->getTimeNow().toSec(); \
static ::cras::SmallMap<const void*, double> lastHitMap; \
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, now); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
{ \
lastHit = now; \
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
} \
} while (false)

Log to a given named logger at a given verbosity level, limited to a specific rate of printing and postponed first message.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]periodThe period it should actually trigger at most, and the delay before which no message will be shown. If ROS time has moved backwards, it will trigger regardless.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 257 of file macros.h.

◆ CRAS_LOG_STREAM_FILTER

#define CRAS_LOG_STREAM_FILTER (   logger,
  filter,
  level,
  name,
  args 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
{ \
CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER((logger), filter, args); \
} \
} while (false)

Log to a given named logger at a given verbosity level, with user-defined filtering, with stream-style formatting.

Parameters
[in]loggerThe logger to use.
[in]filterpointer to the filter to be used
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 302 of file macros.h.

◆ CRAS_LOG_STREAM_ONCE

#define CRAS_LOG_STREAM_ONCE (   logger,
  level,
  name,
  args 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
static ::cras::SmallSet<const void*> hitSet; \
const auto hit = !hitSet.insert(__cras_logger_id__); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!hit)) \
{ \
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
} \
} while (false)

Log to a given named logger at a given verbosity level, only the first time it is hit when enabled, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 157 of file macros.h.

◆ CRAS_LOG_STREAM_THROTTLE

#define CRAS_LOG_STREAM_THROTTLE (   logger,
  period,
  level,
  name,
  args 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
static ::cras::SmallMap<const void*, double> lastHitMap; \
const auto now = (logger)->getTimeNow().toSec(); \
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, 0.0); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
{ \
lastHit = now; \
CRASCONSOLE_PRINT_STREAM_AT_LOCATION((logger), args); \
} \
} while (false)

Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]periodThe period it should actually trigger at most. If ROS time has moved backwards, it will trigger regardless.
[in]argsThe string to print, possibly containing streaming operators <<.

Definition at line 206 of file macros.h.

◆ CRAS_LOG_THROTTLE

#define CRAS_LOG_THROTTLE (   logger,
  period,
  level,
  name,
  ... 
)
Value:
do \
{ \
CRASCONSOLE_DEFINE_LOCATION((logger), true, (level), (name)); \
static ::cras::SmallMap<const void*, double> lastHitMap; \
const auto now = (logger)->getTimeNow().toSec(); \
auto& lastHit = lastHitMap.insertIfNew(__cras_logger_id__, 0.0); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(now, lastHit, (period))) \
{ \
lastHit = now; \
CRASCONSOLE_PRINT_AT_LOCATION((logger), __VA_ARGS__); \
} \
} while (false)

Log to a given named logger at a given verbosity level, limited to a specific rate of printing, with printf-style formatting.

Parameters
[in]loggerThe logger to use.
[in]levelOne of the levels specified in ros::console::levels::Level
[in]nameName of the logger. Note that this is the fully qualified name, and does NOT include "ros.<package_name>". Use ROSCONSOLE_DEFAULT_NAME if you would like to use the default name.
[in]periodThe period it should actually trigger at most. If ROS time has moved backwards, it will trigger regardless.

Definition at line 180 of file macros.h.

◆ CRAS_LOG_WARN

#define CRAS_LOG_WARN (   logger,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 583 of file macros.h.

◆ CRAS_LOG_WARN_COND

#define CRAS_LOG_WARN_COND (   logger,
  cond,
  ... 
)    CRAS_LOG_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 587 of file macros.h.

◆ CRAS_LOG_WARN_COND_NAMED

#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 */

Definition at line 589 of file macros.h.

◆ CRAS_LOG_WARN_DELAYED_THROTTLE

#define CRAS_LOG_WARN_DELAYED_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_DELAYED_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 599 of file macros.h.

◆ CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 601 of file macros.h.

◆ CRAS_LOG_WARN_FILTER

#define CRAS_LOG_WARN_FILTER (   logger,
  filter,
  ... 
)    CRAS_LOG_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 603 of file macros.h.

◆ CRAS_LOG_WARN_FILTER_NAMED

#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 */

Definition at line 605 of file macros.h.

◆ CRAS_LOG_WARN_NAMED

#define CRAS_LOG_WARN_NAMED (   logger,
  name,
  ... 
)    CRAS_LOG((logger), ::ros::console::levels::Warn, std::string(ROSCONSOLE_NAME_PREFIX) + "." + (name), __VA_ARGS__) /* NOLINT */

Definition at line 585 of file macros.h.

◆ CRAS_LOG_WARN_ONCE

#define CRAS_LOG_WARN_ONCE (   logger,
  ... 
)    CRAS_LOG_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 591 of file macros.h.

◆ CRAS_LOG_WARN_ONCE_NAMED

#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 */

Definition at line 593 of file macros.h.

◆ CRAS_LOG_WARN_STREAM

#define CRAS_LOG_WARN_STREAM (   logger,
  args 
)    CRAS_LOG_STREAM((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 584 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_COND

#define CRAS_LOG_WARN_STREAM_COND (   logger,
  cond,
  args 
)    CRAS_LOG_STREAM_COND((logger), (cond), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 588 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_COND_NAMED

#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 */

Definition at line 590 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE

#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 */

Definition at line 600 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED

#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 */

Definition at line 602 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_FILTER

#define CRAS_LOG_WARN_STREAM_FILTER (   logger,
  filter,
  args 
)    CRAS_LOG_STREAM_FILTER((logger), (filter), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 604 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_FILTER_NAMED

#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 */

Definition at line 606 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_NAMED

#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 */

Definition at line 586 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_ONCE

#define CRAS_LOG_WARN_STREAM_ONCE (   logger,
  args 
)    CRAS_LOG_STREAM_ONCE((logger), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 592 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_ONCE_NAMED

#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 */

Definition at line 594 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_THROTTLE

#define CRAS_LOG_WARN_STREAM_THROTTLE (   logger,
  period,
  args 
)    CRAS_LOG_STREAM_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, args) /* NOLINT */

Definition at line 596 of file macros.h.

◆ CRAS_LOG_WARN_STREAM_THROTTLE_NAMED

#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 */

Definition at line 598 of file macros.h.

◆ CRAS_LOG_WARN_THROTTLE

#define CRAS_LOG_WARN_THROTTLE (   logger,
  period,
  ... 
)    CRAS_LOG_THROTTLE((logger), (period), ::ros::console::levels::Warn, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__) /* NOLINT */

Definition at line 595 of file macros.h.

◆ CRAS_LOG_WARN_THROTTLE_NAMED

#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 */

Definition at line 597 of file macros.h.

◆ CRAS_WARN

#define CRAS_WARN (   ...)    CRAS_LOG_WARN(getCrasLogger(), __VA_ARGS__)

Definition at line 607 of file macros.h.

◆ CRAS_WARN_COND

#define CRAS_WARN_COND (   cond,
  ... 
)    CRAS_LOG_WARN_COND(getCrasLogger(), (cond), __VA_ARGS__)

Definition at line 611 of file macros.h.

◆ CRAS_WARN_COND_NAMED

#define CRAS_WARN_COND_NAMED (   cond,
  name,
  ... 
)    CRAS_LOG_WARN_COND_NAMED(getCrasLogger(), (cond), (name), __VA_ARGS__)

Definition at line 613 of file macros.h.

◆ CRAS_WARN_DELAYED_THROTTLE

#define CRAS_WARN_DELAYED_THROTTLE (   period,
  ... 
)    CRAS_LOG_WARN_DELAYED_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 623 of file macros.h.

◆ CRAS_WARN_DELAYED_THROTTLE_NAMED

#define CRAS_WARN_DELAYED_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_WARN_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 625 of file macros.h.

◆ CRAS_WARN_FILTER

#define CRAS_WARN_FILTER (   filter,
  ... 
)    CRAS_LOG_WARN_FILTER(getCrasLogger(), (filter), __VA_ARGS__)

Definition at line 627 of file macros.h.

◆ CRAS_WARN_FILTER_NAMED

#define CRAS_WARN_FILTER_NAMED (   filter,
  name,
  ... 
)    CRAS_LOG_WARN_FILTER_NAMED(getCrasLogger(), (filter), (name), __VA_ARGS__) /* NOLINT */

Definition at line 629 of file macros.h.

◆ CRAS_WARN_NAMED

#define CRAS_WARN_NAMED (   name,
  ... 
)    CRAS_LOG_WARN_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 609 of file macros.h.

◆ CRAS_WARN_ONCE

#define CRAS_WARN_ONCE (   ...)    CRAS_LOG_WARN_ONCE(getCrasLogger(), __VA_ARGS__)

Definition at line 615 of file macros.h.

◆ CRAS_WARN_ONCE_NAMED

#define CRAS_WARN_ONCE_NAMED (   name,
  ... 
)    CRAS_LOG_WARN_ONCE_NAMED(getCrasLogger(), (name), __VA_ARGS__)

Definition at line 617 of file macros.h.

◆ CRAS_WARN_STREAM

#define CRAS_WARN_STREAM (   args)    CRAS_LOG_WARN_STREAM(getCrasLogger(), args)

Definition at line 608 of file macros.h.

◆ CRAS_WARN_STREAM_COND

#define CRAS_WARN_STREAM_COND (   cond,
  args 
)    CRAS_LOG_WARN_STREAM_COND(getCrasLogger(), (cond), args)

Definition at line 612 of file macros.h.

◆ CRAS_WARN_STREAM_COND_NAMED

#define CRAS_WARN_STREAM_COND_NAMED (   cond,
  name,
  args 
)    CRAS_LOG_WARN_STREAM_COND_NAMED(getCrasLogger(), (cond), (name), args) /* NOLINT */

Definition at line 614 of file macros.h.

◆ CRAS_WARN_STREAM_DELAYED_THROTTLE

#define CRAS_WARN_STREAM_DELAYED_THROTTLE (   period,
  args 
)    CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE(getCrasLogger(), (period), args) /* NOLINT */

Definition at line 624 of file macros.h.

◆ CRAS_WARN_STREAM_DELAYED_THROTTLE_NAMED

#define CRAS_WARN_STREAM_DELAYED_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_WARN_STREAM_DELAYED_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 626 of file macros.h.

◆ CRAS_WARN_STREAM_FILTER

#define CRAS_WARN_STREAM_FILTER (   filter,
  args 
)    CRAS_LOG_WARN_STREAM_FILTER(getCrasLogger(), (filter), args)

Definition at line 628 of file macros.h.

◆ CRAS_WARN_STREAM_FILTER_NAMED

#define CRAS_WARN_STREAM_FILTER_NAMED (   filter,
  name,
  args 
)    CRAS_LOG_WARN_STREAM_FILTER_NAMED(getCrasLogger(), (filter), (name), args) /* NOLINT */

Definition at line 630 of file macros.h.

◆ CRAS_WARN_STREAM_NAMED

#define CRAS_WARN_STREAM_NAMED (   name,
  args 
)    CRAS_LOG_WARN_STREAM_NAMED(getCrasLogger(), (name), args)

Definition at line 610 of file macros.h.

◆ CRAS_WARN_STREAM_ONCE

#define CRAS_WARN_STREAM_ONCE (   args)    CRAS_LOG_WARN_STREAM_ONCE(getCrasLogger(), args)

Definition at line 616 of file macros.h.

◆ CRAS_WARN_STREAM_ONCE_NAMED

#define CRAS_WARN_STREAM_ONCE_NAMED (   name,
  args 
)    CRAS_LOG_WARN_STREAM_ONCE_NAMED(getCrasLogger(), (name), args)

Definition at line 618 of file macros.h.

◆ CRAS_WARN_STREAM_THROTTLE

#define CRAS_WARN_STREAM_THROTTLE (   period,
  args 
)    CRAS_LOG_WARN_STREAM_THROTTLE(getCrasLogger(), (period), args)

Definition at line 620 of file macros.h.

◆ CRAS_WARN_STREAM_THROTTLE_NAMED

#define CRAS_WARN_STREAM_THROTTLE_NAMED (   period,
  name,
  args 
)    CRAS_LOG_WARN_STREAM_THROTTLE_NAMED(getCrasLogger(), (period), (name), args) /* NOLINT */

Definition at line 622 of file macros.h.

◆ CRAS_WARN_THROTTLE

#define CRAS_WARN_THROTTLE (   period,
  ... 
)    CRAS_LOG_WARN_THROTTLE(getCrasLogger(), (period), __VA_ARGS__)

Definition at line 619 of file macros.h.

◆ CRAS_WARN_THROTTLE_NAMED

#define CRAS_WARN_THROTTLE_NAMED (   period,
  name,
  ... 
)    CRAS_LOG_WARN_THROTTLE_NAMED(getCrasLogger(), (period), (name), __VA_ARGS__) /* NOLINT */

Definition at line 621 of file macros.h.

◆ CRASCONSOLE_AUTOINIT

#define CRASCONSOLE_AUTOINIT (   logger)
Value:
do \
{ \
if (ROS_UNLIKELY(!(logger)->initialized)) \
{ \
(logger)->initialize(); \
} \
} while (false)

Initializes the logging library. Usually unnecessary to call directly.

Parameters
[in]loggerThe logger to use.

Definition at line 33 of file macros.h.

◆ CRASCONSOLE_DEFINE_LOCATION

#define CRASCONSOLE_DEFINE_LOCATION (   logger,
  cond,
  level,
  name 
)
Value:
CRASCONSOLE_AUTOINIT((logger)); \
static ::cras::SmallMap<const void*, ::ros::console::LogLocation> __rosconsole_define_location__map; \
const auto __cras_logger_id__ = (logger)->getId(); \
auto& __rosconsole_define_location__loc = __rosconsole_define_location__map.insertIfNew(__cras_logger_id__, \
false, false, ::ros::console::levels::Count, nullptr); \
if (ROS_UNLIKELY(!__rosconsole_define_location__loc.initialized_)) \
{ \
(logger)->initializeLogLocation(&__rosconsole_define_location__loc, (name), (level)); \
} \
if (ROS_UNLIKELY(__rosconsole_define_location__loc.level_ != (level))) \
{ \
(logger)->setLogLocationLevel(&__rosconsole_define_location__loc, level); \
(logger)->checkLogLocationEnabled(&__rosconsole_define_location__loc); \
} \
bool __rosconsole_define_location__enabled = __rosconsole_define_location__loc.logger_enabled_ && (cond);

Definition at line 42 of file macros.h.

◆ CRASCONSOLE_PRINT_AT_LOCATION

#define CRASCONSOLE_PRINT_AT_LOCATION (   logger,
  ... 
)    CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER((logger), NULL, __VA_ARGS__)

Definition at line 63 of file macros.h.

◆ CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER

#define CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER (   logger,
  filter,
  ... 
)
Value:
(logger)->print((filter), __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, \
__FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)

Definition at line 59 of file macros.h.

◆ CRASCONSOLE_PRINT_STREAM_AT_LOCATION

#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION (   logger,
  args 
)    CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER((logger), NULL, args)

Definition at line 76 of file macros.h.

◆ CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER

#define CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER (   logger,
  filter,
  args 
)
Value:
do \
{ \
std::stringstream __rosconsole_print_stream_at_location_with_filter__ss__; \
__rosconsole_print_stream_at_location_with_filter__ss__ << args; \
(logger)->print((filter), __rosconsole_define_location__loc.logger_, \
__rosconsole_define_location__loc.level_, __rosconsole_print_stream_at_location_with_filter__ss__, \
__FILE__, __LINE__, __ROSCONSOLE_FUNCTION__); \
} while (0)

Definition at line 66 of file macros.h.

ROS_UNLIKELY
#define ROS_UNLIKELY(x)
initializeLogLocation
ROSCONSOLE_DECL void initializeLogLocation(LogLocation *loc, const std::string &name, Level level)
setLogLocationLevel
ROSCONSOLE_DECL void setLogLocationLevel(LogLocation *loc, Level level)
ros::console::levels::Count
Count
checkLogLocationEnabled
ROSCONSOLE_DECL void checkLogLocationEnabled(LogLocation *loc)
__ROSCONSOLE_FUNCTION__
#define __ROSCONSOLE_FUNCTION__
CRASCONSOLE_AUTOINIT
#define CRASCONSOLE_AUTOINIT(logger)
Initializes the logging library. Usually unnecessary to call directly.
Definition: macros.h:33
initialize
ROSCONSOLE_DECL void initialize()
ROSCONSOLE_THROTTLE_CHECK
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)
args
print
ROSCONSOLE_DECL void print(FilterBase *filter, void *logger, Level level, const char *file, int line, const char *function, const char *fmt,...) ROSCONSOLE_PRINTF_ATTRIBUTE(7


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 5 2024 03:50:31