23 namespace optimization {
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_odometry_translation_weight(
34 parameter_dictionary->
GetDouble(
"odometry_translation_weight"));
35 options.set_odometry_rotation_weight(
36 parameter_dictionary->
GetDouble(
"odometry_rotation_weight"));
37 options.set_local_slam_pose_translation_weight(
38 parameter_dictionary->
GetDouble(
"local_slam_pose_translation_weight"));
39 options.set_local_slam_pose_rotation_weight(
40 parameter_dictionary->
GetDouble(
"local_slam_pose_rotation_weight"));
41 options.set_fixed_frame_pose_translation_weight(
42 parameter_dictionary->
GetDouble(
"fixed_frame_pose_translation_weight"));
43 options.set_fixed_frame_pose_rotation_weight(
44 parameter_dictionary->
GetDouble(
"fixed_frame_pose_rotation_weight"));
45 options.set_log_solver_summary(
46 parameter_dictionary->
GetBool(
"log_solver_summary"));
47 *options.mutable_ceres_solver_options() =
49 parameter_dictionary->
GetDictionary(
"ceres_solver_options").get());
double GetDouble(const std::string &key)
proto::OptimizationProblemOptions CreateOptimizationProblemOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const std::string &key)
proto::CeresSolverOptions CreateCeresSolverOptionsProto(common::LuaParameterDictionary *parameter_dictionary)
bool GetBool(const std::string &key)