23 namespace sparse_pose_graph {
27 proto::OptimizationProblemOptions options;
28 options.set_huber_scale(parameter_dictionary->
GetDouble(
"huber_scale"));
29 options.set_acceleration_weight(
30 parameter_dictionary->
GetDouble(
"acceleration_weight"));
31 options.set_rotation_weight(
32 parameter_dictionary->
GetDouble(
"rotation_weight"));
33 options.set_consecutive_scan_translation_penalty_factor(
35 "consecutive_scan_translation_penalty_factor"));
36 options.set_consecutive_scan_rotation_penalty_factor(
38 "consecutive_scan_rotation_penalty_factor"));
39 options.set_log_solver_summary(
40 parameter_dictionary->
GetBool(
"log_solver_summary"));
41 *options.mutable_ceres_solver_options() =
43 parameter_dictionary->
GetDictionary(
"ceres_solver_options").get());
bool GetBool(const string &key)
double GetDouble(const string &key)
proto::OptimizationProblemOptions CreateOptimizationProblemOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::CeresSolverOptions CreateCeresSolverOptionsProto(common::LuaParameterDictionary *parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)