MRPT  2.0.4
CEllipsoidRangeBearing2D.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 
13 namespace mrpt::opengl
14 {
15 /** An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a
16  * (range,bearing) variable.
17  * The parameter space of this ellipsoid comprises these variables (in this
18  * order):
19  * - range: Distance from sensor to feature.
20  * - bearing: Angle from +X to the line that goes from the sensor towards the
21  * feature.
22  *
23  * This class expects you to provide a mean vector of length 2 and a 2x2
24  * covariance matrix, set with \a setCovMatrixAndMean().
25  *
26  * Please read the documentation of
27  * CGeneralizedEllipsoidTemplate::setQuantiles() for learning
28  * the mathematical details about setting the desired confidence interval.
29  *
30  * <div align="center">
31  * <table border="0" cellspan="4" cellspacing="4" style="border-width: 1px;
32  * border-style: solid;">
33  * <tr> <td> mrpt::opengl::CEllipsoidRangeBearing2D </td> <td> \image html
34  * preview_CEllipsoidRangeBearing2D.png </td> </tr>
35  * </table>
36  * </div>
37  *
38  * \ingroup mrpt_opengl_grp
39  */
41  virtual public CRenderizable
42 {
45  protected:
46  /** To be implemented by derived classes: maps, using some arbitrary space
47  * transformation, a list of points
48  * defining an ellipsoid in parameter space into their corresponding
49  * points in 2D/3D space.
50  */
52  const std::vector<BASE::array_parameter_t>& in_pts,
53  std::vector<BASE::array_point_t>& out_pts) const override;
54  /** Constructor
55  */
56  public:
57  CEllipsoidRangeBearing2D() = default;
58  /** Private, virtual destructor: only can be deleted from smart pointers */
59  ~CEllipsoidRangeBearing2D() override = default;
60 };
61 
62 } // namespace mrpt::opengl
~CEllipsoidRangeBearing2D() override=default
Private, virtual destructor: only can be deleted from smart pointers.
The base class of 3D objects that can be directly rendered through OpenGL.
Definition: CRenderizable.h:48
CEllipsoidRangeBearing2D()=default
Constructor.
A class that generalizes the concept of an ellipsoid to arbitrary parameterizations of uncertainty sh...
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.
The namespace for 3D scene representation and rendering.
Definition: CGlCanvasBase.h:13
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a (range,bearing) variable.



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020