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

This class defines a Diagnostic converter It does not use the DiagnostricsUpdater for optimization. A full diagnostic_msgs/DiagnosticArray is built and sent to requesting nodes. More...

#include <diagnostics.hpp>

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

Public Member Functions

 DiagnosticsConverter (const std::string &name, float frequency, const qi::SessionPtr &session)
 
void reset ()
 
void callAll (const std::vector< message_actions::MessageAction > &actions)
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< DiagnosticsConverter >
 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(diagnostic_msgs::DiagnosticArray &) > Callback_t
 

Private Attributes

std::vector< std::string > joint_names_
 
std::vector< std::string > all_keys_
 
std::vector< std::string > battery_status_keys_
 
qi::AnyObject p_memory_
 
qi::AnyObject p_body_temperature_
 
float temperature_warn_level_
 
float temperature_error_level_
 
std::map< message_actions::MessageAction, Callback_tcallbacks_
 

Additional Inherited Members

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

Detailed Description

This class defines a Diagnostic converter It does not use the DiagnostricsUpdater for optimization. A full diagnostic_msgs/DiagnosticArray is built and sent to requesting nodes.

Member Typedef Documentation

typedef boost::function<void(diagnostic_msgs::DiagnosticArray&) > naoqi::converter::DiagnosticsConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::DiagnosticsConverter::DiagnosticsConverter ( const std::string &  name,
float  frequency,
const qi::SessionPtr &  session 
)

Member Function Documentation

void naoqi::converter::DiagnosticsConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
void naoqi::converter::DiagnosticsConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::DiagnosticsConverter::reset ( )

Field Documentation

std::vector<std::string> naoqi::converter::DiagnosticsConverter::all_keys_
private

all the keys to check. It is a concatenation of joint_temperatures_keys_, battery_keys_

std::vector<std::string> naoqi::converter::DiagnosticsConverter::battery_status_keys_
private

Keys for the battery status

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::DiagnosticsConverter::callbacks_
private

Registered Callbacks

std::vector<std::string> naoqi::converter::DiagnosticsConverter::joint_names_
private

The names of the joints in the order given by the motion proxy

qi::AnyObject naoqi::converter::DiagnosticsConverter::p_body_temperature_
private

Proxy to ALBodyTemperature

qi::AnyObject naoqi::converter::DiagnosticsConverter::p_memory_
private

Proxy to ALMemory

float naoqi::converter::DiagnosticsConverter::temperature_error_level_
private
float naoqi::converter::DiagnosticsConverter::temperature_warn_level_
private

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