Public Member Functions | Private Attributes | List of all members
swri::TypedTimerImpl< T > Class Template Reference

#include <timer_impl.h>

Inheritance diagram for swri::TypedTimerImpl< T >:
Inheritance graph
[legend]

Public Member Functions

void handleTimer (const ros::TimerEvent &event)
 
 TypedTimerImpl (ros::NodeHandle &nh, ros::Duration period, void(T::*callback)(const ros::TimerEvent &), T *obj)
 
- Public Member Functions inherited from swri::TimerImpl
ros::Duration desiredPeriod () const
 
ros::WallDuration maxDuration () const
 
ros::Duration maxPeriod () const
 
ros::WallDuration meanDuration () const
 
double meanFrequencyHz () const
 
ros::Duration meanPeriod () const
 
ros::WallDuration minDuration () const
 
ros::Duration minPeriod () const
 
void resetStatistics ()
 
size_t ticks () const
 
 TimerImpl ()
 
virtual ~TimerImpl ()
 

Private Attributes

void(T::* callback_ )(const ros::TimerEvent &)
 
T * obj_
 

Additional Inherited Members

- Protected Member Functions inherited from swri::TimerImpl
void tickBegin ()
 
void tickEnd ()
 
- Protected Attributes inherited from swri::TimerImpl
ros::Duration desired_period_
 
ros::WallDuration max_duration_
 
ros::Duration max_period_
 
ros::WallDuration min_duration_
 
ros::Duration min_period_
 
ros::Time tick_begin_normal_
 
ros::WallTime tick_begin_wall_
 
int ticks_
 
ros::Timer timer_
 
ros::WallDuration total_durations_
 
ros::Duration total_periods_
 

Detailed Description

template<class T>
class swri::TypedTimerImpl< T >

Definition at line 181 of file timer_impl.h.

Constructor & Destructor Documentation

◆ TypedTimerImpl()

template<class T >
swri::TypedTimerImpl< T >::TypedTimerImpl ( ros::NodeHandle nh,
ros::Duration  period,
void(T::*)(const ros::TimerEvent &)  callback,
T *  obj 
)
inline

Definition at line 187 of file timer_impl.h.

Member Function Documentation

◆ handleTimer()

template<class T >
void swri::TypedTimerImpl< T >::handleTimer ( const ros::TimerEvent event)
inline

Definition at line 202 of file timer_impl.h.

Member Data Documentation

◆ callback_

template<class T >
void(T::* swri::TypedTimerImpl< T >::callback_) (const ros::TimerEvent &)
private

Definition at line 184 of file timer_impl.h.

◆ obj_

template<class T >
T* swri::TypedTimerImpl< T >::obj_
private

Definition at line 183 of file timer_impl.h.


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


swri_roscpp
Author(s): P. J. Reed
autogenerated on Fri Aug 2 2024 08:39:15