Public Member Functions | Protected Attributes | List of all members
urg_stamped::TimestampMovingAverage Class Reference

#include <timestamp_moving_average.h>

Public Member Functions

void reset ()
 
void setInterval (const ros::Duration &interval)
 
 TimestampMovingAverage (const size_t window_size, const ros::Duration &interval)
 
ros::Time update (const ros::Time &stamp)
 

Protected Attributes

std::vector< ros::Timebuffer_
 
ros::Duration interval_
 
size_t pos_
 
size_t window_size_
 

Detailed Description

Definition at line 27 of file timestamp_moving_average.h.

Constructor & Destructor Documentation

urg_stamped::TimestampMovingAverage::TimestampMovingAverage ( const size_t  window_size,
const ros::Duration interval 
)
inline

Definition at line 36 of file timestamp_moving_average.h.

Member Function Documentation

void urg_stamped::TimestampMovingAverage::reset ( )
inline

Definition at line 63 of file timestamp_moving_average.h.

void urg_stamped::TimestampMovingAverage::setInterval ( const ros::Duration interval)
inline

Definition at line 45 of file timestamp_moving_average.h.

ros::Time urg_stamped::TimestampMovingAverage::update ( const ros::Time stamp)
inline

Definition at line 49 of file timestamp_moving_average.h.

Member Data Documentation

std::vector<ros::Time> urg_stamped::TimestampMovingAverage::buffer_
protected

Definition at line 32 of file timestamp_moving_average.h.

ros::Duration urg_stamped::TimestampMovingAverage::interval_
protected

Definition at line 31 of file timestamp_moving_average.h.

size_t urg_stamped::TimestampMovingAverage::pos_
protected

Definition at line 33 of file timestamp_moving_average.h.

size_t urg_stamped::TimestampMovingAverage::window_size_
protected

Definition at line 30 of file timestamp_moving_average.h.


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


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Tue May 11 2021 02:14:05