Go to the documentation of this file.
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);
51 writeToStreamRender(out);
52 BASE::thisclass_writeToStream(out);
62 readFromStreamRender(
in);
63 BASE::thisclass_readFromStream(
in);
IMPLEMENTS_SERIALIZABLE(CEllipsoidRangeBearing2D, CRenderizableDisplayList, mrpt::opengl) void CEllipsoidRangeBearing2D
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 is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
Virtual base class for "archives": classes abstracting I/O streams.
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a (range,...
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
This base provides a set of functions for maths stuff.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
The namespace for 3D scene representation and rendering.
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,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |