With this struct options are provided to the observation insertion process.
Definition at line 164 of file maps/CPointsMap.h.
#include <mrpt/maps/CPointsMap.h>
Public Member Functions | |
TInsertionOptions () | |
Initilization of default parameters. | |
void | loadFromConfigFile (const mrpt::utils::CConfigFileBase &source, const std::string §ion) MRPT_OVERRIDE |
This method load the options from a ".ini"-like file or memory-stored string list. | |
void | dumpToTextStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE |
This method should clearly display all the contents of the structure in textual form, sending it to a CStream. | |
void | writeToStream (mrpt::utils::CStream &out) const |
Binary dump to stream - for usage in derived classes' serialization. | |
void | readFromStream (mrpt::utils::CStream &in) |
Binary dump to stream - for usage in derived classes' serialization. | |
void | loadFromConfigFileName (const std::string &config_file, const std::string §ion) |
Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file. | |
virtual void | saveToConfigFile (mrpt::utils::CConfigFileBase &target, const std::string §ion) const |
This method saves the options to a ".ini"-like file or memory-stored string list. | |
void | saveToConfigFileName (const std::string &config_file, const std::string §ion) const |
Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file. | |
void | dumpToConsole () const |
Just like dumpToTextStream() but sending the text to the console (std::cout) | |
Public Attributes | |
float | minDistBetweenLaserPoints |
The minimum distance between points (in 3D): If two points are too close, one of them is not inserted into the map. Default is 0.02 meters. | |
bool | addToExistingPointsMap |
Applicable to "loadFromRangeScan" only! If set to false, the points from the scan are loaded, clearing all previous content. Default is false. | |
bool | also_interpolate |
If set to true, far points (<1m) are interpolated with samples at "minDistSqrBetweenLaserPoints" intervals (Default is false). | |
bool | disableDeletion |
If set to false (default=true) points in the same plane as the inserted scan and inside the free space, are erased: i.e. they don't exist yet. | |
bool | fuseWithExisting |
If set to true (default=false), inserted points are "fused" with previously existent ones. This shrink the size of the points map, but its slower. | |
bool | isPlanarMap |
If set to true, only HORIZONTAL (in the XY plane) measurements will be inserted in the map (Default value is false, thus 3D maps are generated). | |
float | horizontalTolerance |
The tolerance in rads in pitch & roll for a laser scan to be considered horizontal, considered only when isPlanarMap=true (default=0). | |
float | maxDistForInterpolatePoints |
The maximum distance between two points to interpolate between them (ONLY when also_interpolate=true) | |
bool | insertInvalidPoints |
Points with x,y,z coordinates set to zero will also be inserted. | |
Static Protected Member Functions | |
static void | dumpVar_int (CStream &out, const char *varName, int v) |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. | |
static void | dumpVar_float (CStream &out, const char *varName, float v) |
static void | dumpVar_double (CStream &out, const char *varName, double v) |
static void | dumpVar_bool (CStream &out, const char *varName, bool v) |
static void | dumpVar_string (CStream &out, const char *varName, const std::string &v) |
mrpt::maps::CPointsMap::TInsertionOptions::TInsertionOptions | ( | ) |
Initilization of default parameters.
|
inherited |
Just like dumpToTextStream() but sending the text to the console (std::cout)
|
virtual |
This method should clearly display all the contents of the structure in textual form, sending it to a CStream.
The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.
Reimplemented from mrpt::utils::CLoadableOptions.
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
|
staticprotectedinherited |
|
virtual |
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:
Implements mrpt::utils::CLoadableOptions.
|
inherited |
Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file.
void mrpt::maps::CPointsMap::TInsertionOptions::readFromStream | ( | mrpt::utils::CStream & | in | ) |
Binary dump to stream - for usage in derived classes' serialization.
|
virtualinherited |
This method saves the options to a ".ini"-like file or memory-stored string list.
Reimplemented in mrpt::nav::CHolonomicND::TOptions, mrpt::nav::CHolonomicVFF::TOptions, mrpt::vision::TMultiResDescMatchOptions, and mrpt::vision::TMultiResDescOptions.
|
inherited |
Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file.
void mrpt::maps::CPointsMap::TInsertionOptions::writeToStream | ( | mrpt::utils::CStream & | out | ) | const |
Binary dump to stream - for usage in derived classes' serialization.
bool mrpt::maps::CPointsMap::TInsertionOptions::addToExistingPointsMap |
Applicable to "loadFromRangeScan" only! If set to false, the points from the scan are loaded, clearing all previous content. Default is false.
Definition at line 172 of file maps/CPointsMap.h.
bool mrpt::maps::CPointsMap::TInsertionOptions::also_interpolate |
If set to true, far points (<1m) are interpolated with samples at "minDistSqrBetweenLaserPoints" intervals (Default is false).
Definition at line 173 of file maps/CPointsMap.h.
bool mrpt::maps::CPointsMap::TInsertionOptions::disableDeletion |
If set to false (default=true) points in the same plane as the inserted scan and inside the free space, are erased: i.e. they don't exist yet.
Definition at line 174 of file maps/CPointsMap.h.
bool mrpt::maps::CPointsMap::TInsertionOptions::fuseWithExisting |
If set to true (default=false), inserted points are "fused" with previously existent ones. This shrink the size of the points map, but its slower.
Definition at line 175 of file maps/CPointsMap.h.
float mrpt::maps::CPointsMap::TInsertionOptions::horizontalTolerance |
The tolerance in rads in pitch & roll for a laser scan to be considered horizontal, considered only when isPlanarMap=true (default=0).
Definition at line 177 of file maps/CPointsMap.h.
bool mrpt::maps::CPointsMap::TInsertionOptions::insertInvalidPoints |
Points with x,y,z coordinates set to zero will also be inserted.
Definition at line 179 of file maps/CPointsMap.h.
bool mrpt::maps::CPointsMap::TInsertionOptions::isPlanarMap |
If set to true, only HORIZONTAL (in the XY plane) measurements will be inserted in the map (Default value is false, thus 3D maps are generated).
Definition at line 176 of file maps/CPointsMap.h.
float mrpt::maps::CPointsMap::TInsertionOptions::maxDistForInterpolatePoints |
The maximum distance between two points to interpolate between them (ONLY when also_interpolate=true)
Definition at line 178 of file maps/CPointsMap.h.
float mrpt::maps::CPointsMap::TInsertionOptions::minDistBetweenLaserPoints |
The minimum distance between points (in 3D): If two points are too close, one of them is not inserted into the map. Default is 0.02 meters.
Definition at line 171 of file maps/CPointsMap.h.
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Tue Jan 17 22:40:29 UTC 2023 |