MRPT  1.9.9
xscalibrateddata.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSCALIBRATEDDATA_H
10 #define XSCALIBRATEDDATA_H
11 
12 #include "xstypesconfig.h"
13 #include "xsvector3.h"
14 
15 struct XsCalibratedData;
16 
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #else
21 #define XSCALIBRATEDDATA_INITIALIZER \
22  { \
23  XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER \
24  }
25 #endif
26 
28  struct XsCalibratedData* thisPtr, const XsReal* acc, const XsReal* gyr,
29  const XsReal* mag);
31  struct XsCalibratedData* thisPtr);
32 
33 #ifdef __cplusplus
34 } // extern "C"
35 #endif
36 
38 {
39  /** Accelerometer data */
41  /** Gyroscope data */
43  /** Magnetometer data */
45 
46 #ifdef __cplusplus
47  //! \brief Constructor \sa XsCalibratedData_construct
48  inline XsCalibratedData() {}
49  //! \brief Copy constructor, copies the values from \a other to this
50  inline XsCalibratedData(const XsCalibratedData& other)
51  : m_acc(other.m_acc), m_gyr(other.m_gyr), m_mag(other.m_mag)
52  {
53  }
54 
55  //! \brief Destructor
56  inline ~XsCalibratedData() {}
57  //! \brief Assignment operator, copies the values from \a other to this
58  inline const XsCalibratedData& operator=(const XsCalibratedData& other)
59  {
60  if (this != &other)
61  {
62  m_acc = other.m_acc;
63  m_gyr = other.m_gyr;
64  m_mag = other.m_mag;
65  }
66  return *this;
67  }
68 #endif
69 };
71 
72 #endif // file guard
XSTYPES_DLL_API void XsCalibratedData_construct(struct XsCalibratedData *thisPtr, const XsReal *acc, const XsReal *gyr, const XsReal *mag)
XsVector3 m_mag
Magnetometer data.
XsVector3 m_gyr
Gyroscope data.
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
struct XsCalibratedData XsCalibratedData
XSTYPES_DLL_API void XsCalibratedData_destruct(struct XsCalibratedData *thisPtr)
double XsReal
Defines the floating point type used by the Xsens libraries.
Definition: xstypedefs.h:17
XsVector3 m_acc
Accelerometer data.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019