MRPT  1.9.9
CEllipsoidInverseDepth2D.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef opengl_CEllipsoidInverseDepth2D_H
10 #define opengl_CEllipsoidInverseDepth2D_H
11 
13 
14 namespace mrpt::opengl
15 {
16 /** An especial "ellipsoid" in 3D computed as the uncertainty iso-surfaces of a
17  * (inv_range,yaw) variable.
18  * The parameter space of this ellipsoid comprises these variables (in this
19  * order):
20  * - inv_range: The inverse distance from the sensor to the feature.
21  * - yaw: Angle for the rotation around +Z ("azimuth").
22  *
23  * This parameterization is a 2D version of that presented in the paper:
24  * - Civera, J. and Davison, A.J. and Montiel, J., "Inverse depth
25  * parametrization for monocular SLAM", T-RO, 2008.
26  *
27  * This class expects you to provide a mean vector of length 4 and a 4x4
28  * covariance matrix, set with \a setCovMatrixAndMean().
29  *
30  * Please read the documentation of
31  * CGeneralizedEllipsoidTemplate::setQuantiles() for learning
32  * the mathematical details about setting the desired confidence interval.
33  *
34  * <div align="center">
35  * <table border="0" cellspan="4" cellspacing="4" style="border-width: 1px;
36  * border-style: solid;">
37  * <tr> <td> mrpt::opengl::CEllipsoidInverseDepth2D </td> <td> \image html
38  * preview_CEllipsoidInverseDepth2D.png </td> </tr>
39  * </table>
40  * </div>
41  *
42  * \ingroup mrpt_opengl_grp
43  */
45 {
48 
49  public:
50  /** The maximum range to be used as a correction when a point of the
51  * ellipsoid falls in the negative ranges (default: 1e6) */
52  void setUnderflowMaxRange(const double maxRange)
53  {
54  m_underflowMaxRange = maxRange;
55  }
56  double getUnderflowMaxRange() const { return m_underflowMaxRange; }
57  protected:
58  /** To be implemented by derived classes: maps, using some arbitrary space
59  * transformation, a list of points
60  * defining an ellipsoid in parameter space into their corresponding
61  * points in 2D/3D space.
62  */
63  virtual void transformFromParameterSpace(
64  const std::vector<BASE::array_parameter_t>& in_pts,
65  std::vector<BASE::array_point_t>& out_pts) const override;
66 
67  private:
69 
70  public:
71  /** Constructor
72  */
74  /** Private, virtual destructor: only can be deleted from smart pointers */
76 };
77 
78 }
79 #endif
80 
81 
virtual ~CEllipsoidInverseDepth2D()
Private, virtual destructor: only can be deleted from smart pointers.
void setUnderflowMaxRange(const double maxRange)
The maximum range to be used as a correction when a point of the ellipsoid falls in the negative rang...
An especial "ellipsoid" in 3D computed as the uncertainty iso-surfaces of a (inv_range,yaw) variable.
virtual void transformFromParameterSpace(const std::vector< BASE::array_parameter_t > &in_pts, std::vector< BASE::array_point_t > &out_pts) const override
To be implemented by derived classes: maps, using some arbitrary space transformation, a list of points defining an ellipsoid in parameter space into their corresponding points in 2D/3D space.
A class that generalizes the concept of an ellipsoid to arbitrary parameterizations of uncertainty sh...
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
The namespace for 3D scene representation and rendering.
Definition: CGlCanvasBase.h:15



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020