Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
naoqi::converter::LogConverter Class Reference

#include <log.hpp>

Inheritance diagram for naoqi::converter::LogConverter:
Inheritance graph
[legend]

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_tcallbacks_
 
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::Robotrobot_
 
qi::SessionPtr session_
 

Detailed Description

Definition at line 34 of file converters/log.hpp.

Member Typedef Documentation

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

Definition at line 37 of file converters/log.hpp.

Constructor & Destructor Documentation

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

Definition at line 110 of file converters/log.cpp.

Member Function Documentation

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.

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.

Member Data Documentation

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.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 15 2020 03:24:26