state-observation 1.7.0
Loading...
Searching...
No Matches
accelerometer-gyrometer.hpp
Go to the documentation of this file.
1
10#ifndef SIMULATIONACCELEROMETERGYROMETERSENSORHPP
11#define SIMULATIONACCELEROMETERGYROMETERSENSORHPP
12
13#include <boost/assert.hpp>
14#include <Eigen/Core>
15
16#include <state-observation/api.h>
20
21namespace stateObservation
22{
36{
37public:
38 AccelerometerGyrometer(bool matrixMode = false, bool withAcceleroBias = false, bool withGyroBias = false);
39
42
44 {
45 matrixMode_ = matrixMode;
46 updateStateSize_();
47 }
48
50 {
51 withGyroBias_ = withGyroBias;
52 updateStateSize_();
53 }
54
56 {
57 withAcceleroBias_ = withAcceleroBias;
58 updateStateSize_();
59 }
60
61protected:
63 virtual Index getStateSize_() const;
64
66 virtual Index getMeasurementSize_() const;
67
69
71
76
79
81
82 static const Index stateSize_ = 10;
83 static const Index stateSizeMatrix_ = 15;
84 static const Index measurementSize_ = 6;
85
87};
88
89} // namespace stateObservation
90
91#endif // SIMULATIONACCELEROMETERGYROMETERSENSORHPP
Gives a base class for algebraic sensors.
Implements the accelerometer-gyrometer measurements.
Definition accelerometer-gyrometer.hpp:36
Vector3 omega_
Definition accelerometer-gyrometer.hpp:74
Index currentStateSize_
Definition accelerometer-gyrometer.hpp:86
bool matrixMode_
Definition accelerometer-gyrometer.hpp:80
Matrix3 r_
Definition accelerometer-gyrometer.hpp:72
void setWithAcceleroBias(bool withAcceleroBias)
Definition accelerometer-gyrometer.hpp:55
virtual ~AccelerometerGyrometer()
Virtual destructor.
Definition accelerometer-gyrometer.hpp:41
void setWithGyroBias(bool withGyroBias)
Definition accelerometer-gyrometer.hpp:49
virtual Index getMeasurementSize_() const
Gets the measurements vector size.
Vector3 acc_
Definition accelerometer-gyrometer.hpp:73
virtual Index getStateSize_() const
Gets the state vector Size.
Vector output_
Definition accelerometer-gyrometer.hpp:75
bool withGyroBias_
Definition accelerometer-gyrometer.hpp:77
bool withAcceleroBias_
Definition accelerometer-gyrometer.hpp:78
void setMatrixMode(bool matrixMode)
Definition accelerometer-gyrometer.hpp:43
AccelerometerGyrometer(bool matrixMode=false, bool withAcceleroBias=false, bool withGyroBias=false)
The base class for algebraic sensors. Algebraic sensors are sensors which depend only on the state va...
Definition algebraic-sensor.hpp:35
Implements the measurements given by an accelerometer.
Definition linear-acceleration.hpp:29
Implements the gyrometer measurement algorithm.
Definition rotation-velocity.hpp:29
Implements the accelerometer algorithm.
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
Eigen::Vector3d Vector3
3D vector
Definition definitions.hpp:85
Eigen::Matrix3d Matrix3
3x3 Scalar Matrix
Definition definitions.hpp:109
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76
The implementation of the algorithm of a rotation velocity sensor.