#include <log.hpp>
Public Member Functions | |
void | callAll (const std::vector< message_actions::MessageAction > &actions) |
LogConverter (const std::string &name, float frequency, const qi::SessionPtr &sessions) | |
void | registerCallback (const message_actions::MessageAction action, Callback_t cb) |
void | reset () |
Public Member Functions inherited from naoqi::converter::BaseConverter< LogConverter > | |
BaseConverter (const std::string &name, float frequency, qi::SessionPtr session) | |
float | frequency () const |
std::string | name () const |
virtual | ~BaseConverter () |
Private Types | |
typedef boost::function< void(rosgraph_msgs::Log &) > | Callback_t |
Private Member Functions | |
void | set_qi_logger_level () |
Private Attributes | |
std::map< message_actions::MessageAction, Callback_t > | callbacks_ |
qi::LogListenerPtr | listener_ |
qi::LogLevel | log_level_ |
qi::LogManagerPtr | logger_ |
Additional Inherited Members | |
Protected Attributes inherited from naoqi::converter::BaseConverter< LogConverter > | |
float | frequency_ |
std::string | name_ |
bool | record_enabled_ |
const robot::Robot & | robot_ |
qi::SessionPtr | session_ |
Definition at line 34 of file converters/log.hpp.
|
private |
Definition at line 37 of file converters/log.hpp.
naoqi::converter::LogConverter::LogConverter | ( | const std::string & | name, |
float | frequency, | ||
const qi::SessionPtr & | sessions | ||
) |
Definition at line 110 of file converters/log.cpp.
void naoqi::converter::LogConverter::callAll | ( | const std::vector< message_actions::MessageAction > & | actions | ) |
Definition at line 135 of file converters/log.cpp.
void naoqi::converter::LogConverter::registerCallback | ( | const message_actions::MessageAction | action, |
Callback_t | cb | ||
) |
Definition at line 130 of file converters/log.cpp.
void naoqi::converter::LogConverter::reset | ( | ) |
Definition at line 152 of file converters/log.cpp.
|
private |
Function that sets the NAOqi log level to the ROS one
Definition at line 156 of file converters/log.cpp.
|
private |
Definition at line 57 of file converters/log.hpp.
|
private |
Definition at line 55 of file converters/log.hpp.
|
private |
Log level that is currently translated to ROS
Definition at line 54 of file converters/log.hpp.
|
private |
Definition at line 52 of file converters/log.hpp.