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

addapted to new emplace api

parent c54f25bc
No related branches found
No related tags found
1 merge request!274Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
...@@ -171,14 +171,12 @@ void SensorBase::addPriorParameter(const unsigned int _i, const Eigen::VectorXs& ...@@ -171,14 +171,12 @@ void SensorBase::addPriorParameter(const unsigned int _i, const Eigen::VectorXs&
params_prior_map_[_i]->remove(); params_prior_map_[_i]->remove();
// create feature // create feature
FeatureBasePtr ftr_prior = std::make_shared<FeatureBase>("ABSOLUTE",_x,_cov); FeatureBasePtr ftr_prior = FeatureBase::emplace<FeatureBase>(nullptr, "ABSOLUTE",_x,_cov);//std::make_shared<FeatureBase>("ABSOLUTE",_x,_cov);
// set feature problem // set feature problem
ftr_prior->setProblem(getProblem()); ftr_prior->setProblem(getProblem());
// create & add factor absolute // create & add factor absolute
// ftr_prior->addFactor(std::make_shared<FactorQuaternionAbsolute>(_sb));
// ftr_prior->addFactor(std::make_shared<FactorBlockAbsolute>(_sb, _start_idx, _size));
if (is_quaternion) if (is_quaternion)
FactorBase::emplace<FactorQuaternionAbsolute>(ftr_prior, _sb); FactorBase::emplace<FactorQuaternionAbsolute>(ftr_prior, _sb);
else else
......
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