Main MRPT website > C++ reference for MRPT 1.5.7
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-2017, 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 {XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER, XSVECTOR3_INITIALIZER}
21 #endif
22 
23 XSTYPES_DLL_API void XsCalibratedData_construct(struct XsCalibratedData* thisPtr, const XsReal* acc, const XsReal* gyr, const XsReal* mag);
25 
26 #ifdef __cplusplus
27 } // extern "C"
28 #endif
29 
31 {
32  XsVector3 m_acc; //!< Accelerometer data
33  XsVector3 m_gyr; //!< Gyroscope data
34  XsVector3 m_mag; //!< Magnetometer data
35 
36 #ifdef __cplusplus
37  //! \brief Constructor \sa XsCalibratedData_construct
38  inline XsCalibratedData()
39  {}
40 
41  //! \brief Copy constructor, copies the values from \a other to this
42  inline XsCalibratedData(const XsCalibratedData& other)
43  : m_acc(other.m_acc)
44  , m_gyr(other.m_gyr)
45  , m_mag(other.m_mag)
46  {
47  }
48 
49  //! \brief Destructor
50  inline ~XsCalibratedData()
51  {}
52 
53  //! \brief Assignment operator, copies the values from \a other to this
54  inline const XsCalibratedData& operator = (const XsCalibratedData& other)
55  {
56  if (this != &other)
57  {
58  m_acc = other.m_acc;
59  m_gyr = other.m_gyr;
60  m_mag = other.m_mag;
61  }
62  return *this;
63  }
64 #endif
65 };
67 
68 #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:16
XsVector3 m_acc
Accelerometer data.



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019