From 9cd3ed4d0cdf4b0ae851062e2f44c183837c5a18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Mon, 4 Feb 2019 14:15:07 +0100
Subject: [PATCH] Bug in computeProcessingStep()

---
 src/processor_motion.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/processor_motion.cpp b/src/processor_motion.cpp
index 450cd9d8c..727095bd7 100644
--- a/src/processor_motion.cpp
+++ b/src/processor_motion.cpp
@@ -596,7 +596,7 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep()
             //            throw std::runtime_error("Pack's KF and origin's KF have matching time stamps (i.e. below time tolerances)");
             processing_step_ = RUNNING_WITH_PACK_ON_ORIGIN;
         }
-        else if (pack->key_frame->getTimeStamp() < origin_ptr_->getTimeStamp() - params_motion_->time_tolerance)
+        else if (pack->key_frame->getTimeStamp() < origin_ptr_->getTimeStamp())
             processing_step_ = RUNNING_WITH_PACK_BEFORE_ORIGIN;
 
         else
-- 
GitLab