45 virtual void copyFrom(
const CPointPDF &o) = 0;
53 virtual void bayesianFusion(
const CPointPDF &p1,
const CPointPDF &p2,
const double &minMahalanobisDistToDrop = 0) = 0 ;
55 enum { is_3D_val = 1 };
56 static inline bool is_3D() {
return is_3D_val!=0; }
57 enum { is_PDF_val = 1 };
58 static inline bool is_PDF() {
return is_PDF_val!=0; }
64 template <
class OPENGL_SETOFOBJECTSPTR>
66 typedef typename OPENGL_SETOFOBJECTSPTR::value_type SETOFOBJECTS;
73 template <
class OPENGL_SETOFOBJECTSPTR,
class OPENGL_SETOFOBJECTS>
75 typedef typename OPENGL_SETOFOBJECTSPTR::value_type SETOFOBJECTS;
The virtual base class which provides a unified interface for all persistent objects in MRPT...
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
void getAs3DObject(OPENGL_SETOFOBJECTSPTR &out_obj) const
Returns a 3D representation of this PDF (it doesn't clear the current contents of out_obj...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
A class used to store a 3D point.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
OPENGL_SETOFOBJECTSPTR getAs3DObject() const
Returns a 3D representation of this PDF.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
Declares a class that represents a Probability Distribution function (PDF) of a 3D point (x...
CSetOfObjectsPtr posePDF2opengl(const POSE_PDF &o)
Returns a representation of a the PDF - this is just an auxiliary function, it's more natural to call...