With this struct options are provided to the observation insertion process.
Definition at line 79 of file COctoMapBase.h.
#include <mrpt/maps/COctoMapBase.h>
Public Member Functions | |
TInsertionOptions (myself_t &parent) | |
Initilization of default parameters. More... | |
TInsertionOptions () | |
Especial constructor, not attached to a real COctoMap object: used only in limited situations, since get*() methods don't work, etc. More... | |
TInsertionOptions & | operator= (const TInsertionOptions &o) |
void | loadFromConfigFile (const mrpt::utils::CConfigFileBase &source, const std::string §ion) override |
This method load the options from a ".ini"-like file or memory-stored string list. More... | |
void | dumpToTextStream (mrpt::utils::CStream &out) const override |
This method should clearly display all the contents of the structure in textual form, sending it to a CStream. More... | |
void | setOccupancyThres (double prob) |
(key name in .ini files: "occupancyThres") sets the threshold for occupancy (sensor model) (Default=0.5) More... | |
void | setProbHit (double prob) |
(key name in .ini files: "probHit")sets the probablility for a "hit" (will be converted to logodds) - sensor model (Default=0.7) More... | |
void | setProbMiss (double prob) |
(key name in .ini files: "probMiss")sets the probablility for a "miss" (will be converted to logodds) - sensor model (Default=0.4) More... | |
void | setClampingThresMin (double thresProb) |
(key name in .ini files: "clampingThresMin")sets the minimum threshold for occupancy clamping (sensor model) (Default=0.1192, -2 in log odds) More... | |
void | setClampingThresMax (double thresProb) |
(key name in .ini files: "clampingThresMax")sets the maximum threshold for occupancy clamping (sensor model) (Default=0.971, 3.5 in log odds) More... | |
double | getOccupancyThres () const |
float | getOccupancyThresLog () const |
double | getProbHit () const |
float | getProbHitLog () const |
double | getProbMiss () const |
float | getProbMissLog () const |
double | getClampingThresMin () const |
float | getClampingThresMinLog () const |
double | getClampingThresMax () const |
float | getClampingThresMaxLog () const |
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. More... | |
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. More... | |
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. More... | |
void | dumpToConsole () const |
Just like dumpToTextStream() but sending the text to the console (std::cout) More... | |
Public Attributes | |
double | maxrange |
maximum range for how long individual beams are inserted (default -1: complete beam) More... | |
bool | pruning |
whether the tree is (losslessly) pruned after insertion (default: true) More... | |
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. More... | |
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) |
Private Attributes | |
mrpt::utils::ignored_copy_ptr< myself_t > | m_parent |
double | occupancyThres |
double | probHit |
double | probMiss |
double | clampingThresMin |
double | clampingThresMax |
mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::TInsertionOptions | ( | myself_t & | parent | ) |
Initilization of default parameters.
Definition at line 259 of file COctoMapBase_impl.h.
mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::TInsertionOptions | ( | ) |
Especial constructor, not attached to a real COctoMap object: used only in limited situations, since get*() methods don't work, etc.
Definition at line 274 of file COctoMapBase_impl.h.
|
inherited |
Just like dumpToTextStream() but sending the text to the console (std::cout)
Definition at line 44 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::dumpToTextStream(), and loadable_opts_my_cout.
Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel(), and mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::printParams().
|
overridevirtual |
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.
Definition at line 324 of file COctoMapBase_impl.h.
References LOADABLEOPTS_DUMP_VAR, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 65 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 59 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 54 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
Definition at line 49 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 71 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
inline |
Definition at line 210 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::clampingThresMax, and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
Definition at line 219 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
|
inline |
Definition at line 195 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::clampingThresMin, and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
Definition at line 204 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
|
inline |
Definition at line 153 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent, and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::occupancyThres.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
Definition at line 161 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
|
inline |
Definition at line 167 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent, and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::probHit.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
Definition at line 175 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
|
inline |
Definition at line 180 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent, and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::probMiss.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
Definition at line 188 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
|
overridevirtual |
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.
Definition at line 356 of file COctoMapBase_impl.h.
References MRPT_LOAD_CONFIG_VAR.
|
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.
Definition at line 22 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::loadFromConfigFile().
Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::loadParams().
|
inline |
Definition at line 87 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::clampingThresMax, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::clampingThresMin, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMax(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMin(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getOccupancyThres(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbHit(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbMiss(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::maxrange, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::occupancyThres, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::probHit, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::probMiss, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::pruning, mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setClampingThresMax(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setClampingThresMin(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setOccupancyThres(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setProbHit(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setProbMiss().
|
virtualinherited |
This method saves the options to a ".ini"-like file or memory-stored string list.
Reimplemented in mrpt::vision::TMultiResDescOptions, mrpt::vision::TMultiResDescMatchOptions, mrpt::nav::CPTG_RobotShape_Circular, mrpt::nav::CPTG_RobotShape_Polygonal, mrpt::nav::CParameterizedTrajectoryGenerator, mrpt::nav::CAbstractPTGBasedReactive::TAbstractPTGNavigatorParams, mrpt::nav::CAbstractNavigator::TAbstractNavigatorParams, mrpt::nav::CPTG_DiffDrive_CollisionGridBased, mrpt::nav::CWaypointsNavigator::TWaypointsNavigatorParams, mrpt::nav::CHolonomicFullEval::TOptions, mrpt::bayes::CParticleFilter::TParticleFilterOptions, mrpt::nav::CReactiveNavigationSystem::TReactiveNavigatorParams, mrpt::nav::CHolonomicND::TOptions, mrpt::nav::CMultiObjectiveMotionOptimizerBase::TParamsBase, mrpt::nav::CHolonomicVFF::TOptions, mrpt::maps::CPointCloudFilterByDistance::TOptions, mrpt::nav::CPTG_DiffDrive_C, mrpt::nav::CPTG_DiffDrive_alpha, mrpt::nav::CMultiObjMotionOpt_Scalarization::TParams, mrpt::nav::CPTG_DiffDrive_CC, mrpt::nav::CPTG_DiffDrive_CCS, mrpt::nav::CPTG_DiffDrive_CS, and mrpt::nav::CPTG_Holo_Blend.
Definition at line 29 of file CLoadableOptions.cpp.
References MRPT_UNUSED_PARAM.
Referenced by mrpt::utils::CLoadableOptions::dumpToTextStream(), and mrpt::utils::CLoadableOptions::saveToConfigFileName().
|
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.
Definition at line 37 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::saveToConfigFile().
|
inline |
(key name in .ini files: "clampingThresMax")sets the maximum threshold for occupancy clamping (sensor model) (Default=0.971, 3.5 in log odds)
Definition at line 146 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
(key name in .ini files: "clampingThresMin")sets the minimum threshold for occupancy clamping (sensor model) (Default=0.1192, -2 in log odds)
Definition at line 138 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
(key name in .ini files: "occupancyThres") sets the threshold for occupancy (sensor model) (Default=0.5)
Definition at line 119 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
(key name in .ini files: "probHit")sets the probablility for a "hit" (will be converted to logodds) - sensor model (Default=0.7)
Definition at line 125 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
inline |
(key name in .ini files: "probMiss")sets the probablility for a "miss" (will be converted to logodds) - sensor model (Default=0.4)
Definition at line 131 of file COctoMapBase.h.
References mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::m_parent.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 236 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMax(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 233 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMin(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 225 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMax(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMaxLog(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMin(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getClampingThresMinLog(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getOccupancyThres(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getOccupancyThresLog(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbHit(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbHitLog(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbMiss(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbMissLog(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setClampingThresMax(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setClampingThresMin(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setOccupancyThres(), mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setProbHit(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::setProbMiss().
double mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::maxrange |
maximum range for how long individual beams are inserted (default -1: complete beam)
Definition at line 112 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< octomap::OcTree, octomap::OcTreeNode >::insertRay(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 227 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getOccupancyThres(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 229 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbHit(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
|
private |
Definition at line 231 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::getProbMiss(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
bool mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::pruning |
whether the tree is (losslessly) pruned after insertion (default: true)
Definition at line 115 of file COctoMapBase.h.
Referenced by mrpt::maps::COctoMapBase< octomap::OcTree, octomap::OcTreeNode >::insertRay(), and mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions::operator=().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |