Go to the documentation of this file.
9 #ifndef CPoseRandomSampler_H
10 #define CPoseRandomSampler_H
52 std::unique_ptr<const CPose3DPDF>
m_pdf3D;
CMatrixTemplateNumeric< double > CMatrixDouble
Declares a matrix of double numbers (non serializable).
mrpt::math::CMatrixDouble66 m_fastdraw_gauss_Z6
CPose2D & getSamplingMean2D(CPose2D &out_mean) const
If the object has been loaded with setPosePDF this method returns the 2D pose mean samples will be dr...
void setPosePDF(const CPose3DPDF &pdf)
This method must be called to select the PDF from which to draw samples.
std::unique_ptr< const CPose3DPDF > m_pdf3D
A local copy of the PDF.
void setPosePDF(const CPosePDF *pdf)
This method must be called to select the PDF from which to draw samples.
void getOriginalPDFCov3D(mrpt::math::CMatrixDouble66 &cov6x6) const
Retrieves the 6x6 covariance of the original PDF in .
CPose2D m_fastdraw_gauss_M_2D
bool isPrepared() const
Return true if samples can be generated, which only requires a previous call to setPosePDF.
Declares a class that represents a Probability Density Function (PDF) of a 3D pose (6D actually).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CPose2D & drawSample(CPose2D &p) const
Generate a new sample from the selected PDF.
std::unique_ptr< const CPosePDF > m_pdf2D
A local copy of the PDF.
CPoseRandomSampler & operator=(const CPoseRandomSampler &o)
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).
void do_sample_3D(CPose3D &p) const
Used internally: sample from m_pdf3D.
An efficient generator of random samples drawn from a given 2D (CPosePDF) or 3D (CPose3DPDF) pose pro...
Declares a class that represents a probability density function (pdf) of a 2D pose (x,...
void getOriginalPDFCov2D(mrpt::math::CMatrixDouble33 &cov3x3) const
Retrieves the 3x3 covariance of the original PDF in .
CPoseRandomSampler()
Default constructor.
void getOriginalPDFCov2D(mrpt::math::CMatrixDouble &cov3x3) const
Retrieves the 3x3 covariance of the original PDF in .
void getOriginalPDFCov3D(mrpt::math::CMatrixDouble &cov6x6) const
Retrieves the 6x6 covariance of the original PDF in .
std::shared_ptr< CPose3DPDF > Ptr
mrpt::math::CMatrixDouble33 m_fastdraw_gauss_Z3
std::shared_ptr< CPosePDF > Ptr
CPose3D & getSamplingMean3D(CPose3D &out_mean) const
If the object has been loaded with setPosePDF this method returns the 3D pose mean samples will be dr...
void do_sample_2D(CPose2D &p) const
Used internally: sample from m_pdf2D.
void clear()
Clear internal pdf.
void setPosePDF(const CPosePDF &pdf)
This method must be called to select the PDF from which to draw samples.
CPose3D m_fastdraw_gauss_M_3D
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |