27 namespace sparse_pose_graph {
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.mutable_adaptive_voxel_filter_options() =
37 parameter_dictionary->
GetDictionary(
"adaptive_voxel_filter").get());
38 options.set_min_score(parameter_dictionary->
GetDouble(
"min_score"));
39 options.set_global_localization_min_score(
40 parameter_dictionary->
GetDouble(
"global_localization_min_score"));
41 options.set_loop_closure_translation_weight(
42 parameter_dictionary->
GetDouble(
"loop_closure_translation_weight"));
43 options.set_loop_closure_rotation_weight(
44 parameter_dictionary->
GetDouble(
"loop_closure_rotation_weight"));
45 options.set_log_matches(parameter_dictionary->
GetBool(
"log_matches"));
46 *options.mutable_fast_correlative_scan_matcher_options() =
48 parameter_dictionary->
GetDictionary(
"fast_correlative_scan_matcher")
50 *options.mutable_ceres_scan_matcher_options() =
52 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
53 *options.mutable_fast_correlative_scan_matcher_options_3d() =
56 ->GetDictionary(
"fast_correlative_scan_matcher_3d")
58 *options.mutable_ceres_scan_matcher_options_3d() =
60 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher_3d").get());
proto::FastCorrelativeScanMatcherOptions CreateFastCorrelativeScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
bool GetBool(const string &key)
double GetDouble(const string &key)
proto::CeresScanMatcherOptions CreateCeresScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::CeresScanMatcherOptions CreateCeresScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::AdaptiveVoxelFilterOptions CreateAdaptiveVoxelFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::FastCorrelativeScanMatcherOptions CreateFastCorrelativeScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)
proto::ConstraintBuilderOptions CreateConstraintBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)