From 8b81e574dd8c91717469822c3b80b9e54523c564 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Fourmy?= <mfourmy@laas.fr>
Date: Mon, 1 Jul 2019 12:45:33 +0200
Subject: [PATCH] Replaced empty list assert statements by clearing the
 corresponding lists

---
 src/processor/processor_tracker_landmark.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/processor/processor_tracker_landmark.cpp b/src/processor/processor_tracker_landmark.cpp
index 0d7c50c2a..5de2da809 100644
--- a/src/processor/processor_tracker_landmark.cpp
+++ b/src/processor/processor_tracker_landmark.cpp
@@ -73,10 +73,10 @@ unsigned int ProcessorTrackerLandmark::processNew(const int& _max_features)
      * When done, we need to find these new Landmarks in the incoming Capture.
      */
 
-    // assuming cleared new lists
-    assert(new_features_last_.empty());
-    assert(new_features_incoming_.empty());
-    assert(new_landmarks_.empty());
+    // new lists cleared
+	new_features_last_.clear();
+    new_features_incoming_.clear();
+    new_landmarks_.clear();
 
     // We first need to populate the \b last Capture with new Features
     unsigned int n = detectNewFeatures(_max_features,
-- 
GitLab