Classes | Namespaces | Macros | Typedefs | Functions | Variables
console.h File Reference
#include "console_backend.h"
#include <cstdio>
#include <sstream>
#include <ros/time.h>
#include <cstdarg>
#include <ros/macros.h>
#include <map>
#include <vector>
#include "rosconsole/macros_generated.h"
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ros::console::FilterBase
 Base-class for filters. Filters allow full user-defined control over whether or not a message should print. The ROS_X_FILTER... macros provide the filtering functionality. More...
 
struct  ros::console::FilterParams
 Parameter structure passed to FilterBase::isEnabled(...);. Includes both input and output parameters. More...
 
struct  ros::console::Formatter
 
class  ros::console::LogAppender
 
struct  ros::console::LogLocation
 Internal. More...
 
class  boost::shared_array< T >
 
struct  ros::console::Token
 

Namespaces

 boost
 
 ros
 
 ros::console
 

Macros

#define __ROSCONSOLE_FUNCTION__   ""
 
#define ROS_LIKELY(x)   __builtin_expect((x),1)
 
#define ROS_LOG(level, name, ...)   ROS_LOG_COND(true, level, name, __VA_ARGS__)
 Log to a given named logger at a given verbosity level, with printf-style formatting. More...
 
#define ROS_LOG_COND(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 ROS_LOG_DELAYED_THROTTLE(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 ROS_LOG_FILTER(filter, level, name, ...)
 Log to a given named logger at a given verbosity level, with user-defined filtering, with printf-style formatting. More...
 
#define ROS_LOG_ONCE(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 ROS_LOG_STREAM(level, name, args)   ROS_LOG_STREAM_COND(true, level, name, args)
 Log to a given named logger at a given verbosity level, with stream-style formatting. More...
 
#define ROS_LOG_STREAM_COND(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 ROS_LOG_STREAM_DELAYED_THROTTLE(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 ROS_LOG_STREAM_FILTER(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 ROS_LOG_STREAM_ONCE(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 ROS_LOG_STREAM_THROTTLE(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 ROS_LOG_THROTTLE(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 ROS_UNLIKELY(x)   __builtin_expect((x),0)
 
#define ROSCONSOLE_AUTOINIT
 Initializes the rosconsole library. Usually unnecessary to call directly. More...
 
#define ROSCONSOLE_DECL
 
#define ROSCONSOLE_DEFAULT_NAME   ROSCONSOLE_NAME_PREFIX
 
#define ROSCONSOLE_DEFINE_LOCATION(cond, level, name)
 
#define ROSCONSOLE_MIN_SEVERITY   ROSCONSOLE_SEVERITY_DEBUG
 
#define ROSCONSOLE_NAME_PREFIX   ROSCONSOLE_ROOT_LOGGER_NAME "." ROSCONSOLE_PACKAGE_NAME
 
#define ROSCONSOLE_PACKAGE_NAME   "unknown_package"
 
#define ROSCONSOLE_PRINT_AT_LOCATION(...)   ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
 
#define ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(filter, ...)   ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
 
#define ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args)   ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(NULL, args)
 
#define ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(filter, args)
 
#define ROSCONSOLE_PRINTF_ATTRIBUTE(a, b)
 
#define ROSCONSOLE_ROOT_LOGGER_NAME   "ros"
 
#define ROSCONSOLE_SEVERITY_DEBUG   0
 
#define ROSCONSOLE_SEVERITY_ERROR   3
 
#define ROSCONSOLE_SEVERITY_FATAL   4
 
#define ROSCONSOLE_SEVERITY_INFO   1
 
#define ROSCONSOLE_SEVERITY_NONE   5
 
#define ROSCONSOLE_SEVERITY_WARN   2
 
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)   (ROS_UNLIKELY(last + period <= now) || ROS_UNLIKELY(now < last))
 Used internally in throttle macros to determine if a new message should be logged. More...
 

Typedefs

