59 virtual
bool internal_insertObservation( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D *robotPose = NULL )
MRPT_OVERRIDE;
60 double internal_computeObservationLikelihood( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D &takenFrom )
MRPT_OVERRIDE;
66 void resize(const
size_t N);
69 const
CBeacon& operator [](
size_t i)
const {
96 m_beacons.push_back( m );
178 bool saveToMATLABScript3D(
180 const char *style=
"b",
181 float confInterval = 0.95f )
const;
189 virtual void determineMatching2D(
204 void computeMatchingWith3DLandmarks(
207 float &correspondencesRatio,
208 std::vector<bool> &otherCorrespondences)
const;
229 void simulateBeaconReadings(
230 const
mrpt::poses::CPose3D &in_robotPose,
231 const
mrpt::poses::CPoint3D &in_sensorLocationOnRobot,
232 mrpt::obs::CObservationBeaconRanges &out_Observations ) const;
240 void saveMetricMapRepresentationToFile(const
std::
string &filNamePrefix ) const
MRPT_OVERRIDE;
float MC_thresholdNegligible
Threshold for the maximum difference from the maximun (log) weight in the set of samples for erasing ...
Parameters for CMetricMap::compute3DMatchingRatio()
const_iterator end() const
#define MAP_DEFINITION_END(_CLASS_NAME_, _LINKAGE_)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This struct contains data for choosing the method by which new beacons are inserted in the map...
With this struct options are provided to the likelihood computations.
void saveToTextFile(const std::string &file, mrpt::math::TMatrixTextFileFormat fileFormat=mrpt::math::MATRIX_FORMAT_ENG, bool appendMRPTHeader=false, const std::string &userHeader=std::string()) const
Save matrix to a text file, compatible with MATLAB text format (see also the methods of matrix classe...
std::deque< CBeacon >::iterator iterator
const Scalar * const_iterator
bool MC_performResampling
If set to false (default), the samples will be generated the first time a beacon is observed...
This class allows loading and storing values and vectors of different types from a configuration text...
TSequenceBeacons m_beacons
The individual beacons.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
float SOG_maxDistBetweenGaussians
A parameter for initializing 2D/3D SOGs.
float rangeStd
The standard deviation used for Beacon ranges likelihood (default=0.08m).
VALUE & operator[](const KEY &key)
Write/read via [i] operator, that creates an element if it didn't exist already.
A class for storing a map of 3D probabilistic beacons, using a Montecarlo, Gaussian, or Sum of Gaussians (SOG) representation (for range-only SLAM).
float SOG_separationConstant
Constant used to compute the std.
void push_back(const CBeacon &m)
Inserts a copy of the given mode into the SOG.
GLsizei const GLchar ** string
std::deque< CBeacon > TSequenceBeacons
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Declares a virtual base class for all metric maps storage classes.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
bool insertAsMonteCarlo
Insert a new beacon as a set of montecarlo samples (default=true), or, if false, as a sum of gaussian...
GLsizei GLsizei GLchar * source
const_iterator begin() const
std::deque< CBeacon >::const_iterator const_iterator
unsigned int MC_numSamplesPerMeter
Number of particles per meter of range, i.e.
float MC_maxStdToGauss
The threshold for the maximum std (X,Y,and Z) before colapsing the particles into a Gaussian PDF (def...
float MC_afterResamplingNoise
The std.dev.
Parameters for the determination of matchings between point clouds, etc.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
GLenum const GLfloat * params
The class for storing individual "beacon landmarks" under a variety of 3D position PDF distributions...
#define MAP_DEFINITION_START(_CLASS_NAME_, _LINKAGE_)
Add a MAP_DEFINITION_START() ...
float SOG_thresholdNegligible
Threshold for the maximum difference from the maximun (log) weight in the SOG for erasing a given mod...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...