#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 () |
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_ |
Definition at line 34 of file converters/log.hpp.
typedef boost::function<void(rosgraph_msgs::Log&) > naoqi::converter::LogConverter::Callback_t [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.
Definition at line 152 of file converters/log.cpp.
void naoqi::converter::LogConverter::set_qi_logger_level | ( | ) | [private] |
Function that sets the NAOqi log level to the ROS one
Definition at line 156 of file converters/log.cpp.
std::map<message_actions::MessageAction, Callback_t> naoqi::converter::LogConverter::callbacks_ [private] |
Definition at line 57 of file converters/log.hpp.
qi::LogListenerPtr naoqi::converter::LogConverter::listener_ [private] |
Definition at line 55 of file converters/log.hpp.
qi::LogLevel naoqi::converter::LogConverter::log_level_ [private] |
Log level that is currently translated to ROS
Definition at line 54 of file converters/log.hpp.
qi::LogManagerPtr naoqi::converter::LogConverter::logger_ [private] |
Definition at line 52 of file converters/log.hpp.