mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
DbViewer: added warning when reextract feature is false and signatures have no features
This commit is contained in:
@@ -4839,6 +4839,15 @@ bool DatabaseViewer::addConstraint(int from, int to, bool silent)
|
|||||||
toS->sensorData().setFeatures(std::vector<cv::KeyPoint>(), std::vector<cv::Point3f>(), cv::Mat());
|
toS->sensorData().setFeatures(std::vector<cv::KeyPoint>(), std::vector<cv::Point3f>(), cv::Mat());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(!reextractVisualFeatures && fromS->getWords().empty() && toS->getWords().empty())
|
||||||
|
{
|
||||||
|
UWARN("\"%s\" is false and signatures (%d and %d) don't have words, "
|
||||||
|
"registration will not be possible. Set \"%s\" to true.",
|
||||||
|
Parameters::kRGBDLoopClosureReextractFeatures().c_str(),
|
||||||
|
fromS->id(),
|
||||||
|
toS->id(),
|
||||||
|
Parameters::kRGBDLoopClosureReextractFeatures().c_str());
|
||||||
|
}
|
||||||
|
|
||||||
t = reg->computeTransformationMod(*fromS, *toS, Transform(), &info);
|
t = reg->computeTransformationMod(*fromS, *toS, Transform(), &info);
|
||||||
delete reg;
|
delete reg;
|
||||||
|
|||||||
Reference in New Issue
Block a user