Public Member Functions | Private Types | Private Attributes | List of all members
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:
Inheritance graph
[legend]

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

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

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.

Definition at line 42 of file converters/diagnostics.hpp.

Member Typedef Documentation

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

Definition at line 45 of file converters/diagnostics.hpp.

Constructor & Destructor Documentation

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

Definition at line 54 of file converters/diagnostics.cpp.

Member Function Documentation

void naoqi::converter::DiagnosticsConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)

Definition at line 129 of file converters/diagnostics.cpp.

void naoqi::converter::DiagnosticsConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)

Definition at line 315 of file converters/diagnostics.cpp.

void naoqi::converter::DiagnosticsConverter::reset ( )

Definition at line 311 of file converters/diagnostics.cpp.

Member Data 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_

Definition at line 60 of file converters/diagnostics.hpp.

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

Keys for the battery status

Definition at line 62 of file converters/diagnostics.hpp.

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

Registered Callbacks

Definition at line 76 of file converters/diagnostics.hpp.

std::map<std::string, std::vector<double> > naoqi::converter::DiagnosticsConverter::joint_limit_map_
private

Map storing the joints informations

Definition at line 64 of file converters/diagnostics.hpp.

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

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

Definition at line 58 of file converters/diagnostics.hpp.

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

Proxy to ALBodyTemperature

Definition at line 70 of file converters/diagnostics.hpp.

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

Proxy to ALMemory

Definition at line 66 of file converters/diagnostics.hpp.

qi::AnyObject naoqi::converter::DiagnosticsConverter::p_motion_
private

Proxy to ALMotion

Definition at line 68 of file converters/diagnostics.hpp.

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

Definition at line 73 of file converters/diagnostics.hpp.

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

Definition at line 72 of file converters/diagnostics.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