Public Types | Public Member Functions | Protected Attributes | List of all members
jsk_topic_tools::VitalChecker Class Reference

#include <vital_checker.h>

Public Types

typedef boost::shared_ptr< VitalCheckerPtr
 

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_
 

Detailed Description

Definition at line 55 of file vital_checker.h.

Member Typedef Documentation

Definition at line 58 of file vital_checker.h.

Constructor & Destructor Documentation

jsk_topic_tools::VitalChecker::VitalChecker ( const double  dead_sec)

Definition at line 40 of file vital_checker.cpp.

jsk_topic_tools::VitalChecker::~VitalChecker ( )
virtual

Definition at line 46 of file vital_checker.cpp.

Member Function Documentation

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.

Member Data Documentation

double jsk_topic_tools::VitalChecker::dead_sec_
protected

Definition at line 69 of file vital_checker.h.

ros::Time jsk_topic_tools::VitalChecker::last_alive_time_
protected

Definition at line 68 of file vital_checker.h.

boost::mutex jsk_topic_tools::VitalChecker::mutex_
protected

Definition at line 70 of file vital_checker.h.


The documentation for this class was generated from the following files:


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Tue Feb 6 2018 03:45:19