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  * @ingroup messages
21  *
22  * @note
23  * The data contained in this message has been corrected for accelerometer and
24  * gyro biases and scale factors, and has been rotated into the vehicle body
25  * frame from the original IMU orientation.
26  */
28  /** The time of the message, in P1 time (beginning at power-on). */
30 
31  /**
32  * Corrected vehicle x/y/z acceleration (in meters/second^2), resolved in the
33  * body frame.
34  */
35  double accel_mps2[3] = {NAN, NAN, NAN};
36 
37  /**
38  * Corrected vehicle x/y/z acceleration standard deviation (in
39  * meters/second^2), resolved in the body frame.
40  */
41  double accel_std_mps2[3] = {NAN, NAN, NAN};
42 
43  /**
44  * Corrected vehicle x/y/z rate of rotation (in radians/second), resolved in
45  * the body frame.
46  */
47  double gyro_rps[3] = {NAN, NAN, NAN};
48 
49  /**
50  * Corrected vehicle x/y/z rate of rotation standard deviation (in
51  * radians/second), resolved in the body frame.
52  */
53  double gyro_std_rps[3] = {NAN, NAN, NAN};
54 };
55 
56 #pragma pack(pop)
57 
58 } // namespace messages
59 } // namespace fusion_engine
60 } // 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:41
IMU sensor measurement data (MessageType::IMU_MEASUREMENT).
Definition: measurements.h:27
double gyro_rps[3]
Corrected vehicle x/y/z rate of rotation (in radians/second), resolved in the body frame.
Definition: measurements.h:47
Definition: crc.cc:49
Timestamp p1_time
The time of the message, in P1 time (beginning at power-on).
Definition: measurements.h:29
Point One FusionEngine output message common definitions.
Generic timestamp representation.
Definition: defs.h:95
double accel_mps2[3]
Corrected vehicle x/y/z acceleration (in meters/second^2), resolved in the body frame.
Definition: measurements.h:35
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:53