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:
matlabbe
2014-05-05 15:18:41 +00:00
parent 2d7ba1b9f4
commit e6f24dfcc5
4 changed files with 8 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ public:
const float * data() const {return data_.data();}
float * data() {return data_.data();}
int size() const {return data_.size();}
int size() const {return (int)data_.size();}
float & x() {return data_[3];}
float & y() {return data_[7];}

View File

@@ -71,7 +71,7 @@ public:
void setNndrUsed(bool used) {_nndrUsed = used;}
bool isNndrUsed() const {return _nndrUsed;}
float getNndrRatio() {return _nndrRatio;}
unsigned int getNotIndexedWordsCount() const {return _notIndexedWords.size();}
unsigned int getNotIndexedWordsCount() const {return (int)_notIndexedWords.size();}
int getLastIndexedWordId() const;
int getTotalActiveReferences() const {return _totalActiveReferences;}
void setNNStrategy(NNStrategy strategy, const ParametersMap & parameters = ParametersMap());
@@ -83,7 +83,7 @@ public:
void clear();
std::vector<VisualWord *> getUnusedWords() const;
unsigned int getUnusedWordsSize() const {return _unusedWords.size();}
unsigned int getUnusedWordsSize() const {return (int)_unusedWords.size();}
void removeWords(const std::vector<VisualWord*> & words); // caller must delete the words
protected:

View File

@@ -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;

View File

@@ -3,7 +3,6 @@
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/io/pcd_io.h>
#include <pcl_ros/transforms.h>
#include <pcl/ModelCoefficients.h>
#include <pcl/common/common.h>
#include <pcl/common/pca.h>