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
26
XSTYPES_DLL_API
void
XsCalibratedData_construct
(
27
struct
XsCalibratedData
* thisPtr,
const
XsReal
* acc,
const
XsReal
* gyr,
28
const
XsReal
* mag);
29
XSTYPES_DLL_API
void
XsCalibratedData_destruct
(
30
struct
XsCalibratedData
* thisPtr);
31
32
#ifdef __cplusplus
33
}
// extern "C"
34
#endif
35
36
struct
XsCalibratedData
37
{
38
/** Accelerometer data */
39
XsVector3
m_acc
;
40
/** Gyroscope data */
41
XsVector3
m_gyr
;
42
/** Magnetometer data */
43
XsVector3
m_mag
;
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
};
69
typedef
struct
XsCalibratedData
XsCalibratedData
;
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::m_mag
XsVector3 m_mag
Magnetometer data.
Definition:
xscalibrateddata.h:43
XsCalibratedData::m_gyr
XsVector3 m_gyr
Gyroscope data.
Definition:
xscalibrateddata.h:41
xsvector3.h
XsVector3
Definition:
xsvector3.h:40
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsCalibratedData
struct XsCalibratedData XsCalibratedData
Definition:
xscalibrateddata.h:69
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:39
XsCalibratedData
Definition:
xscalibrateddata.h:36
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