Skip to content
Snippets Groups Projects
Commit 405af470 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

use update.. in FactorBase::link

parent cef97395
No related branches found
No related tags found
1 merge request!369Resolve "Copying measurement and sqrtinfo in FactorBase (multi-threading)"
Pipeline #5495 passed
......@@ -252,14 +252,13 @@ void FactorBase::link(FeatureBasePtr _ftr_ptr)
return;
}
// copy measurement_ and measurement_sqrt_information_upper_
measurement_ = _ftr_ptr->getMeasurement();
measurement_sqrt_information_upper_ = _ftr_ptr->getMeasurementSquareRootInformationUpper();
// link with feature
_ftr_ptr->addFactor(shared_from_this());
this->setFeature(_ftr_ptr);
// update measurement and info according to the feature
updateMeasurementAndSquareRootInformationUpper();
// if frame, should be key
if (getCapture() and getFrame())
assert(getFrame()->isKey() && "Forbidden: linking a factor with a non-key frame.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment