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
27
XSTYPES_DLL_API
void
XsCalibratedData_construct
(
28
struct
XsCalibratedData
* thisPtr,
const
XsReal
* acc,
const
XsReal
* gyr,
29
const
XsReal
* mag);
30
XSTYPES_DLL_API
void
XsCalibratedData_destruct
(
31
struct
XsCalibratedData
* thisPtr);
32
33
#ifdef __cplusplus
34
}
// extern "C"
35
#endif
36
37
struct
XsCalibratedData
38
{
39
/** Accelerometer data */
40
XsVector3
m_acc
;
41
/** Gyroscope data */
42
XsVector3
m_gyr
;
43
/** Magnetometer data */
44
XsVector3
m_mag
;
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
};
70
typedef
struct
XsCalibratedData
XsCalibratedData
;
71
72
#endif // file guard
XsCalibratedData_construct
XSTYPES_DLL_API void XsCalibratedData_construct(struct XsCalibratedData *thisPtr, const XsReal *acc, const XsReal *gyr, const XsReal *mag)
XsCalibratedData::m_mag
XsVector3 m_mag
Magnetometer data.
Definition:
xscalibrateddata.h:44
XsCalibratedData::m_gyr
XsVector3 m_gyr
Gyroscope data.
Definition:
xscalibrateddata.h:42
xsvector3.h
XsVector3
Definition:
xsvector3.h:43
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsCalibratedData
struct XsCalibratedData XsCalibratedData
Definition:
xscalibrateddata.h:70
XsCalibratedData_destruct
XSTYPES_DLL_API void XsCalibratedData_destruct(struct XsCalibratedData *thisPtr)
XsReal
double XsReal
Defines the floating point type used by the Xsens libraries.
Definition:
xstypedefs.h:17
xstypesconfig.h
XsCalibratedData::m_acc
XsVector3 m_acc
Accelerometer data.
Definition:
xscalibrateddata.h:40
XsCalibratedData
Definition:
xscalibrateddata.h:37
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