mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30: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,
|
roll,
|
||||||
pitch,
|
pitch,
|
||||||
yaw,
|
yaw,
|
||||||
1.0f/iter->second.rotVariance(),
|
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||||
1.0f/iter->second.rotVariance(),
|
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||||
1.0f/iter->second.rotVariance(),
|
iter->second.rotVariance()>0?1.0f/iter->second.rotVariance():1.0f,
|
||||||
1.0f/iter->second.transVariance(),
|
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f,
|
||||||
1.0f/iter->second.transVariance(),
|
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f,
|
||||||
1.0f/iter->second.transVariance());
|
iter->second.transVariance()>0?1.0f/iter->second.transVariance():1.0f);
|
||||||
}
|
}
|
||||||
UINFO("Graph saved to %s", fileName.c_str());
|
UINFO("Graph saved to %s", fileName.c_str());
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ Transform OdometryBOW::computeTransform(
|
|||||||
true,
|
true,
|
||||||
this->getIterations(),
|
this->getIterations(),
|
||||||
this->getPnPReprojError(),
|
this->getPnPReprojError(),
|
||||||
this->getMinInliers(),
|
0,
|
||||||
inliersV,
|
inliersV,
|
||||||
this->getPnPFlags());
|
this->getPnPFlags());
|
||||||
|
|
||||||
@@ -793,7 +793,7 @@ Transform OdometryOpticalFlow::computeTransformStereo(
|
|||||||
true,
|
true,
|
||||||
this->getIterations(),
|
this->getIterations(),
|
||||||
this->getPnPReprojError(),
|
this->getPnPReprojError(),
|
||||||
this->getMinInliers(),
|
0,
|
||||||
inliersV,
|
inliersV,
|
||||||
this->getPnPFlags());
|
this->getPnPFlags());
|
||||||
|
|
||||||
@@ -1126,7 +1126,7 @@ Transform OdometryOpticalFlow::computeTransformRGBD(
|
|||||||
true,
|
true,
|
||||||
this->getIterations(),
|
this->getIterations(),
|
||||||
this->getPnPReprojError(),
|
this->getPnPReprojError(),
|
||||||
this->getMinInliers(),
|
0,
|
||||||
inliersV,
|
inliersV,
|
||||||
this->getPnPFlags());
|
this->getPnPFlags());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user