43 if (
_buffer.rbegin()->first < timestamp)
44 return _buffer.rbegin()->second;
45 if (
_buffer.begin()->first > timestamp)
48 Buffer::const_iterator ub =
_buffer.upper_bound(timestamp);
49 Buffer::const_iterator lb = ub;
51 if (fabs(lb->first - timestamp) < fabs(ub->first - timestamp))
61 Buffer::const_iterator lb =
_buffer.upper_bound(timestamp);
70 Buffer::const_iterator ub =
_buffer.upper_bound(timestamp);
RobotData * before(double timestamp) const
RobotData * after(double timestamp) const
RobotData * findClosestData(double timestamp) const
data recorded by the robot