Main MRPT website > C++ reference for MRPT 1.9.9
legacydatapacket.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 LEGACYDATAPACKET_H
10 #define LEGACYDATAPACKET_H
11 
12 #include <xsens/pstdint.h>
13 #include <xsens/xstypedefs.h>
14 #include <xsens/xsdataformat.h>
15 #include <xsens/xsdeviceid.h>
16 #include <xsens/xstimestamp.h>
17 #include <xsens/xsmessage.h>
18 
19 //! Indicates that a data item is not available in the packet
20 #define XS_DATA_ITEM_NOT_AVAILABLE 65535
21 
22 struct XsVector;
23 struct PacketInfo;
24 struct XsUShortVector;
25 struct XsScrData;
26 struct XsCalibratedData;
27 struct XsGpsPvtData;
28 struct XsPressure;
29 struct MtwSdiData;
30 struct XsQuaternion;
31 struct XsMatrix;
32 struct XsEuler;
33 struct XsAnalogInData;
34 struct XsUtcTime;
35 
36 //! \brief An MT timestamp (sample count)
37 typedef uint16_t XsMtTimeStamp;
38 
39 struct PacketFixedData;
40 
42 {
43  public:
45  LegacyDataPacket(uint16_t count, bool xbus);
48 
49  const LegacyDataPacket& operator=(const LegacyDataPacket& pack);
50 
51  uint16_t itemCount(void) const;
53 
54  XsTimeStamp timeOfArrival(void) const;
56 
57  XsTimeStamp rtc(void) const;
58  void setRtc(XsTimeStamp rtc);
59 
60  int64_t largePacketCounter(void) const;
62 
63  XsMessage message(void) const;
64  void setMessage(const XsMessage& message);
65  XsMessage originalMessage(void) const;
66 
68 
69  bool setDataFormat(const XsDataFormat& format, int32_t index = 0);
70  bool setDataFormat(
71  XsOutputMode outputMode, XsOutputSettings outputSettings,
72  int32_t index = 0);
74 
75  void setXbusSystem(bool xbus, bool convert = false);
76  bool isXbusSystem(void) const;
77 
78  int32_t findDeviceId(XsDeviceId dev) const;
81 
82  uint16_t frameCounter() const;
83 
84  XsSize dataSize(int32_t index = 0) const;
85 
86  void updateInfoList();
87 
88  // PacketFixedData takePacketFixedData();
89  // void putPacketFixedData(const PacketFixedData& data);
90 
92 
94  bool containsRawAcceleration(int32_t index = 0) const;
95  bool setRawAcceleration(const XsUShortVector& vec, int32_t index = 0);
96  /*! \brief Return the Raw Gyroscope component of a data item.
97  \param index The index of the item of which the data should be returned.
98  \returns The Raw Gyroscope component of a data item.
99  */
101  //! Check if data item contains Raw Gyroscope data
102  bool containsRawGyroscopeData(int32_t index = 0) const;
103  //! Add/update Raw Gyroscope data for the item
104  bool setRawGyroscopeData(const XsUShortVector& vec, int32_t index = 0);
105  /*! \brief Return the Raw Magnetometer component of a data item.
106  \param index The index of the item of which the data should be returned.
107  \returns The Raw Magnetometer component of a data item.
108  */
110  //! Check if data item contains Raw Magnetometer data
111  bool containsRawMagneticField(int32_t index = 0) const;
112  //! Add/update Raw Magnetometer data for the item
113  bool setRawMagneticField(const XsUShortVector& vec, int32_t index = 0);
114  /*! \brief Return the Raw Temperature component of a data item.
115  \param index The index of the item of which the data should be returned.
116  \param channel The Temperature channel to return
117  \returns The Raw Temperature component of a data item.
118  */
119  uint16_t rawTemperature(int32_t index = 0, int channel = 0) const;
120  //! Check if data item contains Raw Temperature data
121  bool containsRawTemperature(int32_t index = 0, int channel = 0) const;
122  //! Add/update Raw Temperature data for the item
123  bool setRawTemperature(uint16_t temp, int32_t index = 0, int channel = 0);
124  //! Returns the number of available Raw Temperature channels
126  /*! \brief Return the Raw Data component of a data item.
127  \param index The index of the item of which the data should be returned.
128  \returns The Raw Data component of a data item.
129  */
130  XsScrData rawData(int32_t index = 0) const;
131  //! Check if data item contains Raw Data
132  bool containsRawData(int32_t index = 0) const;
133  //! Add/update Raw Data for the item
134  bool setRawData(const XsScrData& data, int32_t index = 0);
135  /*! \brief Return the Gps PVT data component of a data item.
136  \param index The index of the item of which the data should be returned.
137  \returns The Gps PVT data component of a data item.
138  */
140  //! Check if data item contains Gps PVT Data
141  bool containsGpsPvtData(int32_t index = 0) const;
142  //! Add/update Gps PVT Data for the item
143  bool setGpsPvtData(const XsGpsPvtData& data, int32_t index = 0);
144 
145  XsPressure pressure(int32_t index = 0) const;
146  bool containsPressure(int32_t index = 0) const;
147  bool setPressure(const XsPressure& data, int32_t index = 0);
148 
149  MtwSdiData mtwSdiData(int32_t index = 0) const;
150  bool containsMtwSdiData(int32_t index = 0) const;
151  bool setMtwSdiData(const MtwSdiData& data, int32_t index = 0);
152 
153  /*! \brief Return the Temperature component of a data item.
154  \param index The index of the item of which the data should be returned.
155  \param channel The Temperature channel to return
156  \returns The Temperature component of a data item.
157  */
158  double temperature(int32_t index = 0, int channel = 0) const;
159  //! Check if data item contains Temperature data
160  bool containsTemperature(int32_t index = 0, int channel = 0) const;
161  //! Add/update Calibrated Accelerometer data for the item
162  bool setTemperature(const double& temp, int32_t index = 0, int channel = 0);
163  //! Returns the number of temperature channels
164  int temperatureChannelCount(int32_t index = 0) const;
165 
166  /*! \brief Return the Calibrated Accelerometer component of a data item.
167  \param index The index of the item of which the data should be returned.
168  \returns The Calibrated Accelerometer component of a data item.
169  */
171  //! Check if data item contains Calibrated Accelerometer data
173  //! Add/update Calibrated Accelerometer data for the item
174  bool setCalibratedAcceleration(const XsVector& vec, int32_t index = 0);
175 
176  /*! \brief Return the Calibrated Gyroscope component of a data item.
177  \param index The index of the item of which the data should be returned.
178  \returns The Calibrated Gyroscope component of a data item.
179  */
181  //! Check if data item contains Calibrated Gyroscope data
183  //! Add/update Calibrated Gyroscope data for the item
184  bool setCalibratedGyroscopeData(const XsVector& vec, int32_t index = 0);
185 
186  /*! \brief Return the Calibrated Magnetometer component of a data item.
187  \param index The index of the item of which the data should be returned.
188  \returns The Calibrated Magnetometer component of a data item.
189  */
191  //! Check if data item contains Calibrated Magnetometer data
193  //! Add/update Calibrated Magnetometer data for the item
194  bool setCalibratedMagneticField(const XsVector& vec, int32_t index = 0);
195 
197  bool containsCalibratedData(int32_t index = 0) const;
199  /*! \brief Return the Orientation component of a data item as a Quaternion.
200  \param index The index of the item of which the data should be returned.
201  \returns The Orientation component of a data item as a Quaternion.
202  */
204  //! Check if data item contains Quaternion Orientation data
206  //! Add/update Quaternion Orientation data for the item
208  /*! \brief Return the Orientation component of a data item as Euler angles.
209  \param index The index of the item of which the data should be returned.
210  \returns The Orientation component of a data item as Euler angles.
211  */
213  //! Check if data item contains Euler Orientation data
214  bool containsOrientationEuler(int32_t index = 0) const;
215  //! Add/update Euler Orientation data for the item
216  bool setOrientationEuler(const XsEuler& data, int32_t index = 0);
217  /*! \brief Return the Orientation component of a data item as an Orientation
218  Matrix.
219  \param index The index of the item of which the data should be returned.
220  \returns The Orientation component of a data item as an Orientation
221  Matrix.
222  */
224  //! Check if data item contains Matrix Orientation data
225  bool containsOrientationMatrix(int32_t index = 0) const;
226  //! Add/update Matrix Orientation data for the item
227  bool setOrientationMatrix(const XsMatrix& data, int32_t index = 0);
228 
229  //! Check if data item contains Orientation Data of any kind
230  bool containsOrientation(int32_t index = 0) const;
231 
232  /*! \brief Return the AnalogIn 1 component of a data item.
233  \param index The index of the item of which the data should be returned.
234  \returns The AnalogIn 1 component of a data item.
235  */
237  //! Check if data item contains AnalogIn 1
238  bool containsAnalogIn1Data(int32_t index = 0) const;
239  //! Add/update AnalogIn 1 for the item
241 
242  /*! \brief Return the AnalogIn 2 component of a data item.
243  \param index The index of the item of which the data should be returned.
244  \returns The AnalogIn 2 component of a data item.
245  */
247  //! Check if data item contains AnalogIn 2
248  bool containsAnalogIn2Data(int32_t index = 0) const;
249  //! Add/update AnalogIn 2 for the item
251 
252  /*! \brief Return the Position Lat Lon Alt component of a data item.
253  \param index The index of the item of which the data should be returned.
254  \returns The Position Lat Lon Alt component of a data item.
255  */
256  XsVector positionLLA(int32_t index = 0) const;
257  //! Check if data item contains Position Lat Lon Alt
258  bool containsPositionLLA(int32_t index = 0) const;
259  //! Add/update Position Lat Lon Alt for the item
260  bool setPositionLLA(const XsVector& data, int32_t index = 0);
261 
262  /*! \brief Return the Velocity component of a data item.
263  \param index The index of the item of which the data should be returned.
264  \returns The Velocity component of a data item.
265  */
266  XsVector velocity(int32_t index = 0) const;
267  //! Check if data item contains Velocity
268  bool containsVelocity(int32_t index = 0) const;
269  //! Add/update Velocity for the item
270  bool setVelocity(const XsVector& data, int32_t index = 0);
271 
272  /*! \brief Return the Status component of a data item.
273  \param index The index of the item of which the data should be returned.
274  \param[out] outIsDetailed pointer to boolean. After call, the boolean is
275  true if the status is detailed
276  \returns The Status component of a data item.
277  */
278  uint32_t status(int32_t index, bool* outIsDetailed) const;
279  //! Check if data item contains Status
280  bool containsStatus(int32_t index = 0) const;
281  //! Check if data item contains detailed Status information
282  bool containsDetailedStatus(int32_t index = 0) const;
283  //! Add/update Status information for the item
284  bool setStatus(const uint32_t data, int32_t index = 0);
285 
286  /*! \brief Return the Sample Counter component of the packet.
287  \param index The index of the item of which the data should be returned.
288  (ignored)
289  \returns The Sample Counter component of the packet.
290  */
291  uint16_t packetCounter(int32_t index = 0) const;
292  //! Check if data item contains Sample Counter
293  bool containsPacketCounter(int32_t index = 0) const;
294  //! Add/update Sample Counter for all items
295  bool setPacketCounter(const uint16_t counter, int32_t index = 0);
296 
297  /*! \brief Return the UTC Time component of the packet.
298  \param index The index of the item of which the data should be returned.
299  (ignored)
300  \returns The UTC Time component of the packet.
301  */
302  XsUtcTime utcTime(int32_t index = 0) const;
303  //! Check if data item contains UTC Time
304  bool containsUtcTime(int32_t index = 0) const;
305  //! Add/update UTC Time for all items
306  bool setUtcTime(const XsUtcTime& data, int32_t index = 0);
307 
308  /*! \brief Return the Acc-G component of the packet.
309  \param index The index of the item of which the data should be returned.
310  \returns The Acc-G component of the packet.
311  */
313  //! Check if data item contains XKF-3 Acc-G data
314  bool containsFreeAcceleration(int32_t index = 0) const;
315  //! Add/update XKF-3 Acc-G data for the item
316  bool setFreeAcceleration(const XsVector& g, int32_t index = 0);
317 
318  /*! \brief Return the synhcronization time recorded by the station.
319  \param channelID The synchronization channel number, where the output
320  signal is connected.
321  \returns The synhcronization time recorded by the station.
322  */
323  XsTimeStamp triggerIndication(int channelID) const;
324  //! Check if data item contains indication time on the given line
325  bool containsTriggerIndication(int channelID = 0) const;
326  //! Add/update trigger indication time for the item to the given line
327  bool setTriggerIndication(int channelID, const XsTimeStamp& t);
328 
329  /*! \brief Returns a const pointer to the contained fixed data, mostly used
330  * for debugging */
331  inline const PacketFixedData* fixedData() const { return m_fixedData; }
332  private:
333  /** Fixed packet data */
335  /** Last found deviceId, speeds up searches */
337  /** Index of last found deviceId, speeds up searches */
339  /** The message */
341  /** Sample time in ms, based on the sample counter */
343  /** Time of arrival */
345  /** 64 bit sample counter */
347  /** Trigger indication on line 1 \todo remove this */
349  /** Trigger indication on line 2 \todo remove this */
351 };
352 
353 #endif // file guard
LegacyDataPacket::containsTemperature
bool containsTemperature(int32_t index=0, int channel=0) const
Check if data item contains Temperature data.
Definition: legacydatapacket.cpp:1529
LegacyDataPacket::fixedData
const PacketFixedData * fixedData() const
Returns a const pointer to the contained fixed data, mostly used for debugging.
Definition: legacydatapacket.h:331
LegacyDataPacket::setRtc
void setRtc(XsTimeStamp rtc)
Set the Real Time Clock value to realtimeclock.
Definition: legacydatapacket.cpp:183
format
GLenum GLsizei GLenum format
Definition: glext.h:3531
XsMtTimeStamp
uint16_t XsMtTimeStamp
An MT timestamp (sample count)
Definition: legacydatapacket.h:34
LegacyDataPacket::setUtcTime
bool setUtcTime(const XsUtcTime &data, int32_t index=0)
Add/update UTC Time for all items.
Definition: legacydatapacket.cpp:2285
XsQuaternion
Definition: xsquaternion.h:57
t
GLdouble GLdouble t
Definition: glext.h:3689
LegacyDataPacket::setOrientationQuaternion
bool setOrientationQuaternion(const XsQuaternion &data, int32_t index=0)
Add/update Quaternion Orientation data for the item.
Definition: legacydatapacket.cpp:1843
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
LegacyDataPacket::m_msg
XsMessage m_msg
The message.
Definition: legacydatapacket.h:340
XsDeviceId
Definition: xsdeviceid.h:65
LegacyDataPacket::m_triggerIn1
XsTimeStamp m_triggerIn1
Trigger indication on line 1.
Definition: legacydatapacket.h:348
LegacyDataPacket::containsDetailedStatus
bool containsDetailedStatus(int32_t index=0) const
Check if data item contains detailed Status information.
Definition: legacydatapacket.cpp:2194
LegacyDataPacket::setFreeAcceleration
bool setFreeAcceleration(const XsVector &g, int32_t index=0)
Add/update XKF-3 Acc-G data for the item.
Definition: legacydatapacket.cpp:2347
LegacyDataPacket::freeAcceleration
XsVector freeAcceleration(int32_t index=0) const
Return the Acc-G component of the packet.
Definition: legacydatapacket.cpp:2329
XsGpsPvtData
Data from the GPS unit of a legacy MTi-G.
Definition: xsgpspvtdata.h:34
LegacyDataPacket::setDataFormat
bool setDataFormat(const XsDataFormat &format, int32_t index=0)
Sets the data format of the device with the given index to format.
Definition: legacydatapacket.cpp:340
LegacyDataPacket::deviceId
XsDeviceId deviceId(int32_t index) const
Returns the device ID of the device with the given index.
Definition: legacydatapacket.cpp:298
LegacyDataPacket::setDeviceId
void setDeviceId(XsDeviceId deviceId, int32_t index)
Sets the device ID of the device with the given index to deviceid.
Definition: legacydatapacket.cpp:311
LegacyDataPacket::orientationQuaternion
XsQuaternion orientationQuaternion(int32_t index=0) const
Return the Orientation component of a data item as a Quaternion.
Definition: legacydatapacket.cpp:1824
xstypedefs.h
xstimestamp.h
LegacyDataPacket::gpsPvtData
XsGpsPvtData gpsPvtData(int32_t index=0) const
Return the Gps PVT data component of a data item.
Definition: legacydatapacket.cpp:1172
LegacyDataPacket::rawAcceleration
XsUShortVector rawAcceleration(int32_t index=0) const
The Raw Accelerometer component of a data item.
Definition: legacydatapacket.cpp:944
LegacyDataPacket::rawData
XsScrData rawData(int32_t index=0) const
Return the Raw Data component of a data item.
Definition: legacydatapacket.cpp:1115
LegacyDataPacket::largePacketCounter
int64_t largePacketCounter(void) const
Return the 64-bit sample counter associated with this packet.
Definition: legacydatapacket.cpp:193
LegacyDataPacket::setAnalogIn1Data
bool setAnalogIn1Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 1 for the item.
Definition: legacydatapacket.cpp:2013
LegacyDataPacket::orientationMatrix
XsMatrix orientationMatrix(int32_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
Definition: legacydatapacket.cpp:1928
LegacyDataPacket::getFPValueSize
uint16_t getFPValueSize(int32_t index) const
Returns the floating/fixed point value size in bytes.
Definition: legacydatapacket.cpp:443
XsOutputMode
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
LegacyDataPacket::analogIn1Data
XsAnalogInData analogIn1Data(int32_t index=0) const
Return the AnalogIn 1 component of a data item.
Definition: legacydatapacket.cpp:1996
int64_t
__int64 int64_t
Definition: rptypes.h:49
LegacyDataPacket::setMessage
void setMessage(const XsMessage &message)
Set the source message to msg.
Definition: legacydatapacket.cpp:232
LegacyDataPacket::containsRawTemperature
bool containsRawTemperature(int32_t index=0, int channel=0) const
Check if data item contains Raw Temperature data.
Definition: legacydatapacket.cpp:1071
LegacyDataPacket::setRawAcceleration
bool setRawAcceleration(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Accelerometer data for the item.
Definition: legacydatapacket.cpp:970
g
GLubyte g
Definition: glext.h:6279
XsEuler
Definition: xseuler.h:40
XsCalibratedData
Definition: xscalibrateddata.h:36
LegacyDataPacket::status
uint32_t status(int32_t index, bool *outIsDetailed) const
Return the Status component of a data item.
Definition: legacydatapacket.cpp:2163
LegacyDataPacket::rawTemperatureChannelCount
int rawTemperatureChannelCount(int32_t index=0) const
Returns the number of available Raw Temperature channels.
Definition: legacydatapacket.cpp:1102
LegacyDataPacket::dataFormat
XsDataFormat dataFormat(int32_t index=0) const
Returns the data format of the device with the given index.
Definition: legacydatapacket.cpp:323
XsMatrix
Definition: xsmatrix.h:65
XsVector
Definition: xsvector.h:59
LegacyDataPacket::containsCalibratedData
bool containsCalibratedData(int32_t index=0) const
Check if data item contains Calibrated Data.
Definition: legacydatapacket.cpp:1767
LegacyDataPacket::containsUtcTime
bool containsUtcTime(int32_t index=0) const
Check if data item contains UTC Time.
Definition: legacydatapacket.cpp:2278
XsUtcTime
A structure for storing UTC Time values.
Definition: xsutctime.h:15
PacketFixedData
A structure containing fixed packet data, which should not change during a measurement for the same d...
Definition: packetfixeddata.h:163
LegacyDataPacket::operator=
const LegacyDataPacket & operator=(const LegacyDataPacket &pack)
Assignment operator, copies the contents of pack into this.
Definition: legacydatapacket.cpp:107
LegacyDataPacket::containsFreeAcceleration
bool containsFreeAcceleration(int32_t index=0) const
Check if data item contains XKF-3 Acc-G data.
Definition: legacydatapacket.cpp:2340
LegacyDataPacket::temperatureChannelCount
int temperatureChannelCount(int32_t index=0) const
Returns the number of temperature channels.
Definition: legacydatapacket.cpp:1569
LegacyDataPacket::containsPressure
bool containsPressure(int32_t index=0) const
Return true if the packet contains pressure data.
Definition: legacydatapacket.cpp:1330
LegacyDataPacket::containsOrientationEuler
bool containsOrientationEuler(int32_t index=0) const
Check if data item contains Euler Orientation data.
Definition: legacydatapacket.cpp:1894
LegacyDataPacket::containsRawData
bool containsRawData(int32_t index=0) const
Check if data item contains Raw Data.
Definition: legacydatapacket.cpp:1133
LegacyDataPacket::setLargePacketCounter
void setLargePacketCounter(int64_t sc)
Set the 64-bit sample counter associated with this packet.
Definition: legacydatapacket.cpp:200
LegacyDataPacket::setXbusSystem
void setXbusSystem(bool xbus, bool convert=false)
Sets the xbus flag.
Definition: legacydatapacket.cpp:400
LegacyDataPacket::frameCounter
uint16_t frameCounter() const
Return the frame counter (previously: sample counter) of the packet.
Definition: legacydatapacket.cpp:254
LegacyDataPacket::containsStatus
bool containsStatus(int32_t index=0) const
Check if data item contains Status.
Definition: legacydatapacket.cpp:2187
LegacyDataPacket::containsCalibratedAcceleration
bool containsCalibratedAcceleration(int32_t index=0) const
Check if data item contains Calibrated Accelerometer data.
Definition: legacydatapacket.cpp:1592
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
XsDataFormat
A structure for storing data formats.
Definition: xsdataformat.h:17
LegacyDataPacket::containsGpsPvtData
bool containsGpsPvtData(int32_t index=0) const
Check if data item contains Gps PVT Data.
Definition: legacydatapacket.cpp:1226
LegacyDataPacket::setTriggerIndication
bool setTriggerIndication(int channelID, const XsTimeStamp &t)
Add/update trigger indication time for the item to the given line.
Definition: legacydatapacket.cpp:2404
LegacyDataPacket::isXbusSystem
bool isXbusSystem(void) const
Returns whether the xbus flag is set or not.
Definition: legacydatapacket.cpp:384
XsUShortVector
A vector containing 3 short values.
Definition: xsushortvector.h:24
LegacyDataPacket::itemCount
uint16_t itemCount(void) const
Returns the number of devices whose data is contained in the object.
Definition: legacydatapacket.cpp:153
LegacyDataPacket::setCalibratedAcceleration
bool setCalibratedAcceleration(const XsVector &vec, int32_t index=0)
Add/update Calibrated Accelerometer data for the item.
Definition: legacydatapacket.cpp:1599
LegacyDataPacket::m_lastFoundIndex
uint16_t m_lastFoundIndex
Index of last found deviceId, speeds up searches.
Definition: legacydatapacket.h:338
LegacyDataPacket::setMtwSdiData
bool setMtwSdiData(const MtwSdiData &data, int32_t index=0)
Add/update strapdown integration data for the item.
Definition: legacydatapacket.cpp:1448
LegacyDataPacket::calibratedMagneticField
XsVector calibratedMagneticField(int32_t index=0) const
Return the Calibrated Magnetometer component of a data item.
Definition: legacydatapacket.cpp:1673
LegacyDataPacket::setAnalogIn2Data
bool setAnalogIn2Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 2 for the item.
Definition: legacydatapacket.cpp:2050
LegacyDataPacket::positionLLA
XsVector positionLLA(int32_t index=0) const
Return the Position Lat Lon Alt component of a data item.
Definition: legacydatapacket.cpp:2070
LegacyDataPacket::containsCalibratedGyroscopeData
bool containsCalibratedGyroscopeData(int32_t index=0) const
Check if data item contains Calibrated Gyroscope data.
Definition: legacydatapacket.cpp:1638
index
GLuint index
Definition: glext.h:4054
MtwSdiData
Class to store strapdown integration data.
Definition: mtwsdidata.h:19
LegacyDataPacket::containsRawAcceleration
bool containsRawAcceleration(int32_t index=0) const
Check if data item contains Raw Accelerometer data.
Definition: legacydatapacket.cpp:961
LegacyDataPacket::setCalibratedGyroscopeData
bool setCalibratedGyroscopeData(const XsVector &vec, int32_t index=0)
Add/update Calibrated Gyroscope data for the item.
Definition: legacydatapacket.cpp:1645
LegacyDataPacket::analogIn2Data
XsAnalogInData analogIn2Data(int32_t index=0) const
Return the AnalogIn 2 component of a data item.
Definition: legacydatapacket.cpp:2033
LegacyDataPacket::setPacketCounter
bool setPacketCounter(const uint16_t counter, int32_t index=0)
Add/update Sample Counter for all items.
Definition: legacydatapacket.cpp:2240
LegacyDataPacket::containsRawMagneticField
bool containsRawMagneticField(int32_t index=0) const
Check if data item contains Raw Magnetometer data.
Definition: legacydatapacket.cpp:1037
LegacyDataPacket::containsCalibratedMagneticField
bool containsCalibratedMagneticField(int32_t index=0) const
Check if data item contains Calibrated Magnetometer data.
Definition: legacydatapacket.cpp:1684
LegacyDataPacket::packetInfo
PacketInfo packetInfo(int32_t index) const
Returns the packet info for the index'th device in the packet.
Definition: legacydatapacket.cpp:238
LegacyDataPacket::setPressure
bool setPressure(const XsPressure &data, int32_t index=0)
Add/update pressure data for the item.
Definition: legacydatapacket.cpp:1343
XsSize
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
LegacyDataPacket::temperature
double temperature(int32_t index=0, int channel=0) const
Return the Temperature component of a data item.
Definition: legacydatapacket.cpp:1520
LegacyDataPacket::setGpsPvtData
bool setGpsPvtData(const XsGpsPvtData &data, int32_t index=0)
Add/update Gps PVT Data for the item.
Definition: legacydatapacket.cpp:1234
LegacyDataPacket::findDeviceId
int32_t findDeviceId(XsDeviceId dev) const
Returns the index of the fixed data with id dev.
Definition: legacydatapacket.cpp:276
LegacyDataPacket::m_lastFoundId
XsDeviceId m_lastFoundId
Last found deviceId, speeds up searches.
Definition: legacydatapacket.h:336
LegacyDataPacket::containsRawGyroscopeData
bool containsRawGyroscopeData(int32_t index=0) const
Check if data item contains Raw Gyroscope data.
Definition: legacydatapacket.cpp:1000
LegacyDataPacket::packetCounter
uint16_t packetCounter(int32_t index=0) const
Return the Sample Counter component of the packet.
Definition: legacydatapacket.cpp:2228
LegacyDataPacket::pressure
XsPressure pressure(int32_t index=0) const
Return the pressure data component of a data item.
Definition: legacydatapacket.cpp:1299
xsdeviceid.h
LegacyDataPacket::m_triggerIn2
XsTimeStamp m_triggerIn2
Trigger indication on line 2.
Definition: legacydatapacket.h:350
LegacyDataPacket::timeOfArrival
XsTimeStamp timeOfArrival(void) const
Returns the Time Of Arrival value as stored in the object.
Definition: legacydatapacket.cpp:170
LegacyDataPacket::setItemCount
void setItemCount(uint16_t count)
Set the number of devices whose data is contained in this object to count.
Definition: legacydatapacket.cpp:162
XsPressure
Pressure data.
Definition: xspressure.h:17
LegacyDataPacket::containsTriggerIndication
bool containsTriggerIndication(int channelID=0) const
Check if data item contains indication time on the given line.
Definition: legacydatapacket.cpp:2386
LegacyDataPacket::setTimeOfArrival
void setTimeOfArrival(XsTimeStamp timeOfArrival)
Set the Time Of Arrival value to timeofarrival.
Definition: legacydatapacket.cpp:173
XsTimeStamp
Class for managing timestamps in a unified way.
Definition: xstimestamp.h:53
LegacyDataPacket
Contains an MTData XsMessage and supports functions for extracting contained data.
Definition: legacydatapacket.h:41
XsOutputSettings
XsOutputSettings
Bit values for output settings.
Definition: xsoutputsettings.h:16
LegacyDataPacket::rtc
XsTimeStamp rtc(void) const
Returns the Real Time Clock value as stored in the object.
Definition: legacydatapacket.cpp:180
LegacyDataPacket::setRawData
bool setRawData(const XsScrData &data, int32_t index=0)
Add/update Raw Data for the item.
Definition: legacydatapacket.cpp:1139
LegacyDataPacket::m_rtc
XsTimeStamp m_rtc
Sample time in ms, based on the sample counter.
Definition: legacydatapacket.h:342
LegacyDataPacket::calibratedGyroscopeData
XsVector calibratedGyroscopeData(int32_t index=0) const
Return the Calibrated Gyroscope component of a data item.
Definition: legacydatapacket.cpp:1627
int32_t
__int32 int32_t
Definition: rptypes.h:46
LegacyDataPacket::utcTime
XsUtcTime utcTime(int32_t index=0) const
Return the UTC Time component of the packet.
Definition: legacydatapacket.cpp:2257
LegacyDataPacket::containsPositionLLA
bool containsPositionLLA(int32_t index=0) const
Check if data item contains Position Lat Lon Alt.
Definition: legacydatapacket.cpp:2081
pstdint.h
LegacyDataPacket::setVelocity
bool setVelocity(const XsVector &data, int32_t index=0)
Add/update Velocity for the item.
Definition: legacydatapacket.cpp:2134
LegacyDataPacket::updateInfoList
void updateInfoList()
Update the internal info list by analyzing the known XsDataFormat for each device.
Definition: legacydatapacket.cpp:485
LegacyDataPacket::message
XsMessage message(void) const
Returns a copy of the XsMessage contained by the object, including computed and added data.
Definition: legacydatapacket.cpp:207
XsMessage
Structure for storing a single message.
Definition: xsmessage.h:198
LegacyDataPacket::mtwSdiData
MtwSdiData mtwSdiData(int32_t index=0) const
Return the strapdown integration (SDI) data component of a data item.
Definition: legacydatapacket.cpp:1374
LegacyDataPacket::containsOrientation
bool containsOrientation(int32_t index=0) const
Check if data item contains Orientation Data of any kind.
Definition: legacydatapacket.cpp:1984
XsScrData
Container for raw sensor measurement data.
Definition: xsscrdata.h:35
LegacyDataPacket::m_fixedData
PacketFixedData * m_fixedData
Fixed packet data.
Definition: legacydatapacket.h:334
LegacyDataPacket::containsAnalogIn1Data
bool containsAnalogIn1Data(int32_t index=0) const
Check if data item contains AnalogIn 1.
Definition: legacydatapacket.cpp:2005
xsmessage.h
LegacyDataPacket::containsVelocity
bool containsVelocity(int32_t index=0) const
Check if data item contains Velocity.
Definition: legacydatapacket.cpp:2126
LegacyDataPacket::m_packetId
XsTimeStamp m_packetId
64 bit sample counter
Definition: legacydatapacket.h:346
LegacyDataPacket::setPositionLLA
bool setPositionLLA(const XsVector &data, int32_t index=0)
Add/update Position Lat Lon Alt for the item.
Definition: legacydatapacket.cpp:2088
LegacyDataPacket::calibratedData
XsCalibratedData calibratedData(int32_t index=0) const
Return the Calibrated Data component of a data item.
Definition: legacydatapacket.cpp:1721
LegacyDataPacket::calibratedAcceleration
XsVector calibratedAcceleration(int32_t index=0) const
Return the Calibrated Accelerometer component of a data item.
Definition: legacydatapacket.cpp:1581
LegacyDataPacket::setRawTemperature
bool setRawTemperature(uint16_t temp, int32_t index=0, int channel=0)
Add/update Raw Temperature data for the item.
Definition: legacydatapacket.cpp:1080
LegacyDataPacket::setCalibratedMagneticField
bool setCalibratedMagneticField(const XsVector &vec, int32_t index=0)
Add/update Calibrated Magnetometer data for the item.
Definition: legacydatapacket.cpp:1691
LegacyDataPacket::setOrientationEuler
bool setOrientationEuler(const XsEuler &data, int32_t index=0)
Add/update Euler Orientation data for the item.
Definition: legacydatapacket.cpp:1901
LegacyDataPacket::LegacyDataPacket
LegacyDataPacket()
Construct a new LegacyDataPacket without data. The LegacyDataPacket will be invalid.
Definition: legacydatapacket.cpp:51
LegacyDataPacket::setOrientationMatrix
bool setOrientationMatrix(const XsMatrix &data, int32_t index=0)
Add/update Matrix Orientation data for the item.
Definition: legacydatapacket.cpp:1955
LegacyDataPacket::containsOrientationMatrix
bool containsOrientationMatrix(int32_t index=0) const
Check if data item contains Matrix Orientation data.
Definition: legacydatapacket.cpp:1948
LegacyDataPacket::m_toa
XsTimeStamp m_toa
Time of arrival.
Definition: legacydatapacket.h:344
xsdataformat.h
LegacyDataPacket::orientationEuler
XsEuler orientationEuler(int32_t index=0) const
Return the Orientation component of a data item as Euler angles.
Definition: legacydatapacket.cpp:1881
LegacyDataPacket::setRawMagneticField
bool setRawMagneticField(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Magnetometer data for the item.
Definition: legacydatapacket.cpp:1044
XsAnalogInData
Data from analog inputs from sensors.
Definition: xsanalogindata.h:15
LegacyDataPacket::triggerIndication
XsTimeStamp triggerIndication(int channelID) const
Return the synhcronization time recorded by the station.
Definition: legacydatapacket.cpp:2372
LegacyDataPacket::velocity
XsVector velocity(int32_t index=0) const
Return the Velocity component of a data item.
Definition: legacydatapacket.cpp:2115
LegacyDataPacket::~LegacyDataPacket
~LegacyDataPacket()
Destructor.
Definition: legacydatapacket.cpp:135
LegacyDataPacket::setStatus
bool setStatus(const uint32_t data, int32_t index=0)
Add/update Status information for the item.
Definition: legacydatapacket.cpp:2202
LegacyDataPacket::dataSize
XsSize dataSize(int32_t index=0) const
Returns the size of the data.
Definition: legacydatapacket.cpp:475
uint32_t
unsigned __int32 uint32_t
Definition: rptypes.h:47
LegacyDataPacket::containsOrientationQuaternion
bool containsOrientationQuaternion(int32_t index=0) const
Check if data item contains Quaternion Orientation data.
Definition: legacydatapacket.cpp:1836
LegacyDataPacket::containsAnalogIn2Data
bool containsAnalogIn2Data(int32_t index=0) const
Check if data item contains AnalogIn 2.
Definition: legacydatapacket.cpp:2042
LegacyDataPacket::containsPacketCounter
bool containsPacketCounter(int32_t index=0) const
Check if data item contains Sample Counter.
Definition: legacydatapacket.cpp:2233
LegacyDataPacket::rawMagneticField
XsUShortVector rawMagneticField(int32_t index=0) const
Return the Raw Magnetometer component of a data item.
Definition: legacydatapacket.cpp:1027
LegacyDataPacket::setTemperature
bool setTemperature(const double &temp, int32_t index=0, int channel=0)
Add/update Calibrated Accelerometer data for the item.
Definition: legacydatapacket.cpp:1538
LegacyDataPacket::rawGyroscopeData
XsUShortVector rawGyroscopeData(int32_t index=0) const
Return the Raw Gyroscope component of a data item.
Definition: legacydatapacket.cpp:990
LegacyDataPacket::rawTemperature
uint16_t rawTemperature(int32_t index=0, int channel=0) const
Return the Raw Temperature component of a data item.
Definition: legacydatapacket.cpp:1064
LegacyDataPacket::setRawGyroscopeData
bool setRawGyroscopeData(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Gyroscope data for the item.
Definition: legacydatapacket.cpp:1007
LegacyDataPacket::containsMtwSdiData
bool containsMtwSdiData(int32_t index=0) const
Check if data item contains strapdown integration data.
Definition: legacydatapacket.cpp:1434
LegacyDataPacket::setCalibratedData
bool setCalibratedData(const XsCalibratedData &data, int32_t index=0)
Add/update Calibrated Data for the item.
Definition: legacydatapacket.cpp:1775
LegacyDataPacket::originalMessage
XsMessage originalMessage(void) const
Returns the original message as it was received, without computed and added data (except for SDI inte...
Definition: legacydatapacket.cpp:211



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