state-observation 1.7.0
Loading...
Searching...
No Matches
tilt-estimator.hpp
Go to the documentation of this file.
1
12#ifndef TILTESTIMATORHPP
13#define TILTESTIMATORHPP
14
15#include <state-observation/api.h>
17
18namespace stateObservation
19{
20
36{
37public:
44 TiltEstimator(double alpha, double beta, double gamma, double dt);
45
50 void initEstimator(Vector3 x1 = Vector3::Zero(), Vector3 x2_prime = Vector3::UnitZ(), Vector3 x2 = Vector3::UnitZ());
51
53 void setAlpha(const double alpha)
54 {
55 alpha_ = alpha;
56 }
57 double getAlpha() const
58 {
59 return alpha_;
60 }
61
63 void setBeta(const double beta)
64 {
65 beta_ = beta;
66 }
67 double getBeta() const
68 {
69 return beta_;
70 }
71
73 void setGamma(const double gamma)
74 {
75 gamma_ = gamma;
76 }
77 double getGamma() const
78 {
79 return gamma_;
80 }
81
83 void setSamplingTime(const double dt)
84 {
85 dt_ = dt;
86 }
87 double getSamplingTime() const
88 {
89 return dt_;
90 }
91
93 void setMeasurement(const Vector3 & yv_k, const Vector3 & ya_k, const Vector3 & yg_k, TimeIndex k);
94
96
98
99protected:
101 double alpha_, beta_, gamma_;
102
104 double dt_;
105
112
115};
116
117} // namespace stateObservation
118
119#endif // TILTESTIMATORHPP
Vector StateVector
StateVector is the type of state vector.
Definition observer-base.hpp:42
Description is pending.
Definition tilt-estimator.hpp:36
Vector3 dx1_hat
Definition tilt-estimator.hpp:111
void setSamplingTime(const double dt)
set the sampling time of the measurements
Definition tilt-estimator.hpp:83
double dt_
Sampling time.
Definition tilt-estimator.hpp:104
double alpha_
The parameters of the estimator.
Definition tilt-estimator.hpp:101
Vector3 x2_hat_prime_
Definition tilt-estimator.hpp:109
void setGamma(const double gamma)
set the gain of x2_hat variable
Definition tilt-estimator.hpp:73
void setAlpha(const double alpha)
set the gain of x1_hat variable
Definition tilt-estimator.hpp:53
double getSamplingTime() const
Definition tilt-estimator.hpp:87
TiltEstimator(double alpha, double beta, double gamma, double dt)
Vector3 x1_
variables used for the computation
Definition tilt-estimator.hpp:107
double getAlpha() const
Definition tilt-estimator.hpp:57
void setMeasurement(const Vector3 &yv_k, const Vector3 &ya_k, const Vector3 &yg_k, TimeIndex k)
sets ths measurement (accelero and gyro stacked in one vector)
void setBeta(const double beta)
set the gain of x2prime_hat variable
Definition tilt-estimator.hpp:63
double getGamma() const
Definition tilt-estimator.hpp:77
StateVector oneStepEstimation_()
The tilt estimator loop.
Vector3 x2_hat_
Definition tilt-estimator.hpp:110
Vector3 x1_hat_
Definition tilt-estimator.hpp:108
double getBeta() const
Definition tilt-estimator.hpp:67
void initEstimator(Vector3 x1=Vector3::Zero(), Vector3 x2_prime=Vector3::UnitZ(), Vector3 x2=Vector3::UnitZ())
initializes the state vector.
Defines the base class of online zero delay observers. Zero delay observers are the classical state o...
Definition zero-delay-observer.hpp:44
virtual void setMeasurement(const ObserverBase::MeasureVector &y_k, TimeIndex k)
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Eigen::Vector3d Vector3
3D vector
Definition definitions.hpp:85
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Defines the base class of online zero delay observers. Zero delay observers are the classical state o...