Go to the documentation of this file.
9 #ifndef CPose3DPDFGaussian_H
10 #define CPose3DPDFGaussian_H
20 class CPosePDFGaussian;
21 class CPose3DQuatPDFGaussian;
45 void assureSymmetry();
94 mean_point = this->
mean;
97 void asString(std::string &s)
const;
128 void drawManySamples(
size_t N, std::vector<mrpt::math::CVectorDouble> & outSamples )
const MRPT_OVERRIDE;
168 double evaluatePDF(
const CPose3D &x )
const;
172 double evaluateNormalizedPDF(
const CPose3D &x )
const;
217 namespace global_settings
CPose2D BASE_IMPEXP operator-(const CPose2D &p)
Unary - operator: return the inverse pose "-p" (Note that is NOT the same than a pose with negative x...
Declares a class that represents a Probability Density function (PDF) of a 3D pose .
std::string asString() const
void getMean(CPose3D &mean_pose) const MRPT_OVERRIDE
Returns an estimate of the pose, (the mean, or mathematical expectation of the PDF).
void getCovarianceAndMean(mrpt::math::CMatrixDouble66 &cov, CPose3D &mean_point) const MRPT_OVERRIDE
Returns an estimate of the pose covariance matrix (6x6 cov matrix) and the mean, both at once.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
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.
Eigen::Matrix< dataType, 4, 4 > inverse(Eigen::Matrix< dataType, 4, 4 > &pose)
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...
BASE_IMPEXP bool USE_SUT_QUAT2EULER_CONVERSION
If set to true (false), a Scaled Unscented Transform is used instead of a linear approximation with J...
std::vector< T1 > & operator+=(std::vector< T1 > &a, const std::vector< T2 > &b)
a+=b (element-wise sum)
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
A numeric matrix of compile-time fixed size.
Declares a class that represents a probability density function (pdf) of a 2D pose (x,...
bool operator==(const CPoint< DERIVEDCLASS > &p1, const CPoint< DERIVEDCLASS > &p2)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
EIGEN_STRONG_INLINE double mean() const
Computes the mean of the entire matrix.
const CPose3D & getPoseMean() const
Declares a class that represents a Probability Density function (PDF) of a 3D pose using a quaternion...
mrpt::math::CMatrixDouble66 cov
The 6x6 covariance matrix.
std::ostream & operator<<(std::ostream &o, const CPoint< DERIVEDCLASS > &p)
Dumps a point as a string [x,y] or [x,y,z]
Eigen::Matrix< typename MATRIX::Scalar, MATRIX::ColsAtCompileTime, MATRIX::ColsAtCompileTime > cov(const MATRIX &v)
Computes the covariance matrix from a list of samples in an NxM matrix, where each row is a sample,...
Declares a class that represents a Probability Density function (PDF) of a 2D pose .
CPose3D mean
The mean value.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |