Skip to content
Snippets Groups Projects
Commit d50f0a33 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

wolf auto_diff as a default auto_diff method

parent bff2bb46
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class CeresManager ...@@ -47,7 +47,7 @@ class CeresManager
void computeCovariances(CovarianceBlocksToBeComputed _blocks = ROBOT_LANDMARKS); 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); void addConstraint(ConstraintBase* _corr_ptr, const bool _self_auto_diff, const bool _apply_loss);
......
...@@ -221,7 +221,7 @@ int main(int argc, char** argv) ...@@ -221,7 +221,7 @@ int main(int argc, char** argv)
std::cout << "UPDATING CERES..." << std::endl; std::cout << "UPDATING CERES..." << std::endl;
t1 = clock(); t1 = clock();
// update state units and constraints in ceres // update state units and constraints in ceres
ceres_manager_ceres->update(); ceres_manager_ceres->update(false);
ceres_manager_wolf->update(true); ceres_manager_wolf->update(true);
mean_times(2) += ((double) clock() - t1) / CLOCKS_PER_SEC; mean_times(2) += ((double) clock() - t1) / CLOCKS_PER_SEC;
......
...@@ -275,7 +275,7 @@ int main(int argc, char** argv) ...@@ -275,7 +275,7 @@ int main(int argc, char** argv)
// BUILD SOLVER PROBLEM // BUILD SOLVER PROBLEM
std::cout << "updating ceres..." << std::endl; std::cout << "updating ceres..." << std::endl;
t1 = clock(); t1 = clock();
ceres_manager_ceres_diff->update(); ceres_manager_ceres_diff->update(false);
double t_update_ceres = ((double) clock() - t1) / CLOCKS_PER_SEC; double t_update_ceres = ((double) clock() - t1) / CLOCKS_PER_SEC;
t1 = clock(); t1 = clock();
ceres_manager_wolf_diff->update(true); ceres_manager_wolf_diff->update(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment