MRPT  2.0.3
TKLDParams.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 
13 namespace mrpt::slam
14 {
15 /** Option set for KLD algorithm. \ingroup mrpt_slam_grp
16  */
18 {
19  public:
20  TKLDParams();
21 
22  void loadFromConfigFile(
23  const mrpt::config::CConfigFileBase& source,
24  const std::string& section) override; // See base docs
25  void dumpToTextStream(std::ostream& out) const override; // See base docs
26 
27  /** Parameters for the KLD adaptive sample size algorithm (see Dieter Fox's
28  * papers), which is used only if the CParticleFilter is created with the
29  * "adaptiveSampleSize" flag set to true.
30  */
31  double KLD_binSize_XY{0.2f}, KLD_binSize_PHI, KLD_delta{0.01f},
32  KLD_epsilon{0.02f};
33 
34  /** Parameters for the KLD adaptive sample size algorithm (see Dieter Fox's
35  * papers), which is used only if the CParticleFilter is created with the
36  * "adaptiveSampleSize" flag set to true.
37  */
38  unsigned int KLD_minSampleSize{250}, KLD_maxSampleSize{100000};
39 
40  /** (Default: KLD_minSamplesPerBin=0) The minimum number of samples will be
41  * the maximum of KLD_minSampleSize and KLD_minSamplesPerBin *
42  * #ofBinsOccupied in the last time step */
44 };
45 
46 } // namespace mrpt::slam
mrpt::slam::TKLDParams
Option set for KLD algorithm.
Definition: TKLDParams.h:17
mrpt::slam::TKLDParams::KLD_minSamplesPerBin
double KLD_minSamplesPerBin
(Default: KLD_minSamplesPerBin=0) The minimum number of samples will be the maximum of KLD_minSampleS...
Definition: TKLDParams.h:43
mrpt::slam::TKLDParams::KLD_maxSampleSize
unsigned int KLD_maxSampleSize
Definition: TKLDParams.h:38
out
mrpt::vision::TStereoCalibResults out
Definition: chessboard_stereo_camera_calib_unittest.cpp:25
mrpt::slam::TKLDParams::KLD_epsilon
double KLD_epsilon
Definition: TKLDParams.h:32
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::slam::TKLDParams::dumpToTextStream
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
Definition: TKLDParams.cpp:25
mrpt::slam::TKLDParams::KLD_binSize_PHI
double KLD_binSize_PHI
Definition: TKLDParams.h:31
mrpt::config::CLoadableOptions
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
Definition: config/CLoadableOptions.h:26
mrpt::slam::TKLDParams::KLD_delta
double KLD_delta
Definition: TKLDParams.h:31
mrpt::slam::TKLDParams::KLD_minSampleSize
unsigned int KLD_minSampleSize
Parameters for the KLD adaptive sample size algorithm (see Dieter Fox's papers), which is used only i...
Definition: TKLDParams.h:38
CLoadableOptions.h
mrpt::slam::TKLDParams::TKLDParams
TKLDParams()
Definition: TKLDParams.cpp:21
mrpt::slam::TKLDParams::loadFromConfigFile
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string &section) override
This method load the options from a ".ini"-like file or memory-stored string list.
Definition: TKLDParams.cpp:48
mrpt::slam
Definition: CMultiMetricMapPDF.h:26
mrpt::slam::TKLDParams::KLD_binSize_XY
double KLD_binSize_XY
Parameters for the KLD adaptive sample size algorithm (see Dieter Fox's papers), which is used only i...
Definition: TKLDParams.h:31



Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 23:51:15 UTC 2020