Fixed some warnings

release/4.3a0
Frank Dellaert 2018-10-23 23:20:17 -04:00
parent 9b7f80f25c
commit a7678698d3
3 changed files with 3 additions and 3 deletions

View File

@ -486,7 +486,7 @@ boost::shared_ptr<GaussianConditional> HessianFactor::eliminateCholesky(const Or
// Erase the eliminated keys in this factor // Erase the eliminated keys in this factor
keys_.erase(begin(), begin() + nFrontals); keys_.erase(begin(), begin() + nFrontals);
} catch (const CholeskyFailed& e) { } catch (const CholeskyFailed&) {
throw IndeterminantLinearSystemException(keys.front()); throw IndeterminantLinearSystemException(keys.front());
} }

View File

@ -148,7 +148,7 @@ bool LevenbergMarquardtOptimizer::tryLambda(const GaussianFactorGraph& linear,
// ============ Solve is where most computation happens !! ================= // ============ Solve is where most computation happens !! =================
delta = solve(dampedSystem, params_); delta = solve(dampedSystem, params_);
systemSolvedSuccessfully = true; systemSolvedSuccessfully = true;
} catch (const IndeterminantLinearSystemException& e) { } catch (const IndeterminantLinearSystemException&) {
systemSolvedSuccessfully = false; systemSolvedSuccessfully = false;
} }

View File

@ -147,7 +147,7 @@ struct LevenbergMarquardtState : public NonlinearOptimizerState {
CachedModel* item = getCachedModel(dim); CachedModel* item = getCachedModel(dim);
item->A.diagonal() = sqrtHessianDiagonal.at(key); // use diag(hessian) item->A.diagonal() = sqrtHessianDiagonal.at(key); // use diag(hessian)
damped += boost::make_shared<JacobianFactor>(key, item->A, item->b, item->model); 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 continue; // Don't attempt any damping if no key found in diagonal
} }
} }