26 namespace mapping_2d {
30 proto::LocalTrajectoryBuilderOptions 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_voxel_filter_size(
38 parameter_dictionary->
GetDouble(
"voxel_filter_size"));
39 options.set_use_online_correlative_scan_matching(
40 parameter_dictionary->
GetBool(
"use_online_correlative_scan_matching"));
41 *options.mutable_adaptive_voxel_filter_options() =
43 parameter_dictionary->
GetDictionary(
"adaptive_voxel_filter").get());
44 *options.mutable_real_time_correlative_scan_matcher_options() =
47 ->GetDictionary(
"real_time_correlative_scan_matcher")
49 *options.mutable_ceres_scan_matcher_options() =
51 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
52 *options.mutable_motion_filter_options() =
55 options.set_imu_gravity_time_constant(
56 parameter_dictionary->
GetDouble(
"imu_gravity_time_constant"));
57 options.set_num_odometry_states(
59 CHECK_GT(options.num_odometry_states(), 0);
62 options.set_use_imu_data(parameter_dictionary->
GetBool(
"use_imu_data"));
bool GetBool(const string &key)
int GetNonNegativeInt(const string &key)
double GetDouble(const string &key)
proto::SubmapsOptions CreateSubmapsOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::RealTimeCorrelativeScanMatcherOptions CreateRealTimeCorrelativeScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::CeresScanMatcherOptions CreateCeresScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::LocalTrajectoryBuilderOptions CreateLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::AdaptiveVoxelFilterOptions CreateAdaptiveVoxelFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)
proto::MotionFilterOptions CreateMotionFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)