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
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
bool containsMtwSdiData(int32_t index=0) const
Check if data item contains strapdown integration data.
bool setMtwSdiData(const MtwSdiData &data, int32_t index=0)
Add/update strapdown integration data for the item.
uint16_t itemCount(void) const
Returns the number of devices whose data is contained in the object.
XsSize dataSize(int32_t index=0) const
Returns the size of the data.
MtwSdiData mtwSdiData(int32_t index=0) const
Return the strapdown integration (SDI) data component of a data item.
GLuint GLuint GLsizei count
Definition: glext.h:3528
bool containsOrientation(int32_t index=0) const
Check if data item contains Orientation Data of any kind.
const PacketFixedData * fixedData() const
Returns a const pointer to the contained fixed data, mostly used for debugging.
XsVector freeAcceleration(int32_t index=0) const
Return the Acc-G component of the packet.
XsScrData rawData(int32_t index=0) const
Return the Raw Data component of a data item.
XsTimeStamp rtc(void) const
Returns the Real Time Clock value as stored in the object.
uint16_t rawTemperature(int32_t index=0, int channel=0) const
Return the Raw Temperature component of a data item.
PacketFixedData * m_fixedData
Fixed packet data.
bool containsOrientationMatrix(int32_t index=0) const
Check if data item contains Matrix Orientation data.
GLdouble GLdouble t
Definition: glext.h:3689
unsigned __int16 uint16_t
Definition: rptypes.h:44
void setMessage(const XsMessage &message)
Set the source message to msg.
bool setRawMagneticField(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Magnetometer data for the item.
XsUtcTime utcTime(int32_t index=0) const
Return the UTC Time component of the packet.
bool setTriggerIndication(int channelID, const XsTimeStamp &t)
Add/update trigger indication time for the item to the given line.
int temperatureChannelCount(int32_t index=0) const
Returns the number of temperature channels.
XsMessage m_msg
The message.
bool containsOrientationEuler(int32_t index=0) const
Check if data item contains Euler Orientation data.
bool containsRawData(int32_t index=0) const
Check if data item contains Raw Data.
bool setRawTemperature(uint16_t temp, int32_t index=0, int channel=0)
Add/update Raw Temperature data for the item.
A vector containing 3 short values.
Class to store strapdown integration data.
Definition: mtwsdidata.h:19
bool setDataFormat(const XsDataFormat &format, int32_t index=0)
Sets the data format of the device with the given index to format.
bool setGpsPvtData(const XsGpsPvtData &data, int32_t index=0)
Add/update Gps PVT Data for the item.
int32_t findDeviceId(XsDeviceId dev) const
Returns the index of the fixed data with id dev.
bool setOrientationQuaternion(const XsQuaternion &data, int32_t index=0)
Add/update Quaternion Orientation data for the item.
int rawTemperatureChannelCount(int32_t index=0) const
Returns the number of available Raw Temperature channels.
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
XsUShortVector rawGyroscopeData(int32_t index=0) const
Return the Raw Gyroscope component of a data item.
bool setAnalogIn2Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 2 for the item.
XsEuler orientationEuler(int32_t index=0) const
Return the Orientation component of a data item as Euler angles.
bool setTemperature(const double &temp, int32_t index=0, int channel=0)
Add/update Calibrated Accelerometer data for the item.
int counter
bool containsFreeAcceleration(int32_t index=0) const
Check if data item contains XKF-3 Acc-G data.
double temperature(int32_t index=0, int channel=0) const
Return the Temperature component of a data item.
XsUShortVector rawAcceleration(int32_t index=0) const
The Raw Accelerometer component of a data item.
XsVector positionLLA(int32_t index=0) const
Return the Position Lat Lon Alt component of a data item.
LegacyDataPacket()
Construct a new LegacyDataPacket without data. The LegacyDataPacket will be invalid.
XsDataFormat dataFormat(int32_t index=0) const
Returns the data format of the device with the given index.
bool setRawGyroscopeData(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Gyroscope data for the item.
bool containsTriggerIndication(int channelID=0) const
Check if data item contains indication time on the given line.
XsAnalogInData analogIn2Data(int32_t index=0) const
Return the AnalogIn 2 component of a data item.
bool containsCalibratedData(int32_t index=0) const
Check if data item contains Calibrated Data.
bool containsCalibratedAcceleration(int32_t index=0) const
Check if data item contains Calibrated Accelerometer data.
Contains offset information about data in the packet.
XsVector calibratedGyroscopeData(int32_t index=0) const
Return the Calibrated Gyroscope component of a data item.
int64_t largePacketCounter(void) const
Return the 64-bit sample counter associated with this packet.
Structure for storing a single message.
Definition: xsmessage.h:198
__int64 int64_t
Definition: rptypes.h:49
XsGpsPvtData gpsPvtData(int32_t index=0) const
Return the Gps PVT data component of a data item.
GLuint index
Definition: glext.h:4054
bool setAnalogIn1Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 1 for the item.
bool containsCalibratedMagneticField(int32_t index=0) const
Check if data item contains Calibrated Magnetometer data.
bool setFreeAcceleration(const XsVector &g, int32_t index=0)
Add/update XKF-3 Acc-G data for the item.
bool setPacketCounter(const uint16_t counter, int32_t index=0)
Add/update Sample Counter for all items.
void setDeviceId(XsDeviceId deviceId, int32_t index)
Sets the device ID of the device with the given index to deviceid.
bool setUtcTime(const XsUtcTime &data, int32_t index=0)
Add/update UTC Time for all items.
GLubyte g
Definition: glext.h:6279
bool containsUtcTime(int32_t index=0) const
Check if data item contains UTC Time.
XsDeviceId deviceId(int32_t index) const
Returns the device ID of the device with the given index.
bool setVelocity(const XsVector &data, int32_t index=0)
Add/update Velocity for the item.
bool setPositionLLA(const XsVector &data, int32_t index=0)
Add/update Position Lat Lon Alt for the item.
Class for managing timestamps in a unified way.
Definition: xstimestamp.h:53
uint16_t m_lastFoundIndex
Index of last found deviceId, speeds up searches.
XsTimeStamp triggerIndication(int channelID) const
Return the synhcronization time recorded by the station.
void setItemCount(uint16_t count)
Set the number of devices whose data is contained in this object to count.
bool containsCalibratedGyroscopeData(int32_t index=0) const
Check if data item contains Calibrated Gyroscope data.
bool setPressure(const XsPressure &data, int32_t index=0)
Add/update pressure data for the item.
XsQuaternion orientationQuaternion(int32_t index=0) const
Return the Orientation component of a data item as a Quaternion.
XsMessage originalMessage(void) const
Returns the original message as it was received, without computed and added data (except for SDI inte...
const LegacyDataPacket & operator=(const LegacyDataPacket &pack)
Assignment operator, copies the contents of pack into this.
bool containsRawTemperature(int32_t index=0, int channel=0) const
Check if data item contains Raw Temperature data.
Data from analog inputs from sensors.
bool setStatus(const uint32_t data, int32_t index=0)
Add/update Status information for the item.
__int32 int32_t
Definition: rptypes.h:46
bool containsPacketCounter(int32_t index=0) const
Check if data item contains Sample Counter.
Contains an MTData XsMessage and supports functions for extracting contained data.
A structure for storing data formats.
Definition: xsdataformat.h:17
void setXbusSystem(bool xbus, bool convert=false)
Sets the xbus flag.
XsOutputSettings
Bit values for output settings.
bool containsRawMagneticField(int32_t index=0) const
Check if data item contains Raw Magnetometer data.
XsMessage message(void) const
Returns a copy of the XsMessage contained by the object, including computed and added data...
XsAnalogInData analogIn1Data(int32_t index=0) const
Return the AnalogIn 1 component of a data item.
bool setRawData(const XsScrData &data, int32_t index=0)
Add/update Raw Data for the item.
A structure for storing UTC Time values.
Definition: xsutctime.h:15
PacketInfo packetInfo(int32_t index) const
Returns the packet info for the index&#39;th device in the packet.
A structure containing fixed packet data, which should not change during a measurement for the same d...
bool containsPositionLLA(int32_t index=0) const
Check if data item contains Position Lat Lon Alt.
bool containsPressure(int32_t index=0) const
Return true if the packet contains pressure data.
XsTimeStamp m_triggerIn1
Trigger indication on line 1.
uint16_t packetCounter(int32_t index=0) const
Return the Sample Counter component of the packet.
uint32_t status(int32_t index, bool *outIsDetailed) const
Return the Status component of a data item.
void updateInfoList()
Update the internal info list by analyzing the known XsDataFormat for each device.
void setLargePacketCounter(int64_t sc)
Set the 64-bit sample counter associated with this packet.
bool containsOrientationQuaternion(int32_t index=0) const
Check if data item contains Quaternion Orientation data.
bool containsAnalogIn1Data(int32_t index=0) const
Check if data item contains AnalogIn 1.
uint16_t frameCounter() const
Return the frame counter (previously: sample counter) of the packet.
XsTimeStamp m_packetId
64 bit sample counter
XsUShortVector rawMagneticField(int32_t index=0) const
Return the Raw Magnetometer component of a data item.
void setTimeOfArrival(XsTimeStamp timeOfArrival)
Set the Time Of Arrival value to timeofarrival.
bool setRawAcceleration(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Accelerometer data for the item.
XsVector calibratedAcceleration(int32_t index=0) const
Return the Calibrated Accelerometer component of a data item.
uint16_t XsMtTimeStamp
An MT timestamp (sample count)
GLenum GLsizei GLenum format
Definition: glext.h:3531
XsDeviceId m_lastFoundId
Last found deviceId, speeds up searches.
bool setOrientationMatrix(const XsMatrix &data, int32_t index=0)
Add/update Matrix Orientation data for the item.
Container for raw sensor measurement data.
Definition: xsscrdata.h:35
XsCalibratedData calibratedData(int32_t index=0) const
Return the Calibrated Data component of a data item.
uint16_t getFPValueSize(int32_t index) const
Returns the floating/fixed point value size in bytes.
bool containsAnalogIn2Data(int32_t index=0) const
Check if data item contains AnalogIn 2.
XsPressure pressure(int32_t index=0) const
Return the pressure data component of a data item.
void setRtc(XsTimeStamp rtc)
Set the Real Time Clock value to realtimeclock.
bool setCalibratedMagneticField(const XsVector &vec, int32_t index=0)
Add/update Calibrated Magnetometer data for the item.
bool containsVelocity(int32_t index=0) const
Check if data item contains Velocity.
bool containsStatus(int32_t index=0) const
Check if data item contains Status.
XsMatrix orientationMatrix(int32_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
bool containsDetailedStatus(int32_t index=0) const
Check if data item contains detailed Status information.
bool setCalibratedData(const XsCalibratedData &data, int32_t index=0)
Add/update Calibrated Data for the item.
XsTimeStamp m_rtc
Sample time in ms, based on the sample counter.
bool containsRawGyroscopeData(int32_t index=0) const
Check if data item contains Raw Gyroscope data.
unsigned __int32 uint32_t
Definition: rptypes.h:47
~LegacyDataPacket()
Destructor.
XsVector calibratedMagneticField(int32_t index=0) const
Return the Calibrated Magnetometer component of a data item.
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3546
bool containsTemperature(int32_t index=0, int channel=0) const
Check if data item contains Temperature data.
XsTimeStamp m_triggerIn2
Trigger indication on line 2.
bool setCalibratedAcceleration(const XsVector &vec, int32_t index=0)
Add/update Calibrated Accelerometer data for the item.
bool containsGpsPvtData(int32_t index=0) const
Check if data item contains Gps PVT Data.
XsVector velocity(int32_t index=0) const
Return the Velocity component of a data item.
bool isXbusSystem(void) const
Returns whether the xbus flag is set or not.
bool setCalibratedGyroscopeData(const XsVector &vec, int32_t index=0)
Add/update Calibrated Gyroscope data for the item.
bool setOrientationEuler(const XsEuler &data, int32_t index=0)
Add/update Euler Orientation data for the item.
XsTimeStamp m_toa
Time of arrival.
XsTimeStamp timeOfArrival(void) const
Returns the Time Of Arrival value as stored in the object.
bool containsRawAcceleration(int32_t index=0) const
Check if data item contains Raw Accelerometer data.
Data from the GPS unit of a legacy MTi-G.
Definition: xsgpspvtdata.h:34
Pressure data.
Definition: xspressure.h:17



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020