state-observation 1.7.0
General implementation of observers.
Loading...
Searching...
No Matches
accelerometer-gyrometer-magnetometer.hpp
Go to the documentation of this file.
1
10
11#ifndef SIMULATIONACCELEROMETERGYROMETERMAGNETOMETERSENSORHPP
12#define SIMULATIONACCELEROMETERGYROMETERMAGNETOMETERSENSORHPP
13
14#include <boost/assert.hpp>
15#include <Eigen/Core>
16
17#include <state-observation/api.h>
22
23namespace stateObservation
24{
34
35class STATE_OBSERVATION_DLLAPI AccelerometerGyrometerMagnetometer : public AlgebraicSensor,
39{
40public:
41 AccelerometerGyrometerMagnetometer();
42
45
46 void setMatrixMode(bool matrixMode);
47
48protected:
50 virtual Index getStateSize_() const;
51
53 virtual Index getMeasurementSize_() const;
54
56
57 Matrix3 r_;
58 Vector3 acc_;
59 Vector3 omega_;
60 Vector3 magne_;
61 Vector output_;
62
63 bool matrixMode_;
64
65 static const Index stateSize_ = 10;
66 static const Index stateSizeMatrix_ = 15;
67
68 static const Index measurementSize_ = 9;
69
70 Index currentStateSize_;
71};
72
73} // namespace stateObservation
74
75#endif // SIMULATIONACCELEROMETERGYROMETERMAGNETOMETERSENSORHPP
Gives a base class for algebraic sensors.
virtual Index getMeasurementSize_() const
Gets the measurements vector size.
virtual Index getStateSize_() const
Gets the state vector Size.
AlgebraicSensor()
Default constructor.
Implements the measurements given by an accelerometer.
Implements the measurements given by an magnetometer.
Implements the gyrometer measurement algorithm.
Implements the accelerometer algorithm.
Implements the magnetic field algorithm.
Filtering of divergent component of motion (DCM) and estimation of a bias betweeen the DCM and the co...
Eigen::Vector3d Vector3
3D vector
Eigen::Matrix3d Matrix3
3x3 Scalar Matrix
Eigen::VectorXd Vector
Dynamic sized scalar vector.
The implementation of the algorithm of a rotation velocity sensor.