33 out << sensorLabel << timestamp << sample_rate
34 << AIN_8bits << AIN_16bits << AIN_32bits << AIN_float << AIN_double
35 << AIN_channel_count << AIN_interleaved
36 << AOUT_8bits << AOUT_16bits << AOUT_float << AOUT_double << DIN << DOUT << CNTRIN_32bits << CNTRIN_double;
49 in >> sensorLabel >> timestamp >> sample_rate
50 >> AIN_8bits >> AIN_16bits >> AIN_32bits >> AIN_float >> AIN_double
51 >> AIN_channel_count >> AIN_interleaved
52 >> AOUT_8bits >> AOUT_16bits >> AOUT_float >> AOUT_double >> DIN >> DOUT >> CNTRIN_32bits >> CNTRIN_double;
66 cout <<
"Sample rate : " << sample_rate <<
" Hz" << endl;
67 cout <<
"Analog IN Channel count : " << AIN_channel_count << endl;
68 cout <<
"Analog IN interleaved? : " << (AIN_interleaved ?
"yes":
"no")<< endl;
70 #define RAWDAQ_SHOW_FIRSTS(_VEC) \ 71 cout << "Raw data in " #_VEC " ("<< _VEC.size() <<" entries): First values ["; \ 72 if (!_VEC.empty()) { \ 73 for (size_t i=1;i<=std::min(_VEC.size(),static_cast<size_t>(10));i++) \ 74 cout << _VEC[i-1] << " "; \ 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...
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.
#define RAWDAQ_SHOW_FIRSTS(_VEC)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This namespace contains representation of robot actions and observations.
void getDescriptionAsText(std::ostream &o) const MRPT_OVERRIDE
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
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...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Declares a class that represents any robot's observation.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...