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: