Main MRPT website > C++ reference for 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
XsCalibratedData_construct
XSTYPES_DLL_API void XsCalibratedData_construct(struct XsCalibratedData *thisPtr, const XsReal *acc, const XsReal *gyr, const XsReal *mag)
XsCalibratedData_destruct
XSTYPES_DLL_API void XsCalibratedData_destruct(struct XsCalibratedData *thisPtr)
XsCalibratedData
Definition: xscalibrateddata.h:36
XsReal
double XsReal
Defines the floating point type used by the Xsens libraries.
Definition: xstypedefs.h:17
XsCalibratedData::m_gyr
XsVector3 m_gyr
Gyroscope data.
Definition: xscalibrateddata.h:41
XsCalibratedData
struct XsCalibratedData XsCalibratedData
Definition: xscalibrateddata.h:69
xstypesconfig.h
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
xsvector3.h
XsVector3
Definition: xsvector3.h:40
XsCalibratedData::m_acc
XsVector3 m_acc
Accelerometer data.
Definition: xscalibrateddata.h:39
XsCalibratedData::m_mag
XsVector3 m_mag
Magnetometer data.
Definition: xscalibrateddata.h:43



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