6 boost::mutex::scoped_lock lock(
lock_);
8 using diagnostic_msgs::DiagnosticStatus;
15 stat.
summary(status,
"No data since last update.");
17 stat.
add(
"Earliest timestamp delay",
"No data");
18 stat.
add(
"Latest timestamp delay",
"No data");
void summary(unsigned char lvl, const std::string s)
Fills out the level and message fields of the DiagnosticStatus.
virtual void run(diagnostic_updater::DiagnosticStatusWrapper &stat)
Fills out this Task's DiagnosticStatusWrapper.
void addf(const std::string &key, const char *format,...)
Add a key-value pair using a format string.
double max_acceptable_
Maximum acceptable difference between two timestamps.
double min_acceptable_
Minimum acceptable difference between two timestamps.
TimeStampStatusParam params_
void add(const std::string &key, const T &val)
Add a key-value pair.
Wrapper for the diagnostic_msgs::DiagnosticStatus message that makes it easier to update...