struct mrpt::slam::CRangeBearingKFSLAM2D::TOptions
Overview
The options for the algorithm.
#include <mrpt/slam/CRangeBearingKFSLAM2D.h> struct TOptions: public mrpt::config::CLoadableOptions { // fields mrpt::math::CVectorFloat stds_Q_no_odo; float std_sensor_range {0.1f}; float std_sensor_yaw; float quantiles_3D_representation {3}; bool create_simplemap {false}; TDataAssociationMethod data_assoc_method {assocNN}; TDataAssociationMetric data_assoc_metric {metricMaha}; double data_assoc_IC_chi2_thres {0.99}; TDataAssociationMetric data_assoc_IC_metric {metricMaha}; double data_assoc_IC_ml_threshold {0.0}; // construction TOptions(); // methods virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section); virtual void dumpToTextStream(std::ostream& out) const; };
Inherited Members
public: // methods virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section) = 0; void loadFromConfigFileName(const std::string& config_file, const std::string& section); virtual void saveToConfigFile(mrpt::config::CConfigFileBase& target, const std::string& section) const; void saveToConfigFileName(const std::string& config_file, const std::string& section) const; void dumpToConsole() const; virtual void dumpToTextStream(std::ostream& out) const;
Fields
mrpt::math::CVectorFloat stds_Q_no_odo
A 3-length vector with the std.
deviation of the transition model in (x,y,phi) used only when there is no odometry (if there is odo, its uncertainty values will be used instead); x y: In meters, phi: radians (but in degrees when loading from a configuration ini-file!)
float std_sensor_range {0.1f}
The std.
deviation of the sensor (for the matrix R in the kalman filters), in meters and radians.
float quantiles_3D_representation {3}
Default = 3.
bool create_simplemap {false}
Whether to fill m_SFs (default=false)
double data_assoc_IC_chi2_thres {0.99}
Threshold in [0,1] for the chi2square test for individual compatibility between predictions and observations (default: 0.99)
TDataAssociationMetric data_assoc_IC_metric {metricMaha}
Whether to use mahalanobis (->chi2 criterion) vs.
Matching likelihood.
double data_assoc_IC_ml_threshold {0.0}
Only if data_assoc_IC_metric==ML, the log-ML threshold (Default=0.0)
Construction
TOptions()
Default values.
Methods
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section)
This method load the options from a “.ini”-like file or memory-stored string list.
Only those parameters found in the given “section” and having the same name that the variable are loaded. Those not found in the file will stay with their previous values (usually the default values loaded at initialization). An example of an “.ini” file:
[section] resolution = 0.10 // blah blah... modeSelection = 1 // 0=blah, 1=blah,...
See also:
loadFromConfigFileName, saveToConfigFile
virtual void dumpToTextStream(std::ostream& out) const
This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream.
The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.