typedef boost::shared_ptr< Token > ros::console::TokenPtr
 
typedef std::vector< TokenPtr > ros::console::V_Token
 

Functions

ROSCONSOLE_DECL void ros::console::checkLogLocationEnabled (LogLocation *loc)
 Internal. More...
 
ROSCONSOLE_DECL void ros::console::deregister_appender (LogAppender *appender)
 
ROSCONSOLE_DECL void ros::console::formatToBuffer (boost::shared_array< char > &buffer, size_t &buffer_size, const char *fmt,...)
 
ROSCONSOLE_DECL std::string ros::console::formatToString (const char *fmt,...)
 
ROSCONSOLE_DECL bool ros::console::get_loggers (std::map< std::string, levels::Level > &loggers)
 
ROSCONSOLE_DECL void ros::console::initialize ()
 Don't call this directly. Performs any required initialization/configuration. Happens automatically when using the macro API. More...
 
ROSCONSOLE_DECL void ros::console::initializeLogLocation (LogLocation *loc, const std::string &name, Level level)
 Internal. More...
 
ROSCONSOLE_DECL void ros::console::notifyLoggerLevelsChanged ()
 Tells the system that a logger's level has changed. More...
 
ROSCONSOLE_DECL void ros::console::print (FilterBase *filter, void *logger, Level level, const char *file, int line, const char *function, const char *fmt,...) ROSCONSOLE_PRINTF_ATTRIBUTE(7
 Don't call this directly. Use the ROS_LOG() macro instead. More...
 
ROSCONSOLE_DECL void ROSCONSOLE_DECL void ros::console::print (FilterBase *filter, void *logger, Level level, const std::stringstream &str, const char *file, int line, const char *function)
 
ROSCONSOLE_DECL void ros::console::register_appender (LogAppender *appender)
 
ROSCONSOLE_DECL void ros::console::registerLogLocation (LogLocation *loc)
 Registers a logging location with the system. More...
 
ROSCONSOLE_DECL bool ros::console::set_logger_level (const std::string &name, levels::Level level)
 
ROSCONSOLE_DECL void ros::console::setFixedFilterToken (const std::string &key, const std::string &val)
 
ROSCONSOLE_DECL void ros::console::setLogLocationLevel (LogLocation *loc, Level level)
 Internal. More...
 
ROSCONSOLE_DECL void ros::console::shutdown ()
 
ROSCONSOLE_DECL void ros::console::vformatToBuffer (boost::shared_array< char > &buffer, size_t &buffer_size, const char *fmt, va_list args)
 

Variables

ROSCONSOLE_DECL Formatter ros::console::g_formatter
 Only exported because the implementation need it. Do not use directly. More...
 
ROSCONSOLE_DECL bool ros::console::g_initialized = false
 Only exported because the macros need it. Do not use directly. More...
 
ROSCONSOLE_DECL std::string ros::console::g_last_error_message = "Unknown Error"
 Only exported because the TopicManager need it. Do not use directly. More...
 
struct ROSCONSOLE_DECL ros::console::LogLocation
 

Macro Definition Documentation

◆ __ROSCONSOLE_FUNCTION__

#define __ROSCONSOLE_FUNCTION__   ""

Definition at line 289 of file console.h.

◆ ROS_LIKELY

#define ROS_LIKELY (   x)    __builtin_expect((x),1)

Definition at line 280 of file console.h.

◆ ROS_LOG

#define ROS_LOG (   level,
  name,
  ... 
)    ROS_LOG_COND(true, level, name, __VA_ARGS__)

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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 572 of file console.h.

◆ ROS_LOG_COND

#define ROS_LOG_COND (   cond,
  level,
  name,
  ... 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(cond, level, name); \
