36 out << rawMeasurements;
64 rawMeasurements.resize(tmp.size());
65 for (
size_t i=0;i<rawMeasurements.size();i++)
66 rawMeasurements[i] = tmp[i];
70 in >> rawMeasurements;
88 const size_t nOld = dataIsPresent.size();
89 ASSERT_(rawMeasurements.size()==dataIsPresent.size());
94 dataIsPresent[i]=
false;
106 using namespace std;;
109 o <<
"Sensor pose on the robot: " << sensorPose << endl;
111 o <<
format(
"Orientation (degrees): (yaw,pitch,roll)=(%.06f, %.06f, %.06f)\n\n",
153 #define DUMP_IMU_DATA(x) \
154 o << format("%15s = ",#x); \
155 if (dataIsPresent[x]) \
156 o << format("%10f %s\n", rawMeasurements[x], imu_units[x]); \
157 else o << "(not present)\n";
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction.
Declares a class that represents any robot's observation.
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
This class stores measurements from an Inertial Measurement Unit (IMU) (attitude estimation,...
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...
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...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
@ IMU_MAG_Y
y magnetic field value (local/vehicle frame) (gauss)
@ IMU_Y_ACC_GLOBAL
y-axis acceleration (global/navigation frame) (m/sec2)
@ IMU_MAG_Z
z magnetic field value (local/vehicle frame) (gauss)
@ IMU_YAW_VEL_GLOBAL
yaw angular velocity (global/navigation frame) (rad/sec)
@ IMU_ALTITUDE
altitude from an altimeter (meters)
@ IMU_X_ACC_GLOBAL
x-axis acceleration (global/navigation frame) (m/sec2)
@ IMU_X_ACC
x-axis acceleration (local/vehicle frame) (m/sec2)
@ IMU_PITCH_VEL
pitch angular velocity (local/vehicle frame) (rad/sec)
@ IMU_X
x absolute value (global/navigation frame) (meters)
@ IMU_ROLL_VEL_GLOBAL
roll angular velocity (global/navigation frame) (rad/sec)
@ IMU_ORI_QUAT_W
Orientation Quaternion W (global/navigation frame)
@ IMU_PITCH
orientation pitch absolute value (global/navigation frame) (rad)
@ IMU_PRESSURE
air pressure (Pascals)
@ IMU_ORI_QUAT_Y
Orientation Quaternion Y (global/navigation frame)
@ IMU_YAW
orientation yaw absolute value (global/navigation frame) (rad)
@ IMU_ORI_QUAT_X
Orientation Quaternion X (global/navigation frame)
@ IMU_TEMPERATURE
temperature (degrees Celsius)
@ IMU_Y
y absolute value (global/navigation frame) (meters)
@ IMU_X_VEL
x-axis velocity (global/navigation frame) (m/sec)
@ IMU_Z_ACC
z-axis acceleration (local/vehicle frame) (m/sec2)
@ IMU_Z
z absolute value (global/navigation frame) (meters)
@ IMU_ORI_QUAT_Z
Orientation Quaternion Z (global/navigation frame)
@ IMU_Z_VEL
z-axis velocity (global/navigation frame) (m/sec)
@ IMU_PITCH_VEL_GLOBAL
pitch angular velocity (global/navigation frame) (rad/sec)
@ IMU_ROLL_VEL
roll angular velocity (local/vehicle frame) (rad/sec)
@ IMU_YAW_VEL
yaw angular velocity (local/vehicle frame) (rad/sec)
@ IMU_MAG_X
x magnetic field value (local/vehicle frame) (gauss)
@ IMU_Y_ACC
y-axis acceleration (local/vehicle frame) (m/sec2)
@ IMU_Y_VEL
y-axis velocity (global/navigation frame) (m/sec)
@ IMU_ROLL
orientation roll absolute value (global/navigation frame) (rad)
@ IMU_Z_ACC_GLOBAL
z-axis acceleration (global/navigation frame) (m/sec2)
#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...
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values,...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string BASE_IMPEXP format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.