Skip to content
Snippets Groups Projects
Commit 8b81e574 authored by Médéric Fourmy's avatar Médéric Fourmy
Browse files

Replaced empty list assert statements by clearing the corresponding lists

parent 267e72f0
No related branches found
No related tags found
1 merge request!297`ProcessorTrackerLandmark::processNew: Replaced empty list assert statements by clearing the corresponding lists
Pipeline #3840 passed
...@@ -73,10 +73,10 @@ unsigned int ProcessorTrackerLandmark::processNew(const int& _max_features) ...@@ -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. * When done, we need to find these new Landmarks in the incoming Capture.
*/ */
// assuming cleared new lists // new lists cleared
assert(new_features_last_.empty()); new_features_last_.clear();
assert(new_features_incoming_.empty()); new_features_incoming_.clear();
assert(new_landmarks_.empty()); new_landmarks_.clear();
// We first need to populate the \b last Capture with new Features // We first need to populate the \b last Capture with new Features
unsigned int n = detectNewFeatures(_max_features, unsigned int n = detectNewFeatures(_max_features,
......
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