\
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
{ \
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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
condBoolean condition to be evaluated
levelOne of the levels specified in ros::console::levels::Level
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 380 of file console.h.

◆ ROS_LOG_DELAYED_THROTTLE

#define ROS_LOG_DELAYED_THROTTLE (   period,
  level,
  name,
  ... 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
double __ros_log_delayed_throttle__now__ = ::ros::Time::now().toSec(); \
static double __ros_log_delayed_throttle__last_hit__ = __ros_log_delayed_throttle__now__; \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && \
ROSCONSOLE_THROTTLE_CHECK(__ros_log_delayed_throttle__now__, __ros_log_delayed_throttle__last_hit__, period))\
{ \
__ros_log_delayed_throttle__last_hit__ = __ros_log_delayed_throttle__now__; \
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)
Used internally in throttle macros to determine if a new message should be logged.
Definition: console.h:369
static Time now()

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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.
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 496 of file console.h.

◆ ROS_LOG_FILTER

#define ROS_LOG_FILTER (   filter,
  level,
  name,
  ... 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
{ \
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(filter, __VA_ARGS__); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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

Parameters
filterpointer to the filter to be used
levelOne of the levels specified in ros::console::levels::Level
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 539 of file console.h.

◆ ROS_LOG_ONCE

#define ROS_LOG_ONCE (   level,
  name,
  ... 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
static bool hit = false; \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!hit)) \
{ \
hit = true; \
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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
levelOne of the levels specified in ros::console::levels::Level
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 416 of file console.h.

◆ ROS_LOG_STREAM

#define ROS_LOG_STREAM (   level,
  name,
  args 
)    ROS_LOG_STREAM_COND(true, level, name, args)

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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 579 of file console.h.

◆ ROS_LOG_STREAM_COND

#define ROS_LOG_STREAM_COND (   cond,
  level,
  name,
  args 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(cond, level, name); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled)) \
{ \
ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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
condBoolean condition to be evaluated
levelOne of the levels specified in ros::console::levels::Level
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 400 of file console.h.

◆ ROS_LOG_STREAM_DELAYED_THROTTLE

#define ROS_LOG_STREAM_DELAYED_THROTTLE (   period,
  level,
  name,
  args 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
double __ros_log_stream_delayed_throttle__now__ = ::ros::Time::now().toSec(); \
static double __ros_log_stream_delayed_throttle__last_hit__ = __ros_log_stream_delayed_throttle__now__; \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && \
ROSCONSOLE_THROTTLE_CHECK(__ros_log_stream_delayed_throttle__now__, __ros_log_stream_delayed_throttle__last_hit__, period)) \
{ \
__ros_log_stream_delayed_throttle__last_hit__ = __ros_log_stream_delayed_throttle__now__; \
ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)
Used internally in throttle macros to determine if a new message should be logged.
Definition: console.h:369
static Time now()

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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.
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 518 of file console.h.

◆ ROS_LOG_STREAM_FILTER

#define ROS_LOG_STREAM_FILTER (   filter,
  level,
  name,
  args 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && (filter)->isEnabled()) \
{ \
ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(filter, args); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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

Parameters
condBoolean condition to be evaluated
levelOne of the levels specified in ros::console::levels::Level
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 556 of file console.h.

◆ ROS_LOG_STREAM_ONCE

#define ROS_LOG_STREAM_ONCE (   level,
  name,
  args 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
static bool __ros_log_stream_once__hit__ = false; \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROS_UNLIKELY(!__ros_log_stream_once__hit__)) \
{ \
__ros_log_stream_once__hit__ = true; \
ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281

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
levelOne of the levels specified in ros::console::levels::Level
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 435 of file console.h.

◆ ROS_LOG_STREAM_THROTTLE

#define ROS_LOG_STREAM_THROTTLE (   period,
  level,
  name,
  args 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
static double __ros_log_stream_throttle__last_hit__ = 0.0; \
double __ros_log_stream_throttle__now__ = ::ros::Time::now().toSec(); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && \
ROSCONSOLE_THROTTLE_CHECK(__ros_log_stream_throttle__now__, __ros_log_stream_throttle__last_hit__, period))\
{ \
__ros_log_stream_throttle__last_hit__ = __ros_log_stream_throttle__now__; \
ROSCONSOLE_PRINT_STREAM_AT_LOCATION(args); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)
Used internally in throttle macros to determine if a new message should be logged.
Definition: console.h:369
static Time now()

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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.
periodThe period it should actually trigger at most. If ROS time has moved backwards, it will trigger regardless.

