9 #ifndef CPose3DPDFSOG_H 10 #define CPose3DPDFSOG_H 63 void assureSymmetry();
78 void resize(
const size_t N);
79 size_t size()
const {
return m_modes.size(); }
80 bool empty()
const {
return m_modes.empty(); }
89 void normalizeWeights();
121 void drawManySamples(
size_t N, std::vector<mrpt::math::CVectorDouble> & outSamples )
const MRPT_OVERRIDE;
DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(CPose3DPDFGaussianInf, CPose3DPDF)
TModesList::iterator iterator
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Declares a class that represents a Probability Density function (PDF) of a 3D(6D) pose ...
mrpt::aligned_containers< TGaussianMode >::vector_t TModesList
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...
const Scalar * const_iterator
void clear()
Clear the contents of this container.
double log_w
The log-weight.
A numeric matrix of compile-time fixed size.
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...
TModesList m_modes
Access directly to this array for modify the modes as desired.
TModesList::const_iterator const_iterator
Eigen::Matrix< dataType, 4, 4 > inverse(Eigen::Matrix< dataType, 4, 4 > &pose)
bool empty() const
Return whether there is any Gaussian mode.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
GLsizei const GLchar ** string
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...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
const_iterator end() const
Declares a class that represents a Probability Density function (PDF) of a 3D pose ...
size_t size() const
Return the number of Gaussian modes.
const_iterator begin() const
The struct for each mode:
Declares a class that represents a Probability Density Function (PDF) of a 3D pose (6D actually)...
std::vector< TYPE1, Eigen::aligned_allocator< TYPE1 > > vector_t