Public Member Functions | Public Attributes | List of all members
SteadyTimerHelper Class Reference

Public Member Functions

void callback (const SteadyTimerEvent &e)
 
void pretendWork (const float t)
 
void setPeriod (const WallDuration p, bool reset=false)
 
 SteadyTimerHelper (float period, bool oneshot=false)
 

Public Attributes

int calls_before_testing_period_
 
WallDuration expected_period_
 
bool failed_
 
SteadyTime last_call_
 
bool testing_period_
 
SteadyTimer timer_
 
int32_t total_calls_
 

Detailed Description

Definition at line 60 of file timer_callbacks.cpp.

Constructor & Destructor Documentation

SteadyTimerHelper::SteadyTimerHelper ( float  period,
bool  oneshot = false 
)
inline

Definition at line 63 of file timer_callbacks.cpp.

Member Function Documentation

void SteadyTimerHelper::callback ( const SteadyTimerEvent e)
inline

Definition at line 74 of file timer_callbacks.cpp.

void SteadyTimerHelper::pretendWork ( const float  t)
inline

Definition at line 137 of file timer_callbacks.cpp.

void SteadyTimerHelper::setPeriod ( const WallDuration  p,
bool  reset = false 
)
inline

Definition at line 130 of file timer_callbacks.cpp.

Member Data Documentation

int SteadyTimerHelper::calls_before_testing_period_

Definition at line 152 of file timer_callbacks.cpp.

WallDuration SteadyTimerHelper::expected_period_

Definition at line 144 of file timer_callbacks.cpp.

bool SteadyTimerHelper::failed_

Definition at line 146 of file timer_callbacks.cpp.

SteadyTime SteadyTimerHelper::last_call_

Definition at line 143 of file timer_callbacks.cpp.

bool SteadyTimerHelper::testing_period_

Definition at line 151 of file timer_callbacks.cpp.

SteadyTimer SteadyTimerHelper::timer_

Definition at line 148 of file timer_callbacks.cpp.

int32_t SteadyTimerHelper::total_calls_

Definition at line 149 of file timer_callbacks.cpp.


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


test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:46