mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Rtabmap::setInitialPose() update optimized poses if empty
This commit is contained in:
@@ -684,6 +684,13 @@ void Rtabmap::setInitialPose(const Transform & initialPose)
|
|||||||
_lastLocalizationNodeId = 0;
|
_lastLocalizationNodeId = 0;
|
||||||
_mapCorrection.setIdentity();
|
_mapCorrection.setIdentity();
|
||||||
_mapCorrectionBackup.setNull();
|
_mapCorrectionBackup.setNull();
|
||||||
|
|
||||||
|
if(_memory->getLastWorkingSignature()->id() &&
|
||||||
|
_optimizedPoses.empty())
|
||||||
|
{
|
||||||
|
cv::Mat covariance;
|
||||||
|
this->optimizeCurrentMap(_memory->getLastWorkingSignature()->id(), false, _optimizedPoses, covariance, &_constraints);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user