class mrpt::maps::TMapGenericParams
Overview
Common params to all maps derived from mrpt::maps::CMetricMap
#include <mrpt/maps/metric_map_types.h> class TMapGenericParams: public mrpt::config::CLoadableOptions, public mrpt::serialization::CSerializable { public: // typedefs typedef std::shared_ptr<mrpt::maps ::TMapGenericParams> Ptr; typedef std::shared_ptr<const mrpt::maps ::TMapGenericParams> ConstPtr; typedef std::unique_ptr<mrpt::maps ::TMapGenericParams> UniquePtr; typedef std::unique_ptr<const mrpt::maps ::TMapGenericParams> ConstUniquePtr; // fields static constexpr const char* className = "mrpt::maps" "::" "TMapGenericParams"; bool enableSaveAs3DObject {true}; bool enableObservationLikelihood {true}; bool enableObservationInsertion {true}; // methods static constexpr auto getClassName(); static const mrpt::rtti::TRuntimeClassId& GetRuntimeClassIdStatic(); static std::shared_ptr<CObject> CreateObject(); template <typename... Args> static Ptr Create(Args&&... args); template <typename Alloc, typename... Args> static Ptr CreateAlloc( const Alloc& alloc, Args&&... args ); template <typename... Args> static UniquePtr CreateUnique(Args&&... args); virtual const mrpt::rtti::TRuntimeClassId* GetRuntimeClass() const; virtual mrpt::rtti::CObject* clone() const; virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section); virtual void saveToConfigFile(mrpt::config::CConfigFileBase& target, const std::string& section) const; };
Inherited Members
public: // typedefs typedef std::shared_ptr<CObject> Ptr; typedef std::shared_ptr<const CObject> ConstPtr; typedef std::shared_ptr<CSerializable> Ptr; typedef std::shared_ptr<const CSerializable> ConstPtr; // methods CLoadableOptions& operator = (const CLoadableOptions&); CLoadableOptions& operator = (CLoadableOptions&&); 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; static const mrpt::rtti::TRuntimeClassId& GetRuntimeClassIdStatic(); virtual const mrpt::rtti::TRuntimeClassId* GetRuntimeClass() const; virtual const mrpt::rtti::TRuntimeClassId* GetRuntimeClass() const; static const mrpt::rtti::TRuntimeClassId& GetRuntimeClassIdStatic();
Typedefs
typedef std::shared_ptr<mrpt::maps ::TMapGenericParams> Ptr
A type for the associated smart pointer.
Fields
bool enableSaveAs3DObject {true}
(Default=true) If false, calling CMetricMap::getAs3DObject() will have no effects
bool enableObservationLikelihood {true}
(Default=true) Enable computing observation likelihoods with this map
bool enableObservationInsertion {true}
(Default=true) Enable inserting observations in this map
Methods
virtual const mrpt::rtti::TRuntimeClassId* GetRuntimeClass() const
Returns information about the class of an object in runtime.
virtual mrpt::rtti::CObject* clone() const
Returns a deep copy (clone) of the object, indepently of its class.
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 saveToConfigFile(mrpt::config::CConfigFileBase& target, const std::string& section) const
This method saves the options to a “.ini”-like file or memory-stored string list.
See also: