Don't attempt any damping if no key found in diagonal
parent
0897e04c37
commit
bb3820780d
|
@ -145,7 +145,8 @@ GaussianFactorGraph LevenbergMarquardtOptimizer::buildDampedSystem(
|
||||||
try {
|
try {
|
||||||
A.diagonal() = state_.hessianDiagonal.at(key_value.key);
|
A.diagonal() = state_.hessianDiagonal.at(key_value.key);
|
||||||
} catch (std::exception e) {
|
} catch (std::exception e) {
|
||||||
// Don't attempt diagonal damping if no key given
|
// Don't attempt any damping if no key found in diagonal
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
Vector b = Vector::Zero(dim);
|
Vector b = Vector::Zero(dim);
|
||||||
SharedDiagonal model = noiseModel::Isotropic::Sigma(dim, sigma);
|
SharedDiagonal model = noiseModel::Isotropic::Sigma(dim, sigma);
|
||||||
|
|
Loading…
Reference in New Issue