diagnostics_publisher.h
Go to the documentation of this file.
1 // Publishes diagnostic_msgs/DiagnosticArray
2 // Authors: Adrien Barral, Max Schwarz
3 
4 #ifndef ROSMON_DIAGNOSTIC_PUBLISHER_H
5 #define ROSMON_DIAGNOSTIC_PUBLISHER_H
6 
7 #include "monitor/node_monitor.h"
8 
9 #include <rosmon_msgs/State.h>
10 #include <ros/publisher.h>
11 
12 namespace rosmon
13 {
14 
16 {
17 public:
18  explicit DiagnosticsPublisher(const std::string& diagnosticsPrefix);
19  void publish(const std::vector<rosmon::monitor::NodeMonitor::Ptr>& state);
20 
21 protected:
22  std::string m_diagnosticNamePrefix = "rosmon";
24 };
25 
26 }
27 
28 #endif
state
Definition: basic.py:139
DiagnosticsPublisher(const std::string &diagnosticsPrefix)
void publish(const std::vector< rosmon::monitor::NodeMonitor::Ptr > &state)


rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Jul 10 2019 03:10:12