MRPT  1.9.9
xscalibrateddata.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 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 #else
20 #define XSCALIBRATEDDATA_INITIALIZER \
21  { \
22  XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER \
23  }
24 #endif
25 
27  struct XsCalibratedData* thisPtr, const XsReal* acc, const XsReal* gyr,
28  const XsReal* mag);
30  struct XsCalibratedData* thisPtr);
31 
32 #ifdef __cplusplus
33 } // extern "C"
34 #endif
35 
37 {
38  /** Accelerometer data */
40  /** Gyroscope data */
42  /** Magnetometer data */
44 
45 #ifdef __cplusplus
46  //! \brief Constructor \sa XsCalibratedData_construct
47  inline XsCalibratedData() {}
48  //! \brief Copy constructor, copies the values from \a other to this
49  inline XsCalibratedData(const XsCalibratedData& other)
50  : m_acc(other.m_acc), m_gyr(other.m_gyr), m_mag(other.m_mag)
51  {
52  }
53 
54  //! \brief Destructor
55  inline ~XsCalibratedData() {}
56  //! \brief Assignment operator, copies the values from \a other to this
57  inline const XsCalibratedData& operator=(const XsCalibratedData& other)
58  {
59  if (this != &other)
60  {
61  m_acc = other.m_acc;
62  m_gyr = other.m_gyr;
63  m_mag = other.m_mag;
64  }
65  return *this;
66  }
67 #endif
68 };
70 
71 #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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020