Main MRPT website
>
C++ reference for MRPT 1.5.9
xSens_MT4
xstypes
include
xsens
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);
24
XSTYPES_DLL_API
void
XsCalibratedData_destruct
(
struct
XsCalibratedData
* thisPtr);
25
26
#ifdef __cplusplus
27
}
// extern "C"
28
#endif
29
30
struct
XsCalibratedData
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
};
66
typedef
struct
XsCalibratedData
XsCalibratedData
;
67
68
#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:34
XsCalibratedData::m_gyr
XsVector3 m_gyr
Gyroscope data.
Definition:
xscalibrateddata.h:33
xsvector3.h
XsVector3
Definition:
xsvector3.h:37
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsCalibratedData
struct XsCalibratedData XsCalibratedData
Definition:
xscalibrateddata.h:66
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:16
xstypesconfig.h
XsCalibratedData::m_acc
XsVector3 m_acc
Accelerometer data.
Definition:
xscalibrateddata.h:32
XsCalibratedData
Definition:
xscalibrateddata.h:30
Page generated by
Doxygen 1.8.14
for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020