Skip to content

Commit

Permalink
fixed Windows build and some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Apr 29, 2015
1 parent 24e79ad commit d09e8f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion corelib/src/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ Transform Memory::computeVisualTransform(
}
if(inliers)
{
*inliers = inliers3D.size();
*inliers = (int)inliers3D.size();
}

if(!cameraTransform.isNull())
Expand Down
6 changes: 3 additions & 3 deletions corelib/src/Rtabmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ bool Rtabmap::process(const SensorData & data)
{
nearNodesByDist.insert(std::make_pair(iter->second, iter->first));
}
for(std::map<float, int>::iterator iter=nearNodesByDist.begin();
for(std::multimap<float, int>::iterator iter=nearNodesByDist.begin();
iter!=nearNodesByDist.end() && retrievalLocalIds.size() < _maxLocalRetrieved;
++iter)
{
Expand Down Expand Up @@ -1389,7 +1389,7 @@ bool Rtabmap::process(const SensorData & data)
// only a loop closure link is added...
signaturesRetrieved = _memory->reactivateSignatures(
reactivatedIds,
_maxRetrieved+retrievalLocalIds.size(), // add path retrieved
_maxRetrieved+(unsigned int)retrievalLocalIds.size(), // add path retrieved
timeRetrievalDbAccess);

ULOGGER_INFO("retrieval of %d (db time = %fs)", (int)signaturesRetrieved.size(), timeRetrievalDbAccess);
Expand Down Expand Up @@ -1535,7 +1535,7 @@ bool Rtabmap::process(const SensorData & data)
_localDetectMaxDiffID);

std::list<std::map<int, Transform> > forwardPaths = getPaths(forwardPoses);
localSpacePaths = forwardPaths.size();
localSpacePaths = (int)forwardPaths.size();

for(std::list<std::map<int, Transform> >::iterator iter=forwardPaths.begin(); iter!=forwardPaths.end(); ++iter)
{
Expand Down

0 comments on commit d09e8f2

Please sign in to comment.