state-observation 1.8.0
General implementation of observers.
Loading...
Searching...
No Matches
delayed-measurements-complem-filter.hpp
1#ifndef DelayedMeasurementComplemFilterHPP
2#define DelayedMeasurementComplemFilterHPP
3
4#include <state-observation/observer/delayed-measurements-observer.hpp>
5
6namespace stateObservation
7{
8
9class STATE_OBSERVATION_DLLAPI DelayedMeasurementComplemFilter : public DelayedMeasurementObserver
10{
11public:
19 Index n,
20 Index dx_size,
21 Index m,
22 unsigned long bufferCapacity,
23 const std::shared_ptr<IndexedInputArrayInterface> input = nullptr,
24 const std::shared_ptr<AsynchronousDataMapBase> async_input = nullptr,
25 const std::shared_ptr<AsynchronousDataMapBase> async_meas = nullptr)
26 : DelayedMeasurementObserver(dt, n, m, bufferCapacity, input, async_input, async_meas)
27 {
28 dx_hat_.resize(dx_size);
29 }
30
32
35
36protected:
40 virtual StateVector oneStepEstimation_(StateIterator it) override = 0;
41
45 virtual StateVector & computeStateDynamics_(StateIterator it) = 0;
46
50 virtual void integrateState_(StateIterator it) = 0;
51
52 Vector dx_hat_;
53};
54} // namespace stateObservation
55
56#endif // DelayedMeasurementComplemFilterHPP
virtual StateVector oneStepEstimation_(StateIterator it) override=0
Runs one loop of the estimator.
virtual void integrateState_(StateIterator it)=0
Integrates the computed state dynamics.
virtual StateVector & computeStateDynamics_(StateIterator it)=0
Computes the dynamics of the state at the desired iteration.
DelayedMeasurementComplemFilter(double dt, Index n, Index dx_size, Index m, unsigned long bufferCapacity, const std::shared_ptr< IndexedInputArrayInterface > input=nullptr, const std::shared_ptr< AsynchronousDataMapBase > async_input=nullptr, const std::shared_ptr< AsynchronousDataMapBase > async_meas=nullptr)
DelayedMeasurementObserver(double dt, Index n, Index m, unsigned long bufferCapacity, const std::shared_ptr< IndexedInputArrayInterface > input=nullptr, const std::shared_ptr< AsynchronousDataMapBase > async_input=nullptr, const std::shared_ptr< AsynchronousDataMapBase > async_meas=nullptr)
Vector StateVector
StateVector is the type of state vector.
Filtering of divergent component of motion (DCM) and estimation of a bias betweeen the DCM and the co...
Eigen::VectorXd Vector
Dynamic sized scalar vector.