17 #include <ros_monitoring_msgs/MetricDimension.h> 26 md.time_stamp = md.header.stamp;
27 md.dimensions = dimensions_.dimensions;
32 const std::string & value)
34 ros_monitoring_msgs::MetricDimension dim;
37 dimensions_.dimensions.push_back(dim);
44 publisher_.publish(mlist_);
45 mlist_.metrics.clear();
virtual void AddDimension(const std::string &name, const std::string &value) overridefinal
add global dimension (applies to all metrics).
virtual MetricData CreateMetric() const overridefinal
create a metric.
virtual void Publish() overridefinal
publishes all metrics and then discards them.
virtual void AddMetric(MetricData md) overridefinal
add a metric to list of metrics to be published.