mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
fixed compilation warning
This commit is contained in:
@@ -92,8 +92,9 @@ void MarkerDetector::parseParameters(const ParametersMap & parameters)
|
||||
if(dictionaryId_ >= 17)
|
||||
{
|
||||
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,
|
||||
Parameters::kArucoDictionary().c_str(),
|
||||
Parameters::defaultArucoDictionary());
|
||||
dictionaryId_ = Parameters::defaultArucoDictionary();
|
||||
}
|
||||
|
||||
@@ -4499,11 +4499,11 @@ int Rtabmap::detectMoreLoopClosures(
|
||||
int fromId = from;
|
||||
int mapId = signatures.at(from).mapId();
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user