Class TopicDiagnostic
Defined in File topic_diagnostic.h
Inheritance Relationships
Base Type
public cras::DiagnosedPubSub<::diagnostic_msgs::DiagnosticArray >(Template Class DiagnosedPubSub)
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 ¶ms)
-
TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr ¶ms, const ::ros::Rate &defaultRate)
-
TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr ¶ms, 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.
-
TopicDiagnostic(const ::std::string&, ::diagnostic_updater::Updater &updater, const ::cras::BoundParamHelperPtr ¶ms)