Main MRPT website > C++ reference for MRPT 1.9.9
mtwsdidata.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef MTWSDIDATA_H
10 #define MTWSDIDATA_H
11 
12 #include <xsens/pstdint.h>
13 #include <xsens/xsvector3.h>
14 #include <xsens/xsquaternion.h>
15 #include <xsens/xsdeviceid.h>
16 
17 struct XsRange;
18 
19 struct MtwSdiData
20 {
21  /** The ID of the device that generated the data */
23  /** Indicates if the time sync is in order (unused) */
25  /** The first frame number of the SDI interval. The time of the interval is
26  * [first, last) */
28  /** The last frame number of the SDI interval. The time of the interval is
29  * [first, last) */
31  /** The gyroscope bias used during the SDI interval */
33  /** The orientation increment (delta Q) over the interval */
35  /** The velocity increment (delta V) over the interval */
37  /** reserved */
39  /** The barometer value during the interval */
40  double m_barometer;
41  /** The magnetometer values during the interval */
43  /** The Received Signal Strength Indication (RSSI) of the message */
45 
46  MtwSdiData();
47  MtwSdiData(const MtwSdiData& other);
48  ~MtwSdiData();
49  const MtwSdiData& operator=(const MtwSdiData& other);
50 
51  bool empty() const;
52  bool containsAidingData() const;
55  double pressure() const;
56  XsVector magneticField() const;
57  XsVector currentBias() const;
58  XsRange frameRange() const;
59  double rssi() const;
60 };
61 
62 #endif // file guard
XsQuaternion
Definition: xsquaternion.h:57
MtwSdiData::~MtwSdiData
~MtwSdiData()
Destroy the strapdown integration data structure.
Definition: mtwsdidata.cpp:48
MtwSdiData::m_orientationIncrement
XsQuaternion m_orientationIncrement
The orientation increment (delta Q) over the interval.
Definition: mtwsdidata.h:34
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
XsDeviceId
Definition: xsdeviceid.h:65
MtwSdiData::empty
bool empty() const
Test if this is a null Awinda object.
Definition: mtwsdidata.cpp:68
xsquaternion.h
MtwSdiData::m_currentBias
XsVector3 m_currentBias
The gyroscope bias used during the SDI interval.
Definition: mtwsdidata.h:32
MtwSdiData::pressure
double pressure() const
Get the pressure as measured by the barometer in hPa.
Definition: mtwsdidata.cpp:91
XsRange
Definition: xsrange.h:35
uint8_t
unsigned char uint8_t
Definition: rptypes.h:41
MtwSdiData::magneticField
XsVector magneticField() const
Get the magnetic field value.
Definition: mtwsdidata.cpp:98
MtwSdiData::frameRange
XsRange frameRange() const
Get the frame range of the current strapdown integration data.
Definition: mtwsdidata.cpp:112
XsVector
Definition: xsvector.h:59
int8_t
signed char int8_t
Definition: rptypes.h:40
MtwSdiData::m_rssi
int8_t m_rssi
The Received Signal Strength Indication (RSSI) of the message.
Definition: mtwsdidata.h:44
MtwSdiData::velocityIncrement
XsVector velocityIncrement() const
Get the velocity increment value.
Definition: mtwsdidata.cpp:84
MtwSdiData::containsAidingData
bool containsAidingData() const
Test if strapdown integration data is available.
Definition: mtwsdidata.cpp:70
MtwSdiData::m_aidingData
bool m_aidingData
reserved
Definition: mtwsdidata.h:38
MtwSdiData::rssi
double rssi() const
Get the rssi of the received strapdown integration data.
Definition: mtwsdidata.cpp:119
MtwSdiData
Class to store strapdown integration data.
Definition: mtwsdidata.h:19
MtwSdiData::orientationIncrement
XsQuaternion orientationIncrement() const
Get the orientation increment value.
Definition: mtwsdidata.cpp:77
MtwSdiData::m_deviceId
XsDeviceId m_deviceId
The ID of the device that generated the data.
Definition: mtwsdidata.h:22
MtwSdiData::m_firstFrameNumber
uint16_t m_firstFrameNumber
The first frame number of the SDI interval.
Definition: mtwsdidata.h:27
xsdeviceid.h
MtwSdiData::MtwSdiData
MtwSdiData()
Construct an empty strapdown integration data object.
Definition: mtwsdidata.cpp:20
pstdint.h
MtwSdiData::operator=
const MtwSdiData & operator=(const MtwSdiData &other)
Assign other to this.
Definition: mtwsdidata.cpp:50
MtwSdiData::m_magnetoMeter
XsVector3 m_magnetoMeter
The magnetometer values during the interval.
Definition: mtwsdidata.h:42
MtwSdiData::m_velocityIncrement
XsVector3 m_velocityIncrement
The velocity increment (delta V) over the interval.
Definition: mtwsdidata.h:36
MtwSdiData::m_lastFrameNumber
uint16_t m_lastFrameNumber
The last frame number of the SDI interval.
Definition: mtwsdidata.h:30
MtwSdiData::m_timeSync
uint8_t m_timeSync
Indicates if the time sync is in order (unused)
Definition: mtwsdidata.h:24
xsvector3.h
XsVector3
Definition: xsvector3.h:40
MtwSdiData::currentBias
XsVector currentBias() const
Get the current gyroscope bias value.
Definition: mtwsdidata.cpp:105
MtwSdiData::m_barometer
double m_barometer
The barometer value during the interval.
Definition: mtwsdidata.h:40



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST