#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::Time > | buffer_ |
ros::Duration | interval_ |
size_t | pos_ |
size_t | window_size_ |
Definition at line 25 of file timestamp_moving_average.h.
TimestampMovingAverage::TimestampMovingAverage | ( | const size_t | window_size, |
const ros::Duration & | interval | ||
) | [inline] |
Definition at line 34 of file timestamp_moving_average.h.
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.
std::vector<ros::Time> TimestampMovingAverage::buffer_ [protected] |
Definition at line 30 of file timestamp_moving_average.h.
ros::Duration TimestampMovingAverage::interval_ [protected] |
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.
size_t TimestampMovingAverage::window_size_ [protected] |
Definition at line 28 of file timestamp_moving_average.h.