Public Member Functions | Private Member Functions | Private Attributes | List of all members
bond::Timeout Class Reference

#include <timeout.h>

Public Member Functions

void cancel ()
 
ros::WallDuration left ()
 
void reset ()
 
void setDuration (const ros::Duration &d)
 
void setDuration (const ros::WallDuration &d)
 
 Timeout (const ros::Duration &d, boost::function< void(void)> on_timeout=boost::function< void(void)>())
 
 Timeout (const ros::WallDuration &d, boost::function< void(void)> on_timeout=boost::function< void(void)>())
 
 ~Timeout ()
 

Private Member Functions

void timerCallback (const ros::SteadyTimerEvent &e)
 

Private Attributes

ros::SteadyTime deadline_
 
ros::WallDuration duration_
 
ros::NodeHandle nh_
 
boost::function< void(void)> on_timeout_
 
ros::SteadyTimer timer_
 

Detailed Description

Definition at line 37 of file timeout.h.

Constructor & Destructor Documentation

◆ Timeout() [1/2]

bond::Timeout::Timeout ( const ros::Duration d,
boost::function< void(void)>  on_timeout = boost::function<void(void)>() 
)

Definition at line 36 of file timeout.cpp.

◆ Timeout() [2/2]

bond::Timeout::Timeout ( const ros::WallDuration d,
boost::function< void(void)>  on_timeout = boost::function<void(void)>() 
)

Definition at line 42 of file timeout.cpp.

◆ ~Timeout()

bond::Timeout::~Timeout ( )

Definition at line 48 of file timeout.cpp.

Member Function Documentation

◆ cancel()

void bond::Timeout::cancel ( )

Definition at line 71 of file timeout.cpp.

◆ left()

ros::WallDuration bond::Timeout::left ( )

Definition at line 76 of file timeout.cpp.

◆ reset()

void bond::Timeout::reset ( )

Definition at line 64 of file timeout.cpp.

◆ setDuration() [1/2]

void bond::Timeout::setDuration ( const ros::Duration d)

Definition at line 53 of file timeout.cpp.

◆ setDuration() [2/2]

void bond::Timeout::setDuration ( const ros::WallDuration d)

Definition at line 58 of file timeout.cpp.

◆ timerCallback()

void bond::Timeout::timerCallback ( const ros::SteadyTimerEvent e)
private

Definition at line 81 of file timeout.cpp.

Member Data Documentation

◆ deadline_

ros::SteadyTime bond::Timeout::deadline_
private

Definition at line 59 of file timeout.h.

◆ duration_

ros::WallDuration bond::Timeout::duration_
private

Definition at line 60 of file timeout.h.

◆ nh_

ros::NodeHandle bond::Timeout::nh_
private

Definition at line 57 of file timeout.h.

◆ on_timeout_

boost::function<void(void)> bond::Timeout::on_timeout_
private

Definition at line 61 of file timeout.h.

◆ timer_

ros::SteadyTimer bond::Timeout::timer_
private

Definition at line 58 of file timeout.h.


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


bondcpp
Author(s): Stuart Glaser
autogenerated on Mon Feb 28 2022 21:58:34