33 const size_t N = in_pts.size();
35 for (
size_t i=0;i<N;i++)
37 const double range = in_pts[i][0];
38 const double bearing = in_pts[i][1];
39 out_pts[i][0] =
range * cos(bearing);
40 out_pts[i][1] =
range * sin(bearing);
57 writeToStreamRender(out);
58 BASE::thisclass_writeToStream(out);
72 readFromStreamRender(
in);
73 BASE::thisclass_readFromStream(
in);
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
A numeric matrix of compile-time fixed size.
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a (range,...
void readFromStream(mrpt::utils::CStream &in, int version)
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const
Introduces a pure virtual method responsible for writing to a CStream.
A renderizable object suitable for rendering with OpenGL's display lists.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This base provides a set of functions for maths stuff.
The namespace for 3D scene representation and rendering.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values,...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.