17 #ifndef URG_STAMPED_TIMESTAMP_MOVING_AVERAGE_H 18 #define URG_STAMPED_TIMESTAMP_MOVING_AVERAGE_H 37 const size_t window_size,
39 : window_size_(window_size)
43 buffer_.resize(window_size);
53 if (pos_ < window_size_)
70 #endif // URG_STAMPED_TIMESTAMP_MOVING_AVERAGE_H
ros::Time update(const ros::Time &stamp)
std::vector< ros::Time > buffer_
void setInterval(const ros::Duration &interval)
TimestampMovingAverage(const size_t window_size, const ros::Duration &interval)