diff --git a/src/ceres_wrapper/ceres_manager.h b/src/ceres_wrapper/ceres_manager.h index 4414cb3f81547f5fda96e778e0aac6afae190d1e..93ecb99d9d2e45d3a8ae49f790650735cc1bc025 100644 --- a/src/ceres_wrapper/ceres_manager.h +++ b/src/ceres_wrapper/ceres_manager.h @@ -47,7 +47,7 @@ class CeresManager void computeCovariances(CovarianceBlocksToBeComputed _blocks = ROBOT_LANDMARKS); - void update(const bool _self_auto_diff = false, const bool _apply_loss_function = false); + void update(const bool _self_auto_diff = true, const bool _apply_loss_function = false); void addConstraint(ConstraintBase* _corr_ptr, const bool _self_auto_diff, const bool _apply_loss); diff --git a/src/examples/test_autodiff.cpp b/src/examples/test_autodiff.cpp index b1742b63934ec55dbcf34cadf667e748ab3ccaac..0815cd7ed35f9e00e87c0d9209bdb1fd3e3ce5a2 100644 --- a/src/examples/test_autodiff.cpp +++ b/src/examples/test_autodiff.cpp @@ -221,7 +221,7 @@ int main(int argc, char** argv) std::cout << "UPDATING CERES..." << std::endl; t1 = clock(); // update state units and constraints in ceres - ceres_manager_ceres->update(); + ceres_manager_ceres->update(false); ceres_manager_wolf->update(true); mean_times(2) += ((double) clock() - t1) / CLOCKS_PER_SEC; diff --git a/src/examples/test_wolf_autodiffwrapper.cpp b/src/examples/test_wolf_autodiffwrapper.cpp index 2fb450a70e4fe71bae340550640f91e2a5dad7e2..c351db56af1476c71a2f3de77c230cf73a1d80d8 100644 --- a/src/examples/test_wolf_autodiffwrapper.cpp +++ b/src/examples/test_wolf_autodiffwrapper.cpp @@ -275,7 +275,7 @@ int main(int argc, char** argv) // BUILD SOLVER PROBLEM std::cout << "updating ceres..." << std::endl; t1 = clock(); - ceres_manager_ceres_diff->update(); + ceres_manager_ceres_diff->update(false); double t_update_ceres = ((double) clock() - t1) / CLOCKS_PER_SEC; t1 = clock(); ceres_manager_wolf_diff->update(true);