25 : reflectivityLevel(0.5f), channel(-1), sensorPose(), sensorStdNoise(0.2f)
40 out << reflectivityLevel << channel << sensorPose;
41 out << sensorLabel << timestamp;
56 in >> reflectivityLevel;
57 if (version >= 1)
in >> channel;
59 in >> sensorLabel >> timestamp;
71 o <<
"reflectivityLevel=" << reflectivityLevel << std::endl;
72 o <<
"channel=" << channel <<
" (-1=any)" << std::endl;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
Declares a class derived from "CObservation" that encapsules a single short-range reflectivity measur...
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
virtual ~CObservationReflectivity()
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This namespace contains representation of robot actions and observations.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Declares a class that represents any robot's observation.
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...
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...