mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Making solvPnPRansac to do all iterations. Updated TOROOptimizer::saveGraph().
This commit is contained in:
@@ -485,12 +485,12 @@ bool TOROOptimizer::saveGraph(
|
||||
roll,
|
||||
pitch,
|
||||
yaw,
|
||||
1.0f/iter->second.rotVariance(),
|
||||
1.0f/iter->second.rotVariance(),
|
||||
1.0f/iter->second.rotVariance(),
|
||||
1.0f/iter->second.transVariance(),
|
||||
1.0f/iter->second.transVariance(),
|
||||
1.0f/iter->second.transVariance());
|
||||
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f,
|
||||
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f,
|
||||
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f);
|
||||
}
|
||||
UINFO("Graph saved to %s", fileName.c_str());
|
||||
fclose(file);
|
||||
|
||||
@@ -318,7 +318,7 @@ Transform OdometryBOW::computeTransform(
|
||||
true,
|
||||
this->getIterations(),
|
||||
this->getPnPReprojError(),
|
||||
this->getMinInliers(),
|
||||
0,
|
||||
inliersV,
|
||||
this->getPnPFlags());
|
||||
|
||||
@@ -793,7 +793,7 @@ Transform OdometryOpticalFlow::computeTransformStereo(
|
||||
true,
|
||||
this->getIterations(),
|
||||
this->getPnPReprojError(),
|
||||
this->getMinInliers(),
|
||||
0,
|
||||
inliersV,
|
||||
this->getPnPFlags());
|
||||
|
||||
@@ -1126,7 +1126,7 @@ Transform OdometryOpticalFlow::computeTransformRGBD(
|
||||
true,
|
||||
this->getIterations(),
|
||||
this->getPnPReprojError(),
|
||||
this->getMinInliers(),
|
||||
0,
|
||||
inliersV,
|
||||
this->getPnPFlags());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user