35 template <
class Derived>
36 struct loadFromRangeImpl;
37 template <
class Derived>
87 std::vector<unsigned int>
uVars;
137 virtual void resize(
size_t newLength) = 0;
166 const size_t index, std::vector<float>& point_data)
const = 0;
175 const size_t index,
const std::vector<float>& point_data) = 0;
181 const CPointsMap& anotherMap,
const size_t nPreviousPoints) = 0;
191 float x0,
float y0)
const override;
197 static_cast<float>(p0.
x),
static_cast<float>(p0.
y));
374 const std::string& filename,
bool save_as_binary)
const;
385 inline size_t size()
const {
return x.size(); }
396 unsigned long getPoint(
size_t index,
double&
x,
double&
y,
double&
z)
const;
417 size_t index,
float&
x,
float&
y,
float&
z,
float&
R,
float& G,
462 size_t index,
float x,
float y,
float z,
float R,
float G,
float B)
491 size_t& outPointsCount,
const float*& xs,
const float*& ys,
492 const float*& zs)
const;
512 template <
class VECTOR>
514 VECTOR& xs, VECTOR& ys, VECTOR& zs,
size_t decimation = 1)
const
518 const size_t Nout =
x.size() / decimation;
522 size_t idx_in, idx_out;
523 for (idx_in = 0, idx_out = 0; idx_out < Nout;
524 idx_in += decimation, ++idx_out)
526 xs[idx_out] =
x[idx_in];
527 ys[idx_out] =
y[idx_in];
528 zs[idx_out] =
z[idx_in];
540 template <
class CONTAINER>
543 std::vector<float> dmy1, dmy2, dmy3;
545 ps.resize(dmy1.size());
546 for (
size_t i = 0; i < dmy1.size(); i++)
561 std::vector<float>& xs, std::vector<float>& ys,
562 size_t decimation = 1)
const;
565 std::vector<mrpt::math::TPoint2D>& ps,
size_t decimation = 1)
const
567 std::vector<float> dmy1, dmy2;
569 ps.resize(dmy1.size());
570 for (
size_t i = 0; i < dmy1.size(); i++)
572 ps[i].x =
static_cast<double>(dmy1[i]);
573 ps[i].y =
static_cast<double>(dmy2[i]);
593 float x,
float y,
float z,
float R,
float G,
float B)
606 template <
typename VECTOR>
608 const VECTOR& X,
const VECTOR& Y,
const VECTOR& Z = VECTOR())
610 const size_t N = X.size();
612 ASSERT_(Z.size() == 0 || Z.size() == X.size())
614 const bool z_valid = !Z.empty();
616 for (
size_t i = 0; i < N; i++)
621 for (
size_t i = 0; i < N; i++)
631 const std::vector<float>& X,
const std::vector<float>& Y,
632 const std::vector<float>& Z)
640 const std::vector<float>& X,
const std::vector<float>& Y)
650 const size_t index, std::vector<float>& point_data)
const
663 const size_t index,
const std::vector<float>& point_data)
724 float maxDistForCorrespondence,
726 float& correspondencesRatio);
807 CPointsMap* anotherMap,
float minDistForFuse = 0.02f,
808 std::vector<bool>* notFusedPoints =
nullptr);
828 virtual bool isEmpty()
const override;
875 float& min_x,
float& max_x,
float& min_y,
float& max_y,
float& min_z,
881 float dmy1, dmy2, dmy3, dmy4, dmy5, dmy6;
904 const double&
R = 1,
const double& G = 1,
const double& B = 1);
962 template <
class POINTCLOUD>
965 const size_t nThis = this->
size();
969 cloud.is_dense =
false;
970 cloud.points.resize(cloud.width * cloud.height);
971 for (
size_t i = 0; i < nThis; ++i)
973 cloud.points[i].x = this->
x[i];
974 cloud.points[i].y = this->
y[i];
975 cloud.points[i].z = this->
z[i];
991 template <
class POINTCLOUD>
994 const size_t N = cloud.points.size();
997 for (
size_t i = 0; i < N; ++i)
999 cloud.points[i].x, cloud.points[i].y, cloud.points[i].z);
1014 return this->
x[idx];
1016 return this->
y[idx];
1018 return this->
z[idx];
1026 const float* p1,
const size_t idx_p2,
size_t size)
const
1030 const float d0 = p1[0] -
x[idx_p2];
1031 const float d1 = p1[1] -
y[idx_p2];
1032 return d0 * d0 + d1 * d1;
1036 const float d0 = p1[0] -
x[idx_p2];
1037 const float d1 = p1[1] -
y[idx_p2];
1038 const float d2 = p1[2] -
z[idx_p2];
1039 return d0 * d0 + d1 * d1 + d2 * d2;
1049 template <
typename BBOX>
1054 bb[0].low, bb[0].high, bb[1].low, bb[1].high, min_z, max_z);
1146 template <
class Derived>
1148 template <
class Derived>
1155 namespace global_settings
1180 static const int HAS_RGB = 0;
1182 static const int HAS_RGBf = 0;
1184 static const int HAS_RGBu8 = 0;
1188 : m_obj(*const_cast<
mrpt::maps::CPointsMap*>(&
obj))
1196 template <
typename T>
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
#define DECLARE_MEXPLUS_FROM(complete_type)
This must be inserted if a custom conversion method for MEX API is implemented in the class.
#define DECLARE_MEX_CONVERSION
This must be inserted if a custom conversion method for MEX API is implemented in the class.
Declares a virtual base class for all metric maps storage classes.
void clear()
Erase all the contents of the map.
A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors.
const std::vector< float > & getPointsBufferRef_y() const
Provides a direct access to a read-only reference of the internal point buffer.
size_t PLY_export_get_vertex_count() const override
In a base class, return the number of vertices.
void getPointFast(size_t index, float &x, float &y, float &z) const
Just like getPoint() but without checking out-of-bound index and without returning the point weight,...
bool load2D_from_text_file(const std::string &file)
Load from a text file.
void setPoint(size_t index, float x, float y, float z)
Changes a given point from map, with Z defaulting to 0 if not provided.
void applyDeletionMask(const std::vector< bool > &mask)
Remove from the map the points marked in a bool's array as "true".
float kdtree_distance(const float *p1, const size_t idx_p2, size_t size) const
Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored ...
static mrpt::utils::TColorf COLOR_3DSCENE()
bool isFilterByHeightEnabled() const
Return whether filter-by-height is enabled.
virtual void resize(size_t newLength)=0
Resizes all point buffers so they can hold the given number of points: newly created points are set t...
void changeCoordinatesReference(const mrpt::poses::CPose2D &b)
Replace each point by (pose compounding operator).
float kdtree_get_pt(const size_t idx, int dim) const
Returns the dim'th component of the idx'th point in the class:
bool internal_insertObservation(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose) override
This is a common version of CMetricMap::insertObservation() for point maps (actually,...
double m_heightfilter_z_min
The minimum and maximum height for a certain laser scan to be inserted into this map.
virtual void PLY_export_get_vertex(const size_t idx, mrpt::math::TPoint3Df &pt, bool &pt_has_color, mrpt::utils::TColorf &pt_color) const override
In a base class, will be called after PLY_export_get_vertex_count() once for each exported point.
virtual void setPointWeight(size_t index, unsigned long w)
Sets the point weight, which is ignored in all classes but those which actually store that field (Not...
virtual void copyFrom(const CPointsMap &obj)=0
Virtual assignment operator, copies as much common data (XYZ, color,...) as possible from the source ...
void saveMetricMapRepresentationToFile(const std::string &filNamePrefix) const override
This virtual method saves the map to a file "filNamePrefix"+< some_file_extension >,...
virtual void addFrom_classSpecific(const CPointsMap &anotherMap, const size_t nPreviousPoints)=0
Auxiliary method called from within addFrom() automatically, to finish the copying of class-specific ...
void fuseWith(CPointsMap *anotherMap, float minDistForFuse=0.02f, std::vector< bool > *notFusedPoints=nullptr)
Insert the contents of another map into this one, fusing the previous content with the new one.
void setPoint(size_t index, float x, float y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual float squareDistanceToClosestCorrespondence(float x0, float y0) const override
Returns the square distance from the 2D point (x0,y0) to the closest correspondence in the map.
virtual void getPoint(size_t index, float &x, float &y, float &z, float &R, float &G, float &B) const
Access to a given point from map, and its colors, if the map defines them (othersise,...
void clipOutOfRangeInZ(float zMin, float zMax)
Delete points out of the given "z" axis range have been removed.
void base_copyFrom(const CPointsMap &obj)
Helper method for ::copyFrom()
void mark_as_modified() const
Users normally don't need to call this.
virtual void getPointAllFieldsFast(const size_t index, std::vector< float > &point_data) const =0
Get all the data fields for one point as a vector: depending on the implementation class this can be ...
virtual void determineMatching3D(const mrpt::maps::CMetricMap *otherMap, const mrpt::poses::CPose3D &otherMapPose, mrpt::utils::TMatchingPairList &correspondences, const TMatchingParams ¶ms, TMatchingExtraResults &extraResults) const override
Computes the matchings between this and another 3D points map - method used in 3D-ICP.
void boundingBox(mrpt::math::TPoint3D &pMin, mrpt::math::TPoint3D &pMax) const
virtual void PLY_import_set_face_count(const size_t N) override
In a base class, reserve memory to prepare subsequent calls to PLY_import_set_face.
void setFromPCLPointCloud(const POINTCLOUD &cloud)
Loads a PCL point cloud into this MRPT class (note: this method ignores potential RGB information,...
virtual mrpt::maps::CSimplePointsMap * getAsSimplePointsMap() override
unsigned long getPoint(size_t index, mrpt::math::TPoint2D &p) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setPoint(size_t index, const mrpt::math::TPoint2D &p)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void setPointAllFieldsFast(const size_t index, const std::vector< float > &point_data)=0
Set all the data fields for one point as a vector: depending on the implementation class this can be ...
void operator+=(const CPointsMap &anotherMap)
This operator is synonymous with addFrom.
bool m_largestDistanceFromOriginIsUpdated
Auxiliary variables used in "getLargestDistanceFromOrigin".
bool save2D_to_text_file(const std::string &file) const
Save to a text file.
bool m_heightfilter_enabled
Whether or not (default=not) filter the input points by height.
virtual void setPoint(size_t index, float x, float y, float z, float R, float G, float B)
overload (RGB data is ignored in classes without color information)
void setAllPoints(const std::vector< float > &X, const std::vector< float > &Y, const std::vector< float > &Z)
Set all the points at once from vectors with X,Y and Z coordinates.
bool empty() const
STL-like method to check whether the map is empty:
float getLargestDistanceFromOriginNoRecompute(bool &output_is_valid) const
Like getLargestDistanceFromOrigin() but returns in output_is_valid = false if the distance was not al...
void setPointAllFields(const size_t index, const std::vector< float > &point_data)
Set all the data fields for one point as a vector: depending on the implementation class this can be ...
virtual void determineMatching2D(const mrpt::maps::CMetricMap *otherMap, const mrpt::poses::CPose2D &otherMapPose, mrpt::utils::TMatchingPairList &correspondences, const TMatchingParams ¶ms, TMatchingExtraResults &extraResults) const override
Computes the matching between this and another 2D point map, which includes finding:
size_t kdtree_get_point_count() const
Must return the number of data points.
void getPCLPointCloud(POINTCLOUD &cloud) const
Use to convert this MRPT point cloud object into a PCL point cloud object (PointCloud<PointXYZ>).
virtual void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map.
virtual bool hasColorPoints() const
Returns true if the point map has a color field for each point.
void getHeightFilterLevels(double &_z_min, double &_z_max) const
Get the min/max Z levels for points to be actually inserted in the map.
size_t size() const
Returns the number of stored points in the map.
float getLargestDistanceFromOrigin() const
This method returns the largest distance from the origin to any of the points, such as a sphere cente...
size_t PLY_export_get_face_count() const override
In a base class, return the number of faces.
void enableFilterByHeight(bool enable=true)
Enable/disable the filter-by-height functionality.
float squareDistanceToClosestCorrespondenceT(const mrpt::math::TPoint2D &p0) const
void getPointsBuffer(size_t &outPointsCount, const float *&xs, const float *&ys, const float *&zs) const
Provides a direct access to points buffer, or nullptr if there is no points in the map.
virtual const mrpt::maps::CSimplePointsMap * getAsSimplePointsMap() const override
If the map is a simple points map or it's a multi-metric map that contains EXACTLY one simple points ...
void insertPoint(const mrpt::math::TPoint3D &p)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setHeightFilterLevels(const double _z_min, const double _z_max)
Set the min/max Z levels for points to be actually inserted in the map (only if enableFilterByHeight(...
virtual void addFrom(const CPointsMap &anotherMap)
Adds all the points from anotherMap to this map, without fusing.
virtual void insertPointFast(float x, float y, float z=0)=0
The virtual method for insertPoint() without calling mark_as_modified()
unsigned long getPoint(size_t index, float &x, float &y, float &z) const
Access to a given point from map, as a 2D point.
void getAllPoints(std::vector< mrpt::math::TPoint2D > &ps, size_t decimation=1) const
virtual ~CPointsMap()
Virtual destructor.
void insertPoint(float x, float y, float z=0)
Provides a way to insert (append) individual points into the map: the missing fields of child classes...
void boundingBox(float &min_x, float &max_x, float &min_y, float &max_y, float &min_z, float &max_z) const
Computes the bounding box of all the points, or (0,0 ,0,0, 0,0) if there are no points.
void getAllPoints(VECTOR &xs, VECTOR &ys, VECTOR &zs, size_t decimation=1) const
Returns a copy of the 2D/3D points as a std::vector of float coordinates.
virtual void setPointFast(size_t index, float x, float y, float z)=0
Changes the coordinates of the given point (0-based index), without checking for out-of-bounds and wi...
void getPointAllFields(const size_t index, std::vector< float > &point_data) const
Get all the data fields for one point as a vector: depending on the implementation class this can be ...
TLikelihoodOptions likelihoodOptions
void loadFromVelodyneScan(const mrpt::obs::CObservationVelodyneScan &scan, const mrpt::poses::CPose3D *robotPose=nullptr)
Like loadFromRangeScan() for Velodyne 3D scans.
void extractCylinder(const mrpt::math::TPoint2D ¢er, const double radius, const double zmin, const double zmax, CPointsMap *outMap)
Extracts the points in the map within a cylinder in 3D defined the provided radius and zmin/zmax valu...
virtual void setSize(size_t newLength)=0
Resizes all point buffers so they can hold the given number of points, erasing all previous contents ...
bool m_boundingBoxIsUpdated
void extractPoints(const mrpt::math::TPoint3D &corner1, const mrpt::math::TPoint3D &corner2, CPointsMap *outMap, const double &R=1, const double &G=1, const double &B=1)
Extracts the points in the map within the area defined by two corners.
virtual void reserve(size_t newLength)=0
Reserves memory for a given number of points: the size of the map does not change,...
virtual void loadFromRangeScan(const mrpt::obs::CObservation3DRangeScan &rangeScan, const mrpt::poses::CPose3D *robotPose=nullptr)=0
Overload of loadFromRangeScan() for 3D range scans (for example, Kinect observations).
virtual bool loadPCDFile(const std::string &filename)
Load the point cloud from a PCL PCD file (requires MRPT built against PCL)
void setPoint(size_t index, const mrpt::math::TPoint3D &p)
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual unsigned int getPointWeight(size_t index) const
Gets the point weight, which is ignored in all classes (defaults to 1) but in those which actually st...
virtual void loadFromRangeScan(const mrpt::obs::CObservation2DRangeScan &rangeScan, const mrpt::poses::CPose3D *robotPose=nullptr)=0
Transform the range scan into a set of cartessian coordinated points.
mrpt::obs::CSinCosLookUpTableFor2DScans m_scans_sincos_cache
Cache of sin/cos values for the latest 2D scan geometries.
void setAllPointsTemplate(const VECTOR &X, const VECTOR &Y, const VECTOR &Z=VECTOR())
Set all the points at once from vectors with X,Y and Z coordinates (if Z is not provided,...
const std::vector< float > & getPointsBufferRef_x() const
Provides a direct access to a read-only reference of the internal point buffer.
void compute3DDistanceToMesh(const mrpt::maps::CMetricMap *otherMap2, const mrpt::poses::CPose3D &otherMapPose, float maxDistForCorrespondence, mrpt::utils::TMatchingPairList &correspondences, float &correspondencesRatio)
Computes the matchings between this and another 3D points map.
virtual bool isEmpty() const override
Returns true if the map is empty/no observation has been inserted.
bool load3D_from_text_file(const std::string &file)
Load from a text file.
virtual double internal_computeObservationLikelihood(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood()
void getAllPoints(CONTAINER &ps, size_t decimation=1) const
Gets all points as a STL-like container.
const std::vector< float > & getPointsBufferRef_z() const
Provides a direct access to a read-only reference of the internal point buffer.
TInsertionOptions insertionOptions
The options used when inserting observations in the map.
float compute3DMatchingRatio(const mrpt::maps::CMetricMap *otherMap, const mrpt::poses::CPose3D &otherMapPose, const TMatchingRatioParams ¶ms) const override
Computes the ratio in [0,1] of correspondences between "this" and the "otherMap" map,...
std::vector< float > x
The point coordinates.
void insertAnotherMap(const CPointsMap *otherMap, const mrpt::poses::CPose3D &otherPose)
Insert the contents of another map into this one with some geometric transformation,...
void setAllPoints(const std::vector< float > &X, const std::vector< float > &Y)
Set all the points at once from vectors with X and Y coordinates (Z=0).
bool kdtree_get_bbox(BBOX &bb) const
virtual bool savePCDFile(const std::string &filename, bool save_as_binary) const
Save the point cloud as a PCL PCD file, in either ASCII or binary format (requires MRPT built against...
virtual void insertPoint(float x, float y, float z, float R, float G, float B)
overload (RGB data is ignored in classes without color information)
bool load2Dor3D_from_text_file(const std::string &file, const bool is_3D)
2D or 3D generic implementation of load2D_from_text_file and load3D_from_text_file
bool save3D_to_text_file(const std::string &file) const
Save to a text file.
float m_largestDistanceFromOrigin
Auxiliary variables used in "getLargestDistanceFromOrigin".
double m_heightfilter_z_max
unsigned long getPoint(size_t index, mrpt::math::TPoint3D &p) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void PLY_import_set_vertex(const size_t idx, const mrpt::math::TPoint3Df &pt, const mrpt::utils::TColorf *pt_color=nullptr) override
In a base class, will be called after PLY_import_set_vertex_count() once for each loaded point.
void clipOutOfRange(const mrpt::math::TPoint2D &point, float maxRange)
Delete points which are more far than "maxRange" away from the given "point".
A cloud of points in 2D or 3D, which can be built from a sequence of laser scans.
A numeric matrix of compile-time fixed size.
A generic adaptor class for providing Nearest Neighbor (NN) lookup via the nanoflann library.
void kdtree_mark_as_outdated() const
To be called by child classes when KD tree data changes.
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
Declares a class derived from "CObservation" that encapsules a 3D range scan measurement,...
Declares a class that represents any robot's observation.
A CObservation-derived class for RAW DATA (and optionally, point cloud) of scans from 3D Velodyne LID...
A smart look-up-table (LUT) of sin/cos values for 2D laser scans.
std::shared_ptr< CSetOfObjects > Ptr
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).
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
A virtual base class that implements the capability of exporting 3D point clouds and faces to a file ...
A virtual base class that implements the capability of importing 3D point clouds and faces from a fil...
size_t size() const
Get number of points.
void getPointXYZ(const size_t idx, T &x, T &y, T &z) const
Get XYZ coordinates of i'th point.
PointCloudAdapter(const mrpt::maps::CPointsMap &obj)
Constructor (accept a const ref for convenience)
void setPointXYZ(const size_t idx, const coords_t x, const coords_t y, const coords_t z)
Set XYZ coordinates of i'th point.
float coords_t
The type of each point XYZ coordinates.
void resize(const size_t N)
Set number of points (to uninitialized values)
mrpt::maps::CPointsMap & m_obj
An adapter to different kinds of point cloud object.
A helper base class for those PointCloudAdapter<> which do not handle RGB data; it declares needed in...
GLsizei GLsizei GLuint * obj
GLubyte GLubyte GLubyte GLubyte w
GLenum const GLfloat * params
GLsizei const GLfloat * value
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
#define ASSERT_EQUAL_(__A, __B)
#define ASSERT_BELOW_(__A, __B)
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
void POINTSMAPS_3DOBJECT_POINTSIZE(float value)
The size of points when exporting with getAs3DObject() (default=3.0) Affects to:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
unsigned __int32 uint32_t
With this struct options are provided to the observation insertion process.
bool disableDeletion
If set to false (default=true) points in the same plane as the inserted scan and inside the free spac...
TInsertionOptions()
Initilization of default parameters.
void dumpToTextStream(mrpt::utils::CStream &out) const override
This method should clearly display all the contents of the structure in textual form,...
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.
float minDistBetweenLaserPoints
The minimum distance between points (in 3D): If two points are too close, one of them is not inserted...
bool insertInvalidPoints
Points with x,y,z coordinates set to zero will also be inserted.
void writeToStream(mrpt::utils::CStream &out) const
Binary dump to stream - for usage in derived classes' serialization.
bool fuseWithExisting
If set to true (default=false), inserted points are "fused" with previously existent ones.
void readFromStream(mrpt::utils::CStream &in)
Binary dump to stream - for usage in derived classes' serialization.
bool isPlanarMap
If set to true, only HORIZONTAL (in the XY plane) measurements will be inserted in the map (Default v...
float maxDistForInterpolatePoints
The maximum distance between two points to interpolate between them (ONLY when also_interpolate=true)
bool also_interpolate
If set to true, far points (<1m) are interpolated with samples at "minDistSqrBetweenLaserPoints" inte...
float horizontalTolerance
The tolerance in rads in pitch & roll for a laser scan to be considered horizontal,...
bool addToExistingPointsMap
Applicable to "loadFromRangeScan" only! If set to false, the points from the scan are loaded,...
Helper struct used for internal_loadFromRangeScan2D_prepareOneRange()
std::vector< uint8_t > bVars
mrpt::math::CMatrixDouble44 HM
Homog matrix of the local sensor pose within the robot.
std::vector< unsigned int > uVars
TLaserRange2DInsertContext(const mrpt::obs::CObservation2DRangeScan &_rangeScan)
const mrpt::obs::CObservation2DRangeScan & rangeScan
std::vector< float > fVars
Extra variables to be used as desired by the derived class.
Helper struct used for internal_loadFromRangeScan3D_prepareOneRange()
mrpt::math::CMatrixDouble44 HM
Homog matrix of the local sensor pose within the robot.
TLaserRange3DInsertContext(const mrpt::obs::CObservation3DRangeScan &_rangeScan)
std::vector< uint8_t > bVars
float scan_x
In internal_loadFromRangeScan3D_prepareOneRange, these are the local coordinates of the scan points b...
std::vector< float > fVars
Extra variables to be used as desired by the derived class.
const mrpt::obs::CObservation3DRangeScan & rangeScan
std::vector< unsigned int > uVars
Options used when evaluating "computeObservationLikelihood" in the derived classes.
double sigma_dist
Sigma squared (variance, in meters) of the exponential used to model the likelihood (default= 0....
uint32_t decimation
Speed up the likelihood computation by considering only one out of N rays (default=10)
double max_corr_distance
Maximum distance in meters to consider for the numerator divided by "sigma_dist", so that each point ...
void writeToStream(mrpt::utils::CStream &out) const
Binary dump to stream - for usage in derived classes' serialization.
virtual ~TLikelihoodOptions()
void dumpToTextStream(mrpt::utils::CStream &out) const override
This method should clearly display all the contents of the structure in textual form,...
TLikelihoodOptions()
Initilization of default parameters.
void readFromStream(mrpt::utils::CStream &in)
Binary dump to stream - for usage in derived classes' serialization.
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.
Parameters for the determination of matchings between point clouds, etc.
Parameters for CMetricMap::compute3DMatchingRatio()
double x
X,Y,Z coordinates.
Lightweight 3D point (float version).
A RGB color - floats in the range [0,1].