#include <hpp/centroidal-dynamics/logger.hh>
A simple class for logging messages
◆ Logger()
centroidal_dynamics::Logger::Logger |
( |
double |
timeSample = 0.001 , |
|
|
double |
streamPrintPeriod = 1.0 |
|
) |
| |
◆ ~Logger()
centroidal_dynamics::Logger::~Logger |
( |
| ) |
|
|
inline |
◆ countdown()
void centroidal_dynamics::Logger::countdown |
( |
| ) |
|
Method to be called at every control iteration to decrement the internal Logger's counter.
◆ isDebugMsg()
bool centroidal_dynamics::Logger::isDebugMsg |
( |
MsgType |
m | ) |
|
|
inlineprotected |
◆ isErrorMsg()
bool centroidal_dynamics::Logger::isErrorMsg |
( |
MsgType |
m | ) |
|
|
inlineprotected |
◆ isInfoMsg()
bool centroidal_dynamics::Logger::isInfoMsg |
( |
MsgType |
m | ) |
|
|
inlineprotected |
◆ isStreamMsg()
bool centroidal_dynamics::Logger::isStreamMsg |
( |
MsgType |
m | ) |
|
|
inlineprotected |
◆ isWarningMsg()
bool centroidal_dynamics::Logger::isWarningMsg |
( |
MsgType |
m | ) |
|
|
inlineprotected |
◆ sendMsg()
void centroidal_dynamics::Logger::sendMsg |
( |
std::string |
msg, |
|
|
MsgType |
type, |
|
|
const char * |
file = "" , |
|
|
int |
line = 0 |
|
) |
| |
Print the specified message on standard output if the verbosity level allows it. The file name and the line number are used to identify the point where sendMsg is called so that streaming messages are printed only every streamPrintPeriod iterations.
◆ setStreamPrintPeriod()
bool centroidal_dynamics::Logger::setStreamPrintPeriod |
( |
double |
s | ) |
|
Set the time period for printing of streaming messages.
◆ setTimeSample()
bool centroidal_dynamics::Logger::setTimeSample |
( |
double |
t | ) |
|
Set the sampling time at which the method countdown() is going to be called.
◆ setVerbosity()
void centroidal_dynamics::Logger::setVerbosity |
( |
LoggerVerbosity |
lv | ) |
|
Set the verbosity level of the logger.
◆ m_lv
LoggerVerbosity centroidal_dynamics::Logger::m_lv |
|
protected |
◆ m_printCountdown
double centroidal_dynamics::Logger::m_printCountdown |
|
protected |
specify the time period of the stream prints
◆ m_stream_msg_counters
std::map<std::string, double> centroidal_dynamics::Logger::m_stream_msg_counters |
|
protected |
every time this is < 0 (i.e. every _streamPrintPeriod sec) print stuff
Pointer to the dynamic structure which holds the collection of streaming messages
◆ m_streamPrintPeriod
double centroidal_dynamics::Logger::m_streamPrintPeriod |
|
protected |
specify the period of call of the countdown method
◆ m_timeSample
double centroidal_dynamics::Logger::m_timeSample |
|
protected |
The documentation for this class was generated from the following files: