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::SteadyTimerHelper ( float  period,
bool  oneshot = false 
)
inline

Definition at line 63 of file timer_callbacks.cpp.

Member Function Documentation

◆ callback()

void SteadyTimerHelper::callback ( const SteadyTimerEvent e)
inline

Definition at line 74 of file timer_callbacks.cpp.

◆ pretendWork()

void SteadyTimerHelper::pretendWork ( const float  t)
inline

Definition at line 138 of file timer_callbacks.cpp.

◆ setPeriod()

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

Definition at line 131 of file timer_callbacks.cpp.

Member Data Documentation

◆ calls_before_testing_period_

int SteadyTimerHelper::calls_before_testing_period_

Definition at line 153 of file timer_callbacks.cpp.

◆ expected_period_

WallDuration SteadyTimerHelper::expected_period_

Definition at line 145 of file timer_callbacks.cpp.

◆ failed_

bool SteadyTimerHelper::failed_

Definition at line 147 of file timer_callbacks.cpp.

◆ last_call_

SteadyTime SteadyTimerHelper::last_call_

Definition at line 144 of file timer_callbacks.cpp.

◆ testing_period_

bool SteadyTimerHelper::testing_period_

Definition at line 152 of file timer_callbacks.cpp.

◆ timer_

SteadyTimer SteadyTimerHelper::timer_

Definition at line 149 of file timer_callbacks.cpp.

◆ total_calls_

int32_t SteadyTimerHelper::total_calls_

Definition at line 150 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 , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:57