measurements.h
Go to the documentation of this file.
1 /**************************************************************************/ /**
2  * @brief Sensor measurement messages.
3  * @file
4  ******************************************************************************/
5 
6 #pragma once
7 
9 
10 namespace point_one {
11 namespace fusion_engine {
12 namespace messages {
13 
14 // Enforce 4-byte alignment and packing of all data structures and values so
15 // that floating point values are aligned on platforms that require it.
16 #pragma pack(push, 4)
17 
18 /**
19  * @brief IMU sensor measurement data (@ref MessageType::IMU_MEASUREMENT),
20  * version 1.0.
21  * @ingroup messages
22  *
23  * @note
24  * The data contained in this message has been corrected for accelerometer and
25  * gyro biases and scale factors, and has been rotated into the vehicle body
26  * frame from the original IMU orientation.
27  */
29  /** The time of the message, in P1 time (beginning at power-on). */
31 
32  /**
33  * Corrected vehicle x/y/z acceleration (in meters/second^2), resolved in the
34  * body frame.
35  */
36  double accel_mps2[3] = {NAN, NAN, NAN};
37 
38  /**
39  * Corrected vehicle x/y/z acceleration standard deviation (in
40  * meters/second^2), resolved in the body frame.
41  */
42  double accel_std_mps2[3] = {NAN, NAN, NAN};
43 
44  /**
45  * Corrected vehicle x/y/z rate of rotation (in radians/second), resolved in
46  * the body frame.
47  */
48  double gyro_rps[3] = {NAN, NAN, NAN};
49 
50  /**
51  * Corrected vehicle x/y/z rate of rotation standard deviation (in
52  * radians/second), resolved in the body frame.
53  */
54  double gyro_std_rps[3] = {NAN, NAN, NAN};
55 };
56 
57 #pragma pack(pop)
58 
59 } // namespace messages
60 } // namespace fusion_engine
61 } // namespace point_one
double accel_std_mps2[3]
Corrected vehicle x/y/z acceleration standard deviation (in meters/second^2), resolved in the body fr...
Definition: measurements.h:42
IMU sensor measurement data (MessageType::IMU_MEASUREMENT), version 1.0.
Definition: measurements.h:28
double gyro_rps[3]
Corrected vehicle x/y/z rate of rotation (in radians/second), resolved in the body frame.
Definition: measurements.h:48
Definition: crc.cc:52
Timestamp p1_time
The time of the message, in P1 time (beginning at power-on).
Definition: measurements.h:30
Point One FusionEngine output message common definitions.
Generic timestamp representation.
Definition: defs.h:107
double accel_mps2[3]
Corrected vehicle x/y/z acceleration (in meters/second^2), resolved in the body frame.
Definition: measurements.h:36
double gyro_std_rps[3]
Corrected vehicle x/y/z rate of rotation standard deviation (in radians/second), resolved in the body...
Definition: measurements.h:54