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

Move the insertion of motionZero from MotionBuffer to ProcessorMotion

parent 46db3bfd
No related branches found
No related tags found
1 merge request!315Resolve "Remove all methods `ProcessorMotion::interpolate(...)`"
......@@ -61,6 +61,8 @@ void ProcessorMotion::splitBuffer(const wolf::CaptureMotionPtr& _capture_source,
// // add to old buffer
// _capture_target->getBuffer().get().push_back(motion_interpolated);
// }
// start with empty motion
_capture_source->getBuffer().get().push_front(motionZero(_keyframe_target->getTimeStamp()));
// Update the existing capture
_capture_source->setOriginFrame(_keyframe_target);
......@@ -407,9 +409,9 @@ void ProcessorMotion::integrateOneStep()
void ProcessorMotion::reintegrateBuffer(CaptureMotionPtr _capture_ptr)
{
// start with empty motion
_capture_ptr->getBuffer().get().push_front(motionZero(_capture_ptr->getOriginFrame()->getTimeStamp()));
// // start with empty motion
// _capture_ptr->getBuffer().get().push_front(motionZero(_capture_ptr->getOriginFrame()->getTimeStamp()));
//
VectorXs calib = _capture_ptr->getCalibrationPreint();
// Iterate all the buffer
......
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