Skip to content
Snippets Groups Projects
Commit a08ccfc2 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

ProcessorMotion::keyFrameCallback for time tolerance

parent 7553ba1b
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
...@@ -250,6 +250,16 @@ bool ProcessorMotion::keyFrameCallback(FrameBasePtr _new_keyframe, const Scalar& ...@@ -250,6 +250,16 @@ bool ProcessorMotion::keyFrameCallback(FrameBasePtr _new_keyframe, const Scalar&
assert(existing_capture != nullptr assert(existing_capture != nullptr
&& "ProcessorMotion::keyFrameCallback: no motion capture containing the required TimeStamp found"); && "ProcessorMotion::keyFrameCallback: no motion capture containing the required TimeStamp found");
// If the difference between the found capture time-stamp and the new capture time-stamp
// is greater than the time tolerance, abort.
if (std::abs(new_ts - existing_capture->getTimeStamp()) > _time_tol_other)
{
WOLF_DEBUG("Not joinning the key-frame due to time tol : ",
std::abs(new_ts - existing_capture->getTimeStamp()),
" > ", _time_tol_other);
return false;
}
// Find the frame acting as the capture's origin // Find the frame acting as the capture's origin
FrameBasePtr new_keyframe_origin = existing_capture->getOriginFramePtr(); FrameBasePtr new_keyframe_origin = existing_capture->getOriginFramePtr();
......
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