Skip to content
Snippets Groups Projects
Commit 17cd2a75 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add key of prior in Feature type string

parent 450038d0
No related branches found
No related tags found
1 merge request!366Resolve "Complete state vector new data structure?"
Pipeline #5557 failed
......@@ -1003,7 +1003,7 @@ void Problem::setPriorOptions(const std::string& _mode,
auto cov_blk = (_sigma.at(key).array() * _sigma.at(key).array()).matrix().asDiagonal();
Q.emplace(key,key,cov_blk);
}
WOLF_TRACE("prior covariance:\n" , Q);
WOLF_TRACE("prior covariance:" , Q);
prior_options_->cov__ = Q;
}
}
......@@ -1042,14 +1042,8 @@ FrameBasePtr Problem::applyPriorOptions(const TimeStamp& _ts)
assert(sb->getSize() == state_blk.size() && "prior_options state wrong size");
assert(sb->getLocalSize() == covar_blk.rows() && "prior_options cov. wrong size");
WOLF_DEBUG("key: ", key);
WOLF_DEBUG("vec: ", state_blk);
WOLF_DEBUG("cov: ", covar_blk);
WOLF_DEBUG("sb : ", sb->getState());
WOLF_DEBUG("----------------------: ");
// feature
auto prior_fea = FeatureBase::emplace<FeatureBase>(prior_cap, "prior", state_blk, covar_blk);
auto prior_fea = FeatureBase::emplace<FeatureBase>(prior_cap, "Prior " + key, state_blk, covar_blk);
// factor
if (sb->hasLocalParametrization())
......
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