22 #ifndef HEARTBEATMONITOR_H 23 #define HEARTBEATMONITOR_H 25 #include <boost/thread.hpp> 26 #include <boost/shared_ptr.hpp> 32 namespace canopen_schunk{
117 #endif // HEARTBEATMONITOR_H uint16_t getHeartBeatCycleTime() const
The HeartbeatMonitor checks for missing heartbeat messages with this cycle time. If the last heartbea...
boost::function< void()> m_error_function
void workerFunction()
Thread worker function for the Heartbeat monitor. This function will regularly check for missing hear...
void stop()
stops thread execution
std::map< uint8_t, icl_core::TimeStamp > m_timestamp_record
boost::shared_ptr< HeartBeatMonitor > Ptr
Shared pointer to a HeartBeatMonitor.
void start()
starts thread execution
void addHeartbeat(const uint8_t node_id)
Incoming heartbeats will trigger this function to update the most recent heartbeat time...
void setHeartBeatCycleTime(const uint16_t heartbeat_cycle_time_ms)
The HeartbeatMonitor checks for missing heartbeat messages with this cycle time. If the last heartbea...
uint16_t m_period_time_ms
Cycle period of the monitor thread.
boost::thread m_thread
monitor thread handle
void registerErrorCallback(const boost::function< void()> &f)
This function will be called as soon as one node is missing a heartbeat message. Probably this functi...
void reset()
Resets the heartbeat monitor. This will make the monitor forget about all past heartbeats and start f...
boost::shared_ptr< const HeartBeatMonitor > ConstPtr
Shared pointer to a const HeartBeatMonitor.