naoqidriver
|
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 | |
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_t > | callbacks_ |
Additional Inherited Members | |
Protected Attributes inherited from naoqi::converter::BaseConverter< DiagnosticsConverter > | |
std::string | name_ |
float | frequency_ |
const robot::Robot & | robot_ |
qi::SessionPtr | session_ |
bool | record_enabled_ |
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.
|
private |
naoqi::converter::DiagnosticsConverter::DiagnosticsConverter | ( | const std::string & | name, |
float | frequency, | ||
const qi::SessionPtr & | session | ||
) |
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 | ( | ) |
|
private |
all the keys to check. It is a concatenation of joint_temperatures_keys_, battery_keys_
|
private |
Keys for the battery status
|
private |
Registered Callbacks
|
private |
The names of the joints in the order given by the motion proxy
|
private |
Proxy to ALBodyTemperature
|
private |
Proxy to ALMemory
|
private |
|
private |