Public Member Functions | Private Attributes | List of all members
OneShotTimer Class Reference

Horrible hack until ROS Supports this (ROS Trac #1387) More...

#include <one_shot_timer.h>

Public Member Functions

void cb (const ros::TimerEvent &e)
 
boost::function< void(const ros::TimerEvent &e)> getCb ()
 
 OneShotTimer ()
 
const ros::Timeroperator= (const ros::Timer &rhs)
 
void registerOneShotCb (boost::function< void(const ros::TimerEvent &e)> callback)
 
void stop ()
 

Private Attributes

bool active_
 
boost::function< void(const ros::TimerEvent &e)> callback_
 
ros::Timer timer_
 

Detailed Description

Horrible hack until ROS Supports this (ROS Trac #1387)

Definition at line 42 of file one_shot_timer.h.

Constructor & Destructor Documentation

◆ OneShotTimer()

OneShotTimer::OneShotTimer ( )
inline

Definition at line 77 of file one_shot_timer.h.

Member Function Documentation

◆ cb()

void OneShotTimer::cb ( const ros::TimerEvent e)
inline

Definition at line 80 of file one_shot_timer.h.

◆ getCb()

boost::function<void(const ros::TimerEvent & e)> OneShotTimer::getCb ( )
inline

Definition at line 93 of file one_shot_timer.h.

◆ operator=()

const ros::Timer& OneShotTimer::operator= ( const ros::Timer rhs)
inline

Definition at line 109 of file one_shot_timer.h.

◆ registerOneShotCb()

void OneShotTimer::registerOneShotCb ( boost::function< void(const ros::TimerEvent &e)>  callback)
inline

Definition at line 98 of file one_shot_timer.h.

◆ stop()

void OneShotTimer::stop ( )
inline

Definition at line 103 of file one_shot_timer.h.

Member Data Documentation

◆ active_

bool OneShotTimer::active_
private

Definition at line 118 of file one_shot_timer.h.

◆ callback_

boost::function<void(const ros::TimerEvent & e)> OneShotTimer::callback_
private

Definition at line 119 of file one_shot_timer.h.

◆ timer_

ros::Timer OneShotTimer::timer_
private

Definition at line 117 of file one_shot_timer.h.


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


actionlib
Author(s): Eitan Marder-Eppstein, Vijay Pradeep, Mikael Arguedas
autogenerated on Fri May 19 2023 02:36:55