fixed compilation warning

This commit is contained in:
matlabbe
2019-04-12 19:27:12 -04:00
parent 2de553ba02
commit 428d5be129
2 changed files with 5 additions and 4 deletions

View File

@@ -92,8 +92,9 @@ void MarkerDetector::parseParameters(const ParametersMap & parameters)
if(dictionaryId_ >= 17) if(dictionaryId_ >= 17)
{ {
UERROR("Cannot set AprilTag dictionary. OpenCV version should be at least 3.4.2, " UERROR("Cannot set AprilTag dictionary. OpenCV version should be at least 3.4.2, "
"current version is %s. Setting dictionary type to default (%d)", "current version is %s. Setting %s to default (%d)",
CV_VERSION, CV_VERSION,
Parameters::kArucoDictionary().c_str(),
Parameters::defaultArucoDictionary()); Parameters::defaultArucoDictionary());
dictionaryId_ = Parameters::defaultArucoDictionary(); dictionaryId_ = Parameters::defaultArucoDictionary();
} }

View File

@@ -4499,11 +4499,11 @@ int Rtabmap::detectMoreLoopClosures(
int fromId = from; int fromId = from;
int mapId = signatures.at(from).mapId(); int mapId = signatures.at(from).mapId();
// use first node of the map containing from // use first node of the map containing from
for(std::map<int, Signature>::iterator iter=signatures.begin(); iter!=signatures.end(); ++iter) for(std::map<int, Signature>::iterator ster=signatures.begin(); ster!=signatures.end(); ++ster)
{ {
if(iter->second.mapId() == mapId) if(ster->second.mapId() == mapId)
{ {
fromId = iter->first; fromId = ster->first;
break; break;
} }
} }