40 const bool compute_df_dx,
41 const bool compute_df_du )
44 const double spx = sin(
x.phi());
45 const double cpx = cos(
x.phi());
56 const double xu = u.
x();
57 const double yu = u.
y();
59 df_dx.get_unsafe(0,2) = -spx*xu-cpx*yu;
60 df_dx.get_unsafe(1,2) = cpx*xu-spx*yu;
72 df_du.get_unsafe(0,2) =
73 df_du.get_unsafe(1,2) =
74 df_du.get_unsafe(2,0) =
75 df_du.get_unsafe(2,1) = 0;
76 df_du.get_unsafe(2,2) = 1;
78 df_du.get_unsafe(0,0) = cpx;
79 df_du.get_unsafe(0,1) = -spx;
80 df_du.get_unsafe(1,0) = spx;
81 df_du.get_unsafe(1,1) = cpx;
double x() const
Common members of all points & poses classes.
This base provides a set of functions for maths stuff.
#define IMPLEMENTS_VIRTUAL_SERIALIZABLE(class_name, base_class_name, NameSpace)
This must be inserted as implementation of some required members for virtual CSerializable classes: ...
Declares a class that represents a Probability Density function (PDF) of a 2D pose ...
Declares a class that represents a probability density function (pdf) of a 2D pose (x...
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
static void jacobiansPoseComposition(const CPose2D &x, const CPose2D &u, mrpt::math::CMatrixDouble33 &df_dx, mrpt::math::CMatrixDouble33 &df_du, const bool compute_df_dx=true, const bool compute_df_du=true)
This static method computes the pose composition Jacobians, with these formulas:
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red