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>
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_ |
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.
typedef boost::function<void(diagnostic_msgs::DiagnosticArray&) > naoqi::converter::DiagnosticsConverter::Callback_t [private] |
Definition at line 45 of file converters/diagnostics.hpp.
naoqi::converter::DiagnosticsConverter::DiagnosticsConverter | ( | const std::string & | name, |
float | frequency, | ||
const qi::SessionPtr & | session | ||
) |
Definition at line 54 of file converters/diagnostics.cpp.
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.
Definition at line 311 of file converters/diagnostics.cpp.
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.