34 const std::vector<MetricCollectorInterface *> & c)
void operator()(const ros::TimerEvent &event)
activates all collectors and then publishes the metrics.
Interface for MetricManager.
virtual void Publish()=0
publishes all metrics and then discards them.
const std::vector< MetricCollectorInterface * > & collectors_
ros_monitoring_msgs::MetricManagerInterface & mg_
CollectAndPublish(ros_monitoring_msgs::MetricManagerInterface &mg, const std::vector< MetricCollectorInterface * > &c)
Constructor.
activates collectors and then publishes metrics.