27 namespace constraints {
31 proto::ConstraintBuilderOptions options;
32 options.set_sampling_ratio(parameter_dictionary->
GetDouble(
"sampling_ratio"));
33 options.set_max_constraint_distance(
34 parameter_dictionary->
GetDouble(
"max_constraint_distance"));
35 options.set_min_score(parameter_dictionary->
GetDouble(
"min_score"));
36 options.set_global_localization_min_score(
37 parameter_dictionary->
GetDouble(
"global_localization_min_score"));
38 options.set_loop_closure_translation_weight(
39 parameter_dictionary->
GetDouble(
"loop_closure_translation_weight"));
40 options.set_loop_closure_rotation_weight(
41 parameter_dictionary->
GetDouble(
"loop_closure_rotation_weight"));
42 options.set_log_matches(parameter_dictionary->
GetBool(
"log_matches"));
43 *options.mutable_fast_correlative_scan_matcher_options() =
45 parameter_dictionary->
GetDictionary(
"fast_correlative_scan_matcher")
47 *options.mutable_ceres_scan_matcher_options() =
49 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
50 *options.mutable_fast_correlative_scan_matcher_options_3d() =
53 ->GetDictionary(
"fast_correlative_scan_matcher_3d")
55 *options.mutable_ceres_scan_matcher_options_3d() =
57 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher_3d").get());
proto::FastCorrelativeScanMatcherOptions2D CreateFastCorrelativeScanMatcherOptions2D(common::LuaParameterDictionary *const parameter_dictionary)
proto::CeresScanMatcherOptions3D CreateCeresScanMatcherOptions3D(common::LuaParameterDictionary *const parameter_dictionary)
double GetDouble(const std::string &key)
proto::CeresScanMatcherOptions2D CreateCeresScanMatcherOptions2D(common::LuaParameterDictionary *const parameter_dictionary)
proto::ConstraintBuilderOptions CreateConstraintBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::FastCorrelativeScanMatcherOptions3D CreateFastCorrelativeScanMatcherOptions3D(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const std::string &key)
bool GetBool(const std::string &key)