27 const std::vector<BASE::array_parameter_t>& in_pts,
28 std::vector<BASE::array_point_t>& out_pts)
const 33 const size_t N = in_pts.size();
35 for (
size_t i = 0; i < N; i++)
37 const float range = in_pts[i][0];
38 const float bearing = in_pts[i][1];
39 out_pts[i][0] = range * cosf(bearing);
40 out_pts[i][1] = range * sinf(bearing);
50 writeToStreamRender(
out);
51 BASE::thisclass_writeToStream(
out);
61 readFromStreamRender(in);
62 BASE::thisclass_readFromStream(in);
IMPLEMENTS_SERIALIZABLE(CEllipsoidRangeBearing2D, CRenderizableShaderWireFrame, mrpt::opengl) void CEllipsoidRangeBearing2D
void notifyChange() const
Call to enable calling renderUpdateBuffers() before the next render() rendering iteration.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This base provides a set of functions for maths stuff.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Virtual base class for "archives": classes abstracting I/O streams.
mrpt::vision::TStereoCalibResults out
Renderizable generic renderer for objects using the wireframe shader.
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.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
An especial "ellipsoid" in 2D computed as the uncertainty iso-surfaces of a (range,bearing) variable.