Skip to content

Commit 2a285b8

Browse files
Expose function_tolerance arguments in glomap
1 parent 262e122 commit 2a285b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

glomap/controllers/option_manager.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ void OptionManager::AddGlobalPositionerOptions() {
197197
AddAndRegisterDefaultOption(
198198
"GlobalPositioning.max_num_iterations",
199199
&mapper->opt_gp.solver_options.max_num_iterations);
200+
AddAndRegisterDefaultOption(
201+
"GlobalPositioning.function_tolerance",
202+
&mapper->opt_gp.solver_options.function_tolerance);
200203

201204
// TODO: move the constrain type selection here
202205
}
@@ -224,6 +227,9 @@ void OptionManager::AddBundleAdjusterOptions() {
224227
AddAndRegisterDefaultOption(
225228
"BundleAdjustment.max_num_iterations",
226229
&mapper->opt_ba.solver_options.max_num_iterations);
230+
AddAndRegisterDefaultOption(
231+
"BundleAdjustment.function_tolerance",
232+
&mapper->opt_ba.solver_options.function_tolerance);
227233
}
228234
void OptionManager::AddTriangulatorOptions() {
229235
if (added_triangulation_options_) {

0 commit comments

Comments
 (0)