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