From d5b385ec69090480bfe773e785a04f1772a2c0f9 Mon Sep 17 00:00:00 2001 From: Mathieu Labbe Date: Thu, 14 Apr 2016 11:01:24 -0400 Subject: [PATCH] PreferencesDialog: Removed NN warning when RTABMAP_NONFREE=0 --- guilib/src/PreferencesDialog.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/guilib/src/PreferencesDialog.cpp b/guilib/src/PreferencesDialog.cpp index 8e8e27fa..e287534b 100644 --- a/guilib/src/PreferencesDialog.cpp +++ b/guilib/src/PreferencesDialog.cpp @@ -2866,18 +2866,6 @@ void PreferencesDialog::setParameter(const std::string & key, const std::string combo->currentText().toStdString().c_str()); ok = false; } - else if(valueInt==1 && - (combo->objectName().toStdString().compare(Parameters::kKpNNStrategy()) == 0 || - combo->objectName().toStdString().compare(Parameters::kVisCorNNType()) == 0)) - - { - UWARN("Trying to set \"%s\" to KdTree but RTAB-Map isn't built " - "with the nonfree module from OpenCV and kdTree cannot be used " - "with binary descriptors. Keeping default combo value: %s.", - combo->objectName().toStdString().c_str(), - combo->currentText().toStdString().c_str()); - ok = false; - } #endif if(!Optimizer::isAvailable(Optimizer::kTypeG2O)) {