naoqidriver
Public Member Functions | Private Types | Private Member Functions | Private Attributes
naoqi::converter::LogConverter Class Reference

#include <log.hpp>

Inheritance diagram for naoqi::converter::LogConverter:
naoqi::converter::BaseConverter< LogConverter >

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_tcallbacks_
 

Additional Inherited Members

- Protected Attributes inherited from naoqi::converter::BaseConverter< LogConverter >
std::string name_
 
float frequency_
 
const robot::Robotrobot_
 
qi::SessionPtr session_
 
bool record_enabled_
 

Member Typedef Documentation

typedef boost::function<void(rosgraph_msgs::Log&) > naoqi::converter::LogConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::LogConverter::LogConverter ( const std::string &  name,
float  frequency,
const qi::SessionPtr &  sessions 
)

Member Function Documentation

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 ( )
void naoqi::converter::LogConverter::set_qi_logger_level ( )
private

Function that sets the NAOqi log level to the ROS one

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::LogConverter::callbacks_
private
qi::LogListenerPtr naoqi::converter::LogConverter::listener_
private
qi::LogLevel naoqi::converter::LogConverter::log_level_
private

Log level that is currently translated to ROS

qi::LogManagerPtr naoqi::converter::LogConverter::logger_
private

The documentation for this class was generated from the following files: