34 out << sensorPose << dataIsPresent << timestamp;
36 out << rawMeasurements;
65 rawMeasurements.resize(tmp.size());
66 for (
size_t i = 0; i < rawMeasurements.size(); i++)
67 rawMeasurements[i] = tmp[i];
71 in >> rawMeasurements;
92 const size_t nOld = dataIsPresent.size();
93 ASSERT_(rawMeasurements.size() == dataIsPresent.size());
99 dataIsPresent[i] =
false;
100 rawMeasurements[i] = 0;
115 o <<
"Sensor pose on the robot: " << sensorPose << endl;
118 "Orientation (degrees): (yaw,pitch,roll)=(%.06f, %.06f, %.06f)\n\n",
159 #define DUMP_IMU_DATA(x) \ 160 o << format("%15s = ", #x); \ 161 if (dataIsPresent[x]) \ 162 o << format("%10f %s\n", rawMeasurements[x], imu_units[x]); \ 164 o << "(not present)\n"; x-axis acceleration (global/navigation frame) (m/sec2)
z-axis acceleration (global/navigation frame) (m/sec2)
yaw angular velocity (global/navigation frame) (rad/sec)
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
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.
orientation pitch absolute value (global/navigation frame) (rad)
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction...
temperature (degrees Celsius)
x magnetic field value (local/vehicle frame) (gauss)
y-axis acceleration (local/vehicle frame) (m/sec2)
Orientation Quaternion X (global/navigation frame)
This class stores measurements from an Inertial Measurement Unit (IMU) (attitude estimation, raw gyroscope and accelerometer values), altimeters or magnetometers.
z-axis acceleration (local/vehicle frame) (m/sec2)
x-axis velocity (global/navigation frame) (m/sec)
roll angular velocity (global/navigation frame) (rad/sec)
pitch angular velocity (local/vehicle frame) (rad/sec)
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.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
pitch angular velocity (global/navigation frame) (rad/sec)
Orientation Quaternion Y (global/navigation frame)
Orientation Quaternion Z (global/navigation frame)
z magnetic field value (local/vehicle frame) (gauss)
Orientation Quaternion W (global/navigation frame)
y absolute value (global/navigation frame) (meters)
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
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...
y magnetic field value (local/vehicle frame) (gauss)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Declares a class that represents any robot's observation.
y-axis acceleration (global/navigation frame) (m/sec2)
z absolute value (global/navigation frame) (meters)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
orientation yaw absolute value (global/navigation frame) (rad)
y-axis velocity (global/navigation frame) (m/sec)
orientation roll absolute value (global/navigation frame) (rad)
yaw angular velocity (local/vehicle frame) (rad/sec)
x absolute value (global/navigation frame) (meters)
roll angular velocity (local/vehicle frame) (rad/sec)
x-axis acceleration (local/vehicle frame) (m/sec2)
z-axis velocity (global/navigation frame) (m/sec)
altitude from an altimeter (meters)
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...