Definition at line 475 of file console.h.

◆ ROS_LOG_THROTTLE

#define ROS_LOG_THROTTLE (   period,
  level,
  name,
  ... 
)
Value:
do \
{ \
ROSCONSOLE_DEFINE_LOCATION(true, level, name); \
static double __ros_log_throttle_last_hit__ = 0.0; \
double __ros_log_throttle_now__ = ::ros::Time::now().toSec(); \
if (ROS_UNLIKELY(__rosconsole_define_location__enabled) && ROSCONSOLE_THROTTLE_CHECK(__ros_log_throttle_now__, __ros_log_throttle_last_hit__, period))\
{ \
__ros_log_throttle_last_hit__ = __ros_log_throttle_now__; \
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
} \
} while(false)
#define ROS_UNLIKELY(x)
Definition: console.h:281
#define ROSCONSOLE_THROTTLE_CHECK(now, last, period)
Used internally in throttle macros to determine if a new message should be logged.
Definition: console.h:369
static Time now()

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

Parameters
levelOne of the levels specified in ros::console::levels::Level
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.
periodThe period it should actually trigger at most. If ROS time has moved backwards, it will trigger regardless.

Definition at line 454 of file console.h.

◆ ROS_UNLIKELY

#define ROS_UNLIKELY (   x)    __builtin_expect((x),0)

Definition at line 281 of file console.h.

◆ ROSCONSOLE_AUTOINIT

#define ROSCONSOLE_AUTOINIT
Value:
do \
{ \
{ \
} \
} while(false)
ROSCONSOLE_DECL void initialize()
Don&#39;t call this directly. Performs any required initialization/configuration. Happens automatically w...
Definition: rosconsole.cpp:403
#define ROS_UNLIKELY(x)
Definition: console.h:281
ROSCONSOLE_DECL bool g_initialized
Only exported because the macros need it. Do not use directly.
Definition: rosconsole.cpp:59

Initializes the rosconsole library. Usually unnecessary to call directly.

Definition at line 324 of file console.h.

◆ ROSCONSOLE_DECL

#define ROSCONSOLE_DECL

Definition at line 58 of file console.h.

◆ ROSCONSOLE_DEFAULT_NAME

#define ROSCONSOLE_DEFAULT_NAME   ROSCONSOLE_NAME_PREFIX

Definition at line 301 of file console.h.

◆ ROSCONSOLE_DEFINE_LOCATION

#define ROSCONSOLE_DEFINE_LOCATION (   cond,
  level,
  name 
)
Value:
static ::ros::console::LogLocation __rosconsole_define_location__loc = {false, false, ::ros::console::levels::Count, NULL}; /* Initialized at compile-time */ \
if (ROS_UNLIKELY(!__rosconsole_define_location__loc.initialized_)) \
{ \
initializeLogLocation(&__rosconsole_define_location__loc, name, level); \
} \
if (ROS_UNLIKELY(__rosconsole_define_location__loc.level_ != level)) \
{ \
setLogLocationLevel(&__rosconsole_define_location__loc, level); \
checkLogLocationEnabled(&__rosconsole_define_location__loc); \
} \
bool __rosconsole_define_location__enabled = __rosconsole_define_location__loc.logger_enabled_ && (cond);
#define ROS_UNLIKELY(x)
Definition: console.h:281
#define ROSCONSOLE_AUTOINIT
Initializes the rosconsole library. Usually unnecessary to call directly.
Definition: console.h:324
struct ROSCONSOLE_DECL LogLocation
Definition: console.h:165

