Class TopicDiagnostic

Inheritance Relationships

Base Type

Class Documentation

class TopicDiagnostic : public cras::DiagnosedPubSub<::diagnostic_msgs::DiagnosticArray>

A structure that allows adding topic diagnostics to an updater.

Public Functions

TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr &params)
TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr &params, const ::ros::Rate &defaultRate)
TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr &params, const ::ros::Rate &defaultRate, const ::ros::Rate &defaultMinRate, const ::ros::Rate &defaultMaxRate)
void tick(const ::ros::Time &stamp)

Record a message published at the given time.

Parameters:

stamp[in] Timestamp of the message.

::std::string getName() const

Get the name of the diagnostic task.

Returns:

Name of the diagnostic task.