mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed some size_t/int warnings.
Fixed compilation error on Windows for ExtractObject tool (include pcl_ros/transform.h missing). git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1295 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -443,7 +443,7 @@ int Rtabmap::getWMSize() const
|
||||
{
|
||||
if(_memory)
|
||||
{
|
||||
return _memory->getWorkingMem().size()-1; // remove virtual place
|
||||
return (int)_memory->getWorkingMem().size()-1; // remove virtual place
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ int Rtabmap::getSTMSize() const
|
||||
{
|
||||
if(_memory)
|
||||
{
|
||||
return _memory->getStMem().size();
|
||||
return (int)_memory->getStMem().size();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1320,7 +1320,7 @@ bool Rtabmap::process(const Image & image)
|
||||
UASSERT(_optimizedPoses.find(signature->id()) != _optimizedPoses.end());
|
||||
poses.insert(std::make_pair(signature->id(), _optimizedPoses.at(signature->id())));
|
||||
|
||||
localSpaceDetectionPosesCount = poses.size()-1;
|
||||
localSpaceDetectionPosesCount = (int)poses.size()-1;
|
||||
//The nearest will be the reference for a loop closure transform
|
||||
if(poses.size() &&
|
||||
localSpaceNearestId &&
|
||||
@@ -1407,8 +1407,8 @@ bool Rtabmap::process(const Image & image)
|
||||
lcHypothesisReactivated = sLoop->isSaved()?1.0f:0.0f;
|
||||
}
|
||||
dictionarySize = _memory->getVWDictionarySize();
|
||||
refWordsCount = signature->getWords().size();
|
||||
refUniqueWordsCount = uUniqueKeys(signature->getWords()).size();
|
||||
refWordsCount = (int)signature->getWords().size();
|
||||
refUniqueWordsCount = (int)uUniqueKeys(signature->getWords()).size();
|
||||
|
||||
// Posterior is empty if a bad signature is detected
|
||||
float vpHypothesis = posterior.size()?posterior.at(Memory::kIdVirtual):0.0f;
|
||||
|
||||
Reference in New Issue
Block a user