Fixed some warnings
parent
9b7f80f25c
commit
a7678698d3
|
@ -486,7 +486,7 @@ boost::shared_ptr<GaussianConditional> HessianFactor::eliminateCholesky(const Or
|
|||
|
||||
// Erase the eliminated keys in this factor
|
||||
keys_.erase(begin(), begin() + nFrontals);
|
||||
} catch (const CholeskyFailed& e) {
|
||||
} catch (const CholeskyFailed&) {
|
||||
throw IndeterminantLinearSystemException(keys.front());
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ bool LevenbergMarquardtOptimizer::tryLambda(const GaussianFactorGraph& linear,
|
|||
// ============ Solve is where most computation happens !! =================
|
||||
delta = solve(dampedSystem, params_);
|
||||
systemSolvedSuccessfully = true;
|
||||
} catch (const IndeterminantLinearSystemException& e) {
|
||||
} catch (const IndeterminantLinearSystemException&) {
|
||||
systemSolvedSuccessfully = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ struct LevenbergMarquardtState : public NonlinearOptimizerState {
|
|||
CachedModel* item = getCachedModel(dim);
|
||||
item->A.diagonal() = sqrtHessianDiagonal.at(key); // use diag(hessian)
|
||||
damped += boost::make_shared<JacobianFactor>(key, item->A, item->b, item->model);
|
||||
} catch (const std::out_of_range& e) {
|
||||
} catch (const std::out_of_range&) {
|
||||
continue; // Don't attempt any damping if no key found in diagonal
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue