25 #include "glog/logging.h" 28 namespace mapping_3d {
32 proto::LocalTrajectoryBuilderOptions options;
33 options.set_min_range(parameter_dictionary->
GetDouble(
"min_range"));
34 options.set_max_range(parameter_dictionary->
GetDouble(
"max_range"));
35 options.set_scans_per_accumulation(
36 parameter_dictionary->
GetInt(
"scans_per_accumulation"));
37 options.set_voxel_filter_size(
38 parameter_dictionary->
GetDouble(
"voxel_filter_size"));
39 *options.mutable_high_resolution_adaptive_voxel_filter_options() =
42 ->GetDictionary(
"high_resolution_adaptive_voxel_filter")
44 *options.mutable_low_resolution_adaptive_voxel_filter_options() =
47 ->GetDictionary(
"low_resolution_adaptive_voxel_filter")
49 *options.mutable_ceres_scan_matcher_options() =
51 parameter_dictionary->
GetDictionary(
"ceres_scan_matcher").get());
56 *options.mutable_kalman_local_trajectory_builder_options() =
58 parameter_dictionary->
GetDictionary(
"kalman_local_trajectory_builder")
60 *options.mutable_optimizing_local_trajectory_builder_options() =
63 ->GetDictionary(
"optimizing_local_trajectory_builder")
65 const string use_string = parameter_dictionary->
GetString(
"use");
66 proto::LocalTrajectoryBuilderOptions::Use use;
67 CHECK(proto::LocalTrajectoryBuilderOptions::Use_Parse(use_string, &use))
68 <<
"Unknown local_trajectory_builder kind: " << use_string;
proto::KalmanLocalTrajectoryBuilderOptions CreateKalmanLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
int GetInt(const string &key)
double GetDouble(const string &key)
proto::SubmapsOptions CreateSubmapsOptions(common::LuaParameterDictionary *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)
string GetString(const string &key)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)
proto::MotionFilterOptions CreateMotionFilterOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::OptimizingLocalTrajectoryBuilderOptions CreateOptimizingLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)