keys now from expression_
parent
0a41b0a027
commit
781cc6daa9
|
@ -82,18 +82,14 @@ public:
|
|||
// Get dimensions of matrices
|
||||
std::vector<size_t> dimensions;
|
||||
dimensions.reserve(n);
|
||||
std::vector<Key> keys;
|
||||
keys.reserve(n);
|
||||
for (JacobianMap::const_iterator it = terms.begin(); it != terms.end();
|
||||
++it) {
|
||||
const std::pair<Key, Matrix>& term = *it;
|
||||
Key key = term.first;
|
||||
const Matrix& Ai = term.second;
|
||||
dimensions.push_back(Ai.cols());
|
||||
keys.push_back(key);
|
||||
}
|
||||
|
||||
// Construct block matrix
|
||||
// Construct block matrix, is of right size but un-initialized
|
||||
VerticalBlockMatrix Ab(dimensions, b.size(), true);
|
||||
|
||||
// Check and add terms
|
||||
|
@ -107,6 +103,9 @@ public:
|
|||
|
||||
Ab(n).col(0) = b;
|
||||
|
||||
// Get keys to construct factor
|
||||
std::set<Key> keys = expression_.keys();
|
||||
|
||||
// TODO pass unwhitened + noise model to Gaussian factor
|
||||
// For now, only linearized constrained factors have noise model at linear level!!!
|
||||
noiseModel::Constrained::shared_ptr constrained = //
|
||||
|
|
Loading…
Reference in New Issue