26 out << sensorLabel << timestamp << sample_rate << AIN_8bits << AIN_16bits
27 << AIN_32bits << AIN_float << AIN_double << AIN_channel_count
28 << AIN_interleaved << AOUT_8bits << AOUT_16bits << AOUT_float
29 << AOUT_double << DIN << DOUT << CNTRIN_32bits << CNTRIN_double;
39 in >> sensorLabel >> timestamp >> sample_rate >> AIN_8bits >>
40 AIN_16bits >> AIN_32bits >> AIN_float >> AIN_double >>
41 AIN_channel_count >> AIN_interleaved >> AOUT_8bits >>
42 AOUT_16bits >> AOUT_float >> AOUT_double >> DIN >> DOUT >>
43 CNTRIN_32bits >> CNTRIN_double;
56 cout <<
"Sample rate : " << sample_rate <<
" Hz" << endl;
57 cout <<
"Analog IN Channel count : " << AIN_channel_count << endl;
58 cout <<
"Analog IN interleaved? : " << (AIN_interleaved ?
"yes" :
"no")
61 #define RAWDAQ_SHOW_FIRSTS(_VEC) \ 62 cout << "Raw data in " #_VEC " (" << _VEC.size() \ 63 << " entries): First values ["; \ 67 i <= std::min(_VEC.size(), static_cast<size_t>(10)); i++) \ 68 cout << _VEC[i - 1] << " "; \ void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
To be added to all CSerializable-classes implementation files.
#define RAWDAQ_SHOW_FIRSTS(_VEC)
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This namespace contains representation of robot actions and observations.
Store raw data from a Data Acquisition (DAQ) device, such that input or output analog and digital cha...
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Virtual base class for "archives": classes abstracting I/O streams.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
Declares a class that represents any robot's observation.
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...