30 proto::LocalTrajectoryBuilderOptions2D options;
31 options.set_min_range(parameter_dictionary->
GetDouble(
"min_range"));
32 options.set_max_range(parameter_dictionary->
GetDouble(
"max_range"));
33 options.set_min_z(parameter_dictionary->
GetDouble(
"min_z"));
34 options.set_max_z(parameter_dictionary->
GetDouble(
"max_z"));
35 options.set_missing_data_ray_length(
36 parameter_dictionary->
GetDouble(
"missing_data_ray_length"));
37 options.set_num_accumulated_range_data(
38 parameter_dictionary->
GetInt(
"num_accumulated_range_data"));
39 options.set_voxel_filter_size(
40 parameter_dictionary->
GetDouble(
"voxel_filter_size"));
41 options.set_use_online_correlative_scan_matching(
42 parameter_dictionary->
GetBool(
"use_online_correlative_scan_matching"));
43 *options.mutable_adaptive_voxel_filter_options() =
45 parameter_dictionary->
GetDictionary(
"adaptive_voxel_filter").get());
46 *options.mutable_loop_closure_adaptive_voxel_filter_options() =
49 ->GetDictionary(
"loop_closure_adaptive_voxel_filter")
51 *options.mutable_real_time_correlative_scan_matcher_options() =
54 ->GetDictionary(
"real_time_correlative_scan_matcher")
56 *options.mutable_ceres_scan_matcher_options() =
58 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
61 options.set_imu_gravity_time_constant(
62 parameter_dictionary->
GetDouble(
"imu_gravity_time_constant"));
65 options.set_use_imu_data(parameter_dictionary->
GetBool(
"use_imu_data"));
proto::LocalTrajectoryBuilderOptions2D CreateLocalTrajectoryBuilderOptions2D(common::LuaParameterDictionary *const parameter_dictionary)
proto::SubmapsOptions2D CreateSubmapsOptions2D(common::LuaParameterDictionary *const parameter_dictionary)
double GetDouble(const std::string &key)
proto::CeresScanMatcherOptions2D CreateCeresScanMatcherOptions2D(common::LuaParameterDictionary *const parameter_dictionary)
proto::MotionFilterOptions CreateMotionFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::AdaptiveVoxelFilterOptions CreateAdaptiveVoxelFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::RealTimeCorrelativeScanMatcherOptions CreateRealTimeCorrelativeScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const std::string &key)
bool GetBool(const std::string &key)
int GetInt(const std::string &key)