Public Member Functions | Protected Attributes
TimestampMovingAverage Class Reference

#include <timestamp_moving_average.h>

List of all members.

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 25 of file timestamp_moving_average.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file timestamp_moving_average.h.


Member Function Documentation

void TimestampMovingAverage::reset ( ) [inline]

Definition at line 61 of file timestamp_moving_average.h.

void TimestampMovingAverage::setInterval ( const ros::Duration interval) [inline]

Definition at line 43 of file timestamp_moving_average.h.

ros::Time TimestampMovingAverage::update ( const ros::Time stamp) [inline]

Definition at line 47 of file timestamp_moving_average.h.


Member Data Documentation

std::vector<ros::Time> TimestampMovingAverage::buffer_ [protected]

Definition at line 30 of file timestamp_moving_average.h.

Definition at line 29 of file timestamp_moving_average.h.

size_t TimestampMovingAverage::pos_ [protected]

Definition at line 31 of file timestamp_moving_average.h.

Definition at line 28 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 Thu Jun 6 2019 18:59:52