24 #include "glog/logging.h" 31 proto::LocalTrajectoryBuilderOptions3D options;
32 options.set_min_range(parameter_dictionary->
GetDouble(
"min_range"));
33 options.set_max_range(parameter_dictionary->
GetDouble(
"max_range"));
34 options.set_num_accumulated_range_data(
35 parameter_dictionary->
GetInt(
"num_accumulated_range_data"));
36 options.set_voxel_filter_size(
37 parameter_dictionary->
GetDouble(
"voxel_filter_size"));
38 *options.mutable_high_resolution_adaptive_voxel_filter_options() =
41 ->GetDictionary(
"high_resolution_adaptive_voxel_filter")
43 *options.mutable_low_resolution_adaptive_voxel_filter_options() =
46 ->GetDictionary(
"low_resolution_adaptive_voxel_filter")
48 options.set_use_online_correlative_scan_matching(
49 parameter_dictionary->
GetBool(
"use_online_correlative_scan_matching"));
50 *options.mutable_real_time_correlative_scan_matcher_options() =
53 ->GetDictionary(
"real_time_correlative_scan_matcher")
55 *options.mutable_ceres_scan_matcher_options() =
57 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
60 options.set_imu_gravity_time_constant(
61 parameter_dictionary->
GetDouble(
"imu_gravity_time_constant"));
62 options.set_rotational_histogram_size(
63 parameter_dictionary->
GetInt(
"rotational_histogram_size"));
proto::CeresScanMatcherOptions3D CreateCeresScanMatcherOptions3D(common::LuaParameterDictionary *const parameter_dictionary)
double GetDouble(const std::string &key)
proto::MotionFilterOptions CreateMotionFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::SubmapsOptions3D CreateSubmapsOptions3D(common::LuaParameterDictionary *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)
proto::LocalTrajectoryBuilderOptions3D CreateLocalTrajectoryBuilderOptions3D(common::LuaParameterDictionary *parameter_dictionary)