Main MRPT website > C++ reference for MRPT 1.9.9
packetfixeddata.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 PACKETFIXEDDATA_H
10 #define PACKETFIXEDDATA_H
11 
12 #include <xsens/xsscrdata.h>
13 #include <xsens/xsdeviceid.h>
14 
15 #ifndef NOT_FOR_PUBLIC_RELEASE
16 struct XsControl; // required by DLL for supporting advanced features
17 #endif
18 
19 struct XsDataFormat;
20 
21 //! Indicates that a data item is not available in the packet
22 #define XS_DATA_ITEM_NOT_AVAILABLE 65535
23 
24 /*! \brief Contains offset information about data in the packet
25  \details All items are initialized to \a XS_DATA_ITEM_NOT_AVAILABLE and set
26  to their proper
27  value by LegacyDataPacket::updateInfoList and/or the LegacyDataPacket update
28  functions.
29 */
30 struct PacketInfo
31 {
32  /** Offset of first data byte (whatever it is) */
34  /** Offset of raw data */
36  /** Offset of raw acceleration data */
38  /** Offset of raw gyroscope data */
40  /** Offset of raw magnetometer data */
42  /** Offset of raw temperature data. Note that usually only the first item is
43  * used. */
45  /** Offset of calibrated temperature data. Note that usually only the first
46  * item is used. */
48  /** Offset of calibrated data */
50  /** Offset of calibrated acceleration data */
52  /** Offset of calibrated gyroscope data */
54  /** Offset of calibrated magnetometer data */
56  /** Offset of orientation in quaternion format */
58  /** Offset of orientation in euler format */
60  /** Offset of orientation in matrix format */
62  /** Offset of analog in channel 1 data */
64  /** Offset of analog in channel 2 data */
66  /** Offset of Latitude-Longitude-Altitude position data */
68  /** Offset of velocity data */
70  /** Offset of status data */
72  /** Offset of detailed status data */
74  /** Offset of sample counter */
76  /** Offset of UTC time data */
78  /** Offset of nanosecond part of UTC time */
80  /** Offset of year part of UTC time */
82  /** Offset of month part of UTC time */
84  /** Offset of day part of UTC time */
86  /** Offset of hour part of UTC time */
88  /** Offset of minute part of UTC time */
90  /** Offset of second part of UTC time */
92  /** Offset of validity part of UTC time */
94  /** Offset of acceleration in global frame */
96  /** Offset of GPS & pressure data */
98  /** Offset of pressure data */
100  /** Offset of pressure age */
102  /** Offset of raw GPS data */
104  /** Offset of raw GPS ITOW (Integer Time Of Week) data */
106  /** Offset of raw GPS latitude data */
108  /** Offset of raw GPS longitude data */
110  /** Offset of raw GPS height data */
112  /** Offset of raw GPS northward velocity data */
114  /** Offset of raw GPS eastward velocity data */
116  /** Offset of raw GPS dowanward velocity data */
118  /** Offset of raw GPS horizontal accuracy estimate data */
120  /** Offset of raw GPS vertical accuracy estimate data */
122  /** Offset of raw GPS speed accuracy estimate data */
124  /** Offset of raw GPS age */
126  /** Offset of MTw SDI data */
128  /** Offset of MTw SDI client ID data */
130  /** Offset of MTw SDI time sync data */
132  /** Offset of MTw SDI first frame number in interval data */
134  /** Offset of MTw SDI last frame number in interval data */
136  /** Offset of MTw SDI gyroscope bias data */
138  /** Offset of MTw SDI orientation increment data */
140  /** Offset of MTw SDI velocity increment data */
142  /** Offset of MTw SDI aiding data */
144  /** Offset of MTw SDI barometer data */
146  /** Offset of MTw SDI magnetometer data */
148  /** Offset of MTw SDI RSSI data */
150  /** Total size of the data */
152  /** Boundary where the original data format is ignored and values are stored
153  * in double precision */
155 
156  /*! \brief Default contructor, sets all values to XS_DATA_ITEM_NOT_AVAILABLE
157  */
158  PacketInfo() { memset(this, 0xFF, sizeof(*this)); }
159 };
160 
161 //! A structure containing fixed packet data, which should not change during a
162 //! measurement for the same device
164 {
165  PacketFixedData();
167  PacketFixedData(const PacketFixedData& pack);
169 
170  void operator=(const PacketFixedData& data);
171 
172  /** Contains information about data in the packet and the format of that
173  * data */
175  /** A list of the formats of the data items */
177  /** A list of the device-ids in this packet */
179  /** Indicates that xbus-formatting is used */
180  bool m_xm;
181  /** The number of data items in the message */
183 };
184 
185 #endif // file guard
PacketInfo::m_doubleBoundary
uint16_t m_doubleBoundary
Boundary where the original data format is ignored and values are stored in double precision.
Definition: packetfixeddata.h:154
PacketInfo::m_velNEDorNWU
uint16_t m_velNEDorNWU
Offset of velocity data.
Definition: packetfixeddata.h:69
PacketFixedData::m_itemCount
uint16_t m_itemCount
The number of data items in the message.
Definition: packetfixeddata.h:182
PacketInfo::m_gpsPvtVacc
uint16_t m_gpsPvtVacc
Offset of raw GPS vertical accuracy estimate data.
Definition: packetfixeddata.h:121
PacketInfo::m_utcNano
uint16_t m_utcNano
Offset of nanosecond part of UTC time.
Definition: packetfixeddata.h:79
PacketInfo::m_calAcc
uint16_t m_calAcc
Offset of calibrated acceleration data.
Definition: packetfixeddata.h:51
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
XsDeviceId
Definition: xsdeviceid.h:65
PacketFixedData::m_infoList
PacketInfo * m_infoList
Contains information about data in the packet and the format of that data.
Definition: packetfixeddata.h:174
PacketInfo::m_utcYear
uint16_t m_utcYear
Offset of year part of UTC time.
Definition: packetfixeddata.h:81
PacketInfo::m_utcSecond
uint16_t m_utcSecond
Offset of second part of UTC time.
Definition: packetfixeddata.h:91
PacketInfo::m_rawGyr
uint16_t m_rawGyr
Offset of raw gyroscope data.
Definition: packetfixeddata.h:39
PacketInfo::m_wBaroMeter
uint16_t m_wBaroMeter
Offset of MTw SDI barometer data.
Definition: packetfixeddata.h:145
PacketInfo::PacketInfo
PacketInfo()
Default contructor, sets all values to XS_DATA_ITEM_NOT_AVAILABLE.
Definition: packetfixeddata.h:158
PacketFixedData::m_formatList
XsDataFormat * m_formatList
A list of the formats of the data items.
Definition: packetfixeddata.h:176
PacketInfo::m_gpsPvtVeld
uint16_t m_gpsPvtVeld
Offset of raw GPS dowanward velocity data.
Definition: packetfixeddata.h:117
PacketInfo::m_gpsPvtHacc
uint16_t m_gpsPvtHacc
Offset of raw GPS horizontal accuracy estimate data.
Definition: packetfixeddata.h:119
PacketInfo::m_acc_g
uint16_t m_acc_g
Offset of acceleration in global frame.
Definition: packetfixeddata.h:95
PacketInfo::m_calMag
uint16_t m_calMag
Offset of calibrated magnetometer data.
Definition: packetfixeddata.h:55
PacketInfo::m_rawData
uint16_t m_rawData
Offset of raw data.
Definition: packetfixeddata.h:35
PacketFixedData::m_xm
bool m_xm
Indicates that xbus-formatting is used.
Definition: packetfixeddata.h:180
PacketInfo::m_gpsPvtVele
uint16_t m_gpsPvtVele
Offset of raw GPS eastward velocity data.
Definition: packetfixeddata.h:115
PacketInfo::m_utcValid
uint16_t m_utcValid
Offset of validity part of UTC time.
Definition: packetfixeddata.h:93
PacketInfo::m_gpsPvtSacc
uint16_t m_gpsPvtSacc
Offset of raw GPS speed accuracy estimate data.
Definition: packetfixeddata.h:123
PacketInfo::m_oriEul
uint16_t m_oriEul
Offset of orientation in euler format.
Definition: packetfixeddata.h:59
PacketInfo::m_wCurrentBias
uint16_t m_wCurrentBias
Offset of MTw SDI gyroscope bias data.
Definition: packetfixeddata.h:137
PacketFixedData
A structure containing fixed packet data, which should not change during a measurement for the same d...
Definition: packetfixeddata.h:163
PacketInfo::m_wClientId
uint16_t m_wClientId
Offset of MTw SDI client ID data.
Definition: packetfixeddata.h:129
PacketInfo::m_detailedStatus
uint16_t m_detailedStatus
Offset of detailed status data.
Definition: packetfixeddata.h:73
PacketInfo::m_gpsPvtPressure
uint16_t m_gpsPvtPressure
Offset of pressure data.
Definition: packetfixeddata.h:99
PacketInfo::m_utcDay
uint16_t m_utcDay
Offset of day part of UTC time.
Definition: packetfixeddata.h:85
data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3547
PacketInfo
Contains offset information about data in the packet.
Definition: packetfixeddata.h:30
count
GLuint GLuint GLsizei count
Definition: glext.h:3528
PacketInfo::m_utcTime
uint16_t m_utcTime
Offset of UTC time data.
Definition: packetfixeddata.h:77
XsDataFormat
A structure for storing data formats.
Definition: xsdataformat.h:17
PacketInfo::m_utcHour
uint16_t m_utcHour
Offset of hour part of UTC time.
Definition: packetfixeddata.h:87
PacketFixedData::~PacketFixedData
~PacketFixedData()
Destructor.
Definition: packetfixeddata.cpp:66
PacketInfo::m_analogIn1
uint16_t m_analogIn1
Offset of analog in channel 1 data.
Definition: packetfixeddata.h:63
XS_MAX_TEMPERATURE_CHANNELS
#define XS_MAX_TEMPERATURE_CHANNELS
Definition: xsscrdata.h:27
PacketInfo::m_wOrientationIncrement
uint16_t m_wOrientationIncrement
Offset of MTw SDI orientation increment data.
Definition: packetfixeddata.h:139
PacketInfo::m_wVelocityIncrement
uint16_t m_wVelocityIncrement
Offset of MTw SDI velocity increment data.
Definition: packetfixeddata.h:141
PacketInfo::m_mtwSdiData
uint16_t m_mtwSdiData
Offset of MTw SDI data.
Definition: packetfixeddata.h:127
PacketInfo::m_calData
uint16_t m_calData
Offset of calibrated data.
Definition: packetfixeddata.h:49
PacketInfo::m_status
uint16_t m_status
Offset of status data.
Definition: packetfixeddata.h:71
PacketInfo::m_utcMonth
uint16_t m_utcMonth
Offset of month part of UTC time.
Definition: packetfixeddata.h:83
PacketInfo::m_oriMat
uint16_t m_oriMat
Offset of orientation in matrix format.
Definition: packetfixeddata.h:61
PacketInfo::m_size
uint16_t m_size
Total size of the data.
Definition: packetfixeddata.h:151
PacketInfo::m_wTimeSync
uint16_t m_wTimeSync
Offset of MTw SDI time sync data.
Definition: packetfixeddata.h:131
PacketInfo::m_gpsPvtItow
uint16_t m_gpsPvtItow
Offset of raw GPS ITOW (Integer Time Of Week) data.
Definition: packetfixeddata.h:105
PacketInfo::m_gpsPvtGpsAge
uint16_t m_gpsPvtGpsAge
Offset of raw GPS age.
Definition: packetfixeddata.h:125
PacketInfo::m_gpsPvtLongitude
uint16_t m_gpsPvtLongitude
Offset of raw GPS longitude data.
Definition: packetfixeddata.h:109
xsdeviceid.h
PacketInfo::m_rawAcc
uint16_t m_rawAcc
Offset of raw acceleration data.
Definition: packetfixeddata.h:37
PacketInfo::m_temp
uint16_t m_temp[XS_MAX_TEMPERATURE_CHANNELS]
Offset of calibrated temperature data.
Definition: packetfixeddata.h:47
PacketInfo::m_calGyr
uint16_t m_calGyr
Offset of calibrated gyroscope data.
Definition: packetfixeddata.h:53
xsscrdata.h
PacketInfo::m_wFirstFrameNumber
uint16_t m_wFirstFrameNumber
Offset of MTw SDI first frame number in interval data.
Definition: packetfixeddata.h:133
PacketInfo::m_wLastFrameNumber
uint16_t m_wLastFrameNumber
Offset of MTw SDI last frame number in interval data.
Definition: packetfixeddata.h:135
PacketInfo::m_gpsPvtHeight
uint16_t m_gpsPvtHeight
Offset of raw GPS height data.
Definition: packetfixeddata.h:111
PacketInfo::m_rawTemp
uint16_t m_rawTemp[XS_MAX_TEMPERATURE_CHANNELS]
Offset of raw temperature data.
Definition: packetfixeddata.h:44
PacketInfo::m_utcMinute
uint16_t m_utcMinute
Offset of minute part of UTC time.
Definition: packetfixeddata.h:89
PacketInfo::m_offset
uint16_t m_offset
Offset of first data byte (whatever it is)
Definition: packetfixeddata.h:33
PacketInfo::m_posLLA
uint16_t m_posLLA
Offset of Latitude-Longitude-Altitude position data.
Definition: packetfixeddata.h:67
PacketInfo::m_wAidingData
uint16_t m_wAidingData
Offset of MTw SDI aiding data.
Definition: packetfixeddata.h:143
PacketInfo::m_wMagnetoMeter
uint16_t m_wMagnetoMeter
Offset of MTw SDI magnetometer data.
Definition: packetfixeddata.h:147
PacketFixedData::m_idList
XsDeviceId * m_idList
A list of the device-ids in this packet.
Definition: packetfixeddata.h:178
PacketInfo::m_wRssi
uint16_t m_wRssi
Offset of MTw SDI RSSI data.
Definition: packetfixeddata.h:149
PacketInfo::m_gpsPvtVeln
uint16_t m_gpsPvtVeln
Offset of raw GPS northward velocity data.
Definition: packetfixeddata.h:113
PacketInfo::m_rawMag
uint16_t m_rawMag
Offset of raw magnetometer data.
Definition: packetfixeddata.h:41
PacketInfo::m_gpsPvtData
uint16_t m_gpsPvtData
Offset of GPS & pressure data.
Definition: packetfixeddata.h:97
PacketInfo::m_analogIn2
uint16_t m_analogIn2
Offset of analog in channel 2 data.
Definition: packetfixeddata.h:65
PacketFixedData::operator=
void operator=(const PacketFixedData &data)
Assignment operator, copies contents from data.
Definition: packetfixeddata.cpp:79
PacketInfo::m_sc
uint16_t m_sc
Offset of sample counter.
Definition: packetfixeddata.h:75
PacketInfo::m_oriQuat
uint16_t m_oriQuat
Offset of orientation in quaternion format.
Definition: packetfixeddata.h:57
PacketInfo::m_gpsPvtLatitude
uint16_t m_gpsPvtLatitude
Offset of raw GPS latitude data.
Definition: packetfixeddata.h:107
PacketInfo::m_gpsPvtGpsData
uint16_t m_gpsPvtGpsData
Offset of raw GPS data.
Definition: packetfixeddata.h:103
PacketInfo::m_gpsPvtPressureAge
uint16_t m_gpsPvtPressureAge
Offset of pressure age.
Definition: packetfixeddata.h:101
PacketFixedData::PacketFixedData
PacketFixedData()
Default constructor, creates an empty (invalid) object.
Definition: packetfixeddata.cpp:21



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