Definition at line 333 of file console.h.

◆ ROSCONSOLE_MIN_SEVERITY

#define ROSCONSOLE_MIN_SEVERITY   ROSCONSOLE_SEVERITY_DEBUG

Define ROSCONSOLE_MIN_SEVERITY=ROSCONSOLE_SEVERITY_[DEBUG|INFO|WARN|ERROR|FATAL] in your build options to compile out anything below that severity

Definition at line 317 of file console.h.

◆ ROSCONSOLE_NAME_PREFIX

#define ROSCONSOLE_NAME_PREFIX   ROSCONSOLE_ROOT_LOGGER_NAME "." ROSCONSOLE_PACKAGE_NAME

Definition at line 300 of file console.h.

◆ ROSCONSOLE_PACKAGE_NAME

#define ROSCONSOLE_PACKAGE_NAME   "unknown_package"

Definition at line 296 of file console.h.

◆ ROSCONSOLE_PRINT_AT_LOCATION

#define ROSCONSOLE_PRINT_AT_LOCATION (   ...)    ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)

Definition at line 350 of file console.h.

◆ ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER

#define ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER (   filter,
  ... 
)    ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)

Definition at line 347 of file console.h.

◆ ROSCONSOLE_PRINT_STREAM_AT_LOCATION

#define ROSCONSOLE_PRINT_STREAM_AT_LOCATION (   args)    ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(NULL, args)

Definition at line 362 of file console.h.

◆ ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER

#define ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER (   filter,
  args 
)
Value:
do \
{ \
std::stringstream __rosconsole_print_stream_at_location_with_filter__ss__; \
__rosconsole_print_stream_at_location_with_filter__ss__ << args; \
::ros::console::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)
#define __ROSCONSOLE_FUNCTION__
Definition: console.h:289
void print(ros::console::Level level, const std::string &s)
Definition: example.cpp:38

Definition at line 354 of file console.h.

◆ ROSCONSOLE_PRINTF_ATTRIBUTE

#define ROSCONSOLE_PRINTF_ATTRIBUTE (   a,
 
)

Definition at line 68 of file console.h.

◆ ROSCONSOLE_ROOT_LOGGER_NAME

#define ROSCONSOLE_ROOT_LOGGER_NAME   "ros"

Definition at line 299 of file console.h.

◆ ROSCONSOLE_SEVERITY_DEBUG

#define ROSCONSOLE_SEVERITY_DEBUG   0

Definition at line 304 of file console.h.

◆ ROSCONSOLE_SEVERITY_ERROR

#define ROSCONSOLE_SEVERITY_ERROR   3

Definition at line 307 of file console.h.

◆ ROSCONSOLE_SEVERITY_FATAL

#define ROSCONSOLE_SEVERITY_FATAL   4

Definition at line 308 of file console.h.

◆ ROSCONSOLE_SEVERITY_INFO

#define ROSCONSOLE_SEVERITY_INFO   1

Definition at line 305 of file console.h.

◆ ROSCONSOLE_SEVERITY_NONE

#define ROSCONSOLE_SEVERITY_NONE   5

Definition at line 309 of file console.h.

◆ ROSCONSOLE_SEVERITY_WARN

#define ROSCONSOLE_SEVERITY_WARN   2

Definition at line 306 of file console.h.

◆ ROSCONSOLE_THROTTLE_CHECK

#define ROSCONSOLE_THROTTLE_CHECK (   now,
  last,
  period 
)    (ROS_UNLIKELY(last + period <= now) || ROS_UNLIKELY(now < last))

Used internally in throttle macros to determine if a new message should be logged.

Note
If ROS time has moved backwards, will evaluate to true

Definition at line 369 of file console.h.



rosconsole
Author(s): Josh Faust
autogenerated on Mon Feb 28 2022 23:30:41