#include <vital_checker_nodelet.h>
Public Member Functions | |
VitalCheckerNodelet () | |
Protected Member Functions | |
virtual void | inputCallback (const boost::shared_ptr< topic_tools::ShapeShifter const > &msg) |
virtual void | onInit () |
Initialize method. Subclass should call this method in its onInit method. | |
virtual void | subscribe () |
This method is called when publisher is subscribed by other nodes. Set up subscribers in this method. | |
virtual void | unsubscribe () |
This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method. | |
virtual void | updateDiagnostic (diagnostic_updater::DiagnosticStatusWrapper &stat) |
Method which is called periodically. | |
Protected Attributes | |
boost::mutex | mutex_ |
ros::Subscriber | sub_ |
std::string | title_ |
Definition at line 45 of file vital_checker_nodelet.h.
Definition at line 48 of file vital_checker_nodelet.h.
void jsk_topic_tools::VitalCheckerNodelet::inputCallback | ( | const boost::shared_ptr< topic_tools::ShapeShifter const > & | msg | ) | [protected, virtual] |
Definition at line 66 of file vital_checker_nodelet.cpp.
void jsk_topic_tools::VitalCheckerNodelet::onInit | ( | ) | [protected, virtual] |
Initialize method. Subclass should call this method in its onInit method.
Reimplemented from jsk_topic_tools::DiagnosticNodelet.
Definition at line 41 of file vital_checker_nodelet.cpp.
void jsk_topic_tools::VitalCheckerNodelet::subscribe | ( | ) | [protected, virtual] |
This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 56 of file vital_checker_nodelet.cpp.
void jsk_topic_tools::VitalCheckerNodelet::unsubscribe | ( | ) | [protected, virtual] |
This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 61 of file vital_checker_nodelet.cpp.
void jsk_topic_tools::VitalCheckerNodelet::updateDiagnostic | ( | diagnostic_updater::DiagnosticStatusWrapper & | stat | ) | [protected, virtual] |
Method which is called periodically.
In default, it check vitality of vital_checker_ and if vital_checker_ is not poked for seconds, diagnostic status will be ERROR.
stat | Modofy stat to change status of diagnostic information. |
Reimplemented from jsk_topic_tools::DiagnosticNodelet.
Definition at line 73 of file vital_checker_nodelet.cpp.
boost::mutex jsk_topic_tools::VitalCheckerNodelet::mutex_ [protected] |
Definition at line 65 of file vital_checker_nodelet.h.
Definition at line 63 of file vital_checker_nodelet.h.
std::string jsk_topic_tools::VitalCheckerNodelet::title_ [protected] |
Definition at line 64 of file vital_checker_nodelet.h.