GraphOptimizerGTSAM: Fixed not returned poses when there is only one

This commit is contained in:
matlabbe
2015-09-15 16:36:28 -04:00
parent ce025d1375
commit 16d998f3b0
2 changed files with 11 additions and 2 deletions
+1
View File
@@ -2013,6 +2013,7 @@ bool Rtabmap::process(
//optimize the path's poses locally
path = optimizeGraph(nearestId, uKeysSet(path), false);
// transform local poses in optimized graph referential
UASSERT(uContains(path, nearestId));
Transform t = _optimizedPoses.at(nearestId) * path.at(nearestId).inverse();
for(std::map<int, Transform>::iterator jter=path.begin(); jter!=path.end(); ++jter)
{