#include <vital_checker.h>
Public Types | |
typedef boost::shared_ptr< VitalChecker > | Ptr |
Public Member Functions | |
double | deadSec () |
bool | isAlive () |
double | lastAliveTimeRelative () |
void | poke () |
void | registerStatInfo (diagnostic_updater::DiagnosticStatusWrapper &stat, const std::string &prefix=std::string("last_poked_time")) |
VitalChecker (const double dead_sec) | |
virtual | ~VitalChecker () |
Protected Attributes | |
double | dead_sec_ |
ros::Time | last_alive_time_ |
boost::mutex | mutex_ |
Definition at line 55 of file vital_checker.h.
Definition at line 58 of file vital_checker.h.
jsk_topic_tools::VitalChecker::VitalChecker | ( | const double | dead_sec | ) |
Definition at line 40 of file vital_checker.cpp.
|
virtual |
Definition at line 46 of file vital_checker.cpp.
double jsk_topic_tools::VitalChecker::deadSec | ( | ) |
Definition at line 72 of file vital_checker.cpp.
bool jsk_topic_tools::VitalChecker::isAlive | ( | ) |
Definition at line 62 of file vital_checker.cpp.
double jsk_topic_tools::VitalChecker::lastAliveTimeRelative | ( | ) |
Definition at line 57 of file vital_checker.cpp.
void jsk_topic_tools::VitalChecker::poke | ( | ) |
Definition at line 51 of file vital_checker.cpp.
void jsk_topic_tools::VitalChecker::registerStatInfo | ( | diagnostic_updater::DiagnosticStatusWrapper & | stat, |
const std::string & | prefix = std::string("last_poked_time") |
||
) |
Definition at line 77 of file vital_checker.cpp.
|
protected |
Definition at line 69 of file vital_checker.h.
|
protected |
Definition at line 68 of file vital_checker.h.
|
protected |
Definition at line 70 of file vital_checker.h.