MRPT  1.9.9
xssdidata.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 XSSDIDATA_H
10 #define XSSDIDATA_H
11 
12 #include "xsquaternion.h"
13 #include "xstypesconfig.h"
14 #include "xsvector3.h"
15 
16 struct XsSdiData;
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #else
22 #define XSSDIDATA_INITIALIZER \
23  { \
24  XSQUATERNION_INITIALIZER, XSVECTOR3_INITIALIZER \
25  }
26 #endif
27 
29  struct XsSdiData* thisPtr, const XsReal* orientationIncrement,
30  const XsReal* velocityIncrement);
31  XSTYPES_DLL_API void XsSdiData_destruct(struct XsSdiData* thisPtr);
32 
33 #ifdef __cplusplus
34 } // extern "C"
35 #endif
36 
37 struct XsSdiData
38 {
39 #ifdef __cplusplus
40  //! \brief Construct an empty object
41  inline XsSdiData() {}
42  //! \brief Construct an initialized object
43  inline XsSdiData(const XsQuaternion& dq, const XsVector& dv)
45  {
46  }
47 
48  //! \brief Copy constructor
49  inline XsSdiData(const XsSdiData& other)
52  {
53  }
54 
55  //! \brief Assignment operator
56  inline const XsSdiData& operator=(const XsSdiData& other)
57  {
58  if (this != &other)
59  {
62  }
63  return *this;
64  }
65 
66  //! \brief Clear the object so it contains unity data
67  inline void zero()
68  {
69  m_orientationIncrement = XsQuaternion::identity();
70  m_velocityIncrement.zero();
71  }
72 
73  //! \brief Returns the contained orientation increment
74  inline const XsQuaternion& orientationIncrement() const
75  {
77  }
78 
79  //! \brief Update the contained orientation increment
80  inline void setOrientationIncrement(const XsQuaternion& dq)
81  {
83  }
84 
85  //! \brief Returns the contained velocity increment
86  inline const XsVector3& velocityIncrement() const
87  {
88  return m_velocityIncrement;
89  }
90 
91  //! \brief Update the contained velocity increment
92  inline void setVelocityIncrement(const XsVector& dv)
93  {
95  }
96 
97  private:
98 #endif
99 
100  /** The orientation increment */
102  /** The velocity increment */
104 };
105 
106 typedef struct XsSdiData XsSdiData;
107 
108 #endif // file guard
struct XsSdiData XsSdiData
Definition: xssdidata.h:106
XsQuaternion m_orientationIncrement
The orientation increment.
Definition: xssdidata.h:101
XsVector3 m_velocityIncrement
The velocity increment.
Definition: xssdidata.h:103
XSTYPES_DLL_API void XsSdiData_destruct(struct XsSdiData *thisPtr)
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
double XsReal
Defines the floating point type used by the Xsens libraries.
Definition: xstypedefs.h:17
XSTYPES_DLL_API void XsSdiData_construct(struct XsSdiData *thisPtr, const XsReal *orientationIncrement, const XsReal *velocityIncrement)



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