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:
Inheritance graph
[legend]

List of all members.

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 ()

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_t
callbacks_
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_

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

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

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

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.

Keys for the battery status

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

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.

Proxy to ALBodyTemperature

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

Proxy to ALMemory

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

Proxy to ALMotion

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

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

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 Tue Jul 9 2019 03:21:56