mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-03 16:47:47 +08:00
OptmizerG2O: add prior edge export (#319)
* OptmizerG2O: add prior edge export * add required conditions and structure to export prior edges * for now, make the graph exportation of priors not dependent of parameters * include <locale.h> so to use setlocale() in a windows build
This commit is contained in:
@@ -2304,7 +2304,7 @@ bool Rtabmap::process(
|
||||
|
||||
UINFO("Update map correction");
|
||||
std::map<int, Transform> poses = _optimizedPoses;
|
||||
|
||||
|
||||
// if _optimizeFromGraphEnd parameter just changed state, don't use optimized poses as guess
|
||||
float normMapCorrection = _mapCorrection.getNormSquared(); // use distance for identity detection
|
||||
if((normMapCorrection > 0.000001f && _optimizeFromGraphEnd) ||
|
||||
@@ -4694,7 +4694,7 @@ void Rtabmap::updateGoalIndex()
|
||||
this->clearPath(-1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(!isStuck)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user