28 const std::vector<BASE::array_parameter_t>& in_pts,
29 std::vector<BASE::array_point_t>& out_pts)
const 34 const size_t N = in_pts.size();
36 for (
size_t i = 0; i < N; i++)
38 const double range = in_pts[i][0];
39 const double bearing = in_pts[i][1];
40 out_pts[i][0] =
range * cos(bearing);
41 out_pts[i][1] =
range * sin(bearing);
58 writeToStreamRender(out);
59 BASE::thisclass_writeToStream(out);
74 readFromStreamRender(
in);
75 BASE::thisclass_readFromStream(
in);
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
void readFromStream(mrpt::utils::CStream &in, int version) override
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
A renderizable object suitable for rendering with OpenGL's display lists.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
The namespace for 3D scene representation and rendering.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
IMPLEMENTS_SERIALIZABLE(CEllipsoidRangeBearing2D, CRenderizableDisplayList, mrpt::opengl) void CEllipsoidRangeBearing2D
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.
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a (range,bearing) variable.