1 #ifndef SLAM_CTOR_SLAMS_INIT_GMAPPING_H 2 #define SLAM_CTOR_SLAMS_INIT_GMAPPING_H 4 #include "../../utils/init_scan_matching.h" 5 #include "../../utils/init_occupancy_mapping.h" 6 #include "../../core/scan_matchers/weighted_mean_point_probability_spe.h" 12 return props.
get_uint(
"slam/particles/number", 30);
16 auto mean_sample_xy = props.
get_dbl(
"slam/particles/sample/xy/mean", 0.0);
17 auto sigma_sample_xy = props.
get_dbl(
"slam/particles/sample/xy/sigma", 0.1);
18 auto mean_sample_th = props.
get_dbl(
"slam/particles/sample/theta/mean", 0.0);
19 auto sigma_sample_th = props.
get_dbl(
"slam/particles/sample/theta/sigma",
22 auto min_sm_lim_xy = props.
get_dbl(
"slam/particles/sm_delta_lim/xy/min",
24 auto max_sm_lim_xy = props.
get_dbl(
"slam/particles/sm_delta_lim/xy/max",
26 auto min_sm_lim_th = props.
get_dbl(
"slam/particles/sm_delta_lim/theta/min",
28 auto max_sm_lim_th = props.
get_dbl(
"slam/particles/sm_delta_lim/theta/max",
31 mean_sample_th, sigma_sample_th,
32 min_sm_lim_xy, max_sm_lim_xy,
33 min_sm_lim_th, max_sm_lim_th};
37 const std::string OOPE_Pfx =
"slam/scmtch/oope/";
38 assert(props.
get_str(OOPE_Pfx +
"type",
"custom") ==
"custom");
41 auto fullness_th = props.
get_dbl(OOPE_Pfx +
"custom/fullness_threshold", 0.1);
42 auto window_size = props.
get_uint(OOPE_Pfx +
"cutrom/window_size", 1);
43 auto oope = std::make_shared<CustomOOPE>(fullness_th, window_size);
52 1.0, 1.0, 0, std::make_shared<GmappingBaseCell>(),
54 std::make_shared<HillClimbingScanMatcher>(
60 return std::make_shared<GmappingParticleFilter>(shw_params,
auto init_gmapping(const PropertiesProvider &props)
virtual str get_str(const std::string &id, const str &dflt) const =0
auto init_spe(const PropertiesProvider &props, std::shared_ptr< OccupancyObservationProbabilityEstimator > oope)
auto init_scan_adder(const PropertiesProvider &props)
auto init_particles_nm(const PropertiesProvider &props)
virtual double get_dbl(const std::string &id, double dflt) const =0
auto init_grid_map_params(const PropertiesProvider &props)
virtual unsigned get_uint(const std::string &id, unsigned dflt) const =0
auto init_gmapping_params(const PropertiesProvider &props)
auto init_gmapping_prob_estimator(const PropertiesProvider &props)