18 #ifndef DIAGNOSTICS_CONVERTER_HPP
19 #define DIAGNOSTICS_CONVERTER_HPP
30 #include <diagnostic_msgs/DiagnosticArray.h>
45 typedef boost::function<void(diagnostic_msgs::DiagnosticArray&) >
Callback_t;
52 void callAll(
const std::vector<message_actions::MessageAction>& actions );
73 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
std::string name() const
Definition: converter_base.hpp:54
float frequency() const
Definition: converter_base.hpp:59
float temperature_warn_level_
Definition: diagnostics.hpp:69
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: diagnostics.hpp:73
MessageAction
Definition: message_actions.h:9
std::vector< std::string > joint_names_
Definition: diagnostics.hpp:58
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
Definition: diagnostics.cpp:272
float temperature_error_level_
Definition: diagnostics.hpp:70
std::vector< std::string > all_keys_
Definition: diagnostics.hpp:60
This class defines a Diagnostic converter It does not use the DiagnostricsUpdater for optimization...
Definition: diagnostics.hpp:42
DiagnosticsConverter(const std::string &name, float frequency, const qi::SessionPtr &session)
Definition: diagnostics.cpp:54
boost::function< void(diagnostic_msgs::DiagnosticArray &) > Callback_t
Definition: diagnostics.hpp:45
Definition: converter_base.hpp:40
void reset()
Definition: diagnostics.cpp:268
qi::AnyObject p_memory_
Definition: diagnostics.hpp:65
void callAll(const std::vector< message_actions::MessageAction > &actions)
Definition: diagnostics.cpp:89
std::vector< std::string > battery_status_keys_
Definition: diagnostics.hpp:62
qi::AnyObject p_body_temperature_
Definition: diagnostics.hpp:67