Skip to content
Snippets Groups Projects
Commit 06f31603 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Ensure motion buffer is empty after construction

parent 8d3cb03f
No related branches found
No related tags found
1 merge request!157Kfpackmanager
...@@ -41,7 +41,7 @@ CaptureMotion::CaptureMotion(const TimeStamp& _ts, ...@@ -41,7 +41,7 @@ CaptureMotion::CaptureMotion(const TimeStamp& _ts,
buffer_(_data.size(), _delta_size, _delta_cov_size, computeCalibSize()), buffer_(_data.size(), _delta_size, _delta_cov_size, computeCalibSize()),
origin_frame_ptr_(_origin_frame_ptr) origin_frame_ptr_(_origin_frame_ptr)
{ {
// TODO put something in the buffer to start! //
} }
......
...@@ -73,6 +73,7 @@ MotionBuffer::MotionBuffer(Size _data_size, ...@@ -73,6 +73,7 @@ MotionBuffer::MotionBuffer(Size _data_size,
calib_size_(_calib_size), calib_size_(_calib_size),
calib_preint_(_calib_size) calib_preint_(_calib_size)
{ {
container_.clear();
} }
const Motion& MotionBuffer::getMotion(const TimeStamp& _ts) const const Motion& MotionBuffer::getMotion(const TimeStamp& _ts) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment