- 3.0.2 optimal control module.
LTIMeasurementModel.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4 **********************************************************************************************************************/
5 
6 #pragma once
7 
9 
10 namespace ct {
11 namespace optcon {
12 
23 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR = double>
24 class LTIMeasurementModel : public LinearMeasurementModel<OUTPUT_DIM, STATE_DIM, SCALAR>
25 {
26 public:
27  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
28 
30  using typename Base::output_matrix_t;
31  using typename Base::output_state_matrix_t;
32  using typename Base::output_vector_t;
33  using typename Base::state_vector_t;
34  using typename Base::Time_t;
35 
38 
40  LTIMeasurementModel(const output_state_matrix_t& C, const output_matrix_t& dHdw = output_matrix_t::Zero());
41 
43  output_vector_t computeMeasurement(const state_vector_t& state, const Time_t& t = 0) override;
44 
47 
49  output_matrix_t computeDerivativeNoise(const state_vector_t& state, const Time_t& t) override;
50 
51 protected:
54 };
55 
56 } // namespace optcon
57 } // namespace ct
output_state_matrix_t dHdx_
Definition: LTIMeasurementModel.h:52
ct::core::OutputMatrix< OUTPUT_DIM, SCALAR > output_matrix_t
Definition: LinearMeasurementModel.h:30
output_matrix_t computeDerivativeNoise(const state_vector_t &state, const Time_t &t) override
Returns the constant dHdw.
Definition: LTIMeasurementModel-impl.h:46
ct::core::OutputStateMatrix< OUTPUT_DIM, STATE_DIM, SCALAR > output_state_matrix_t
Definition: LinearMeasurementModel.h:31
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
output_vector_t computeMeasurement(const state_vector_t &state, const Time_t &t=0) override
Calculates the measurement from the current state.
Definition: LTIMeasurementModel-impl.h:28
ct::core::StateVector< STATE_DIM, SCALAR > state_vector_t
Definition: MeasurementModelBase.h:15
Linear Measurement Model is an interface for linear measurement models most commonly used in practice...
Definition: LinearMeasurementModel.h:23
ct::core::Time Time_t
Definition: MeasurementModelBase.h:17
output_matrix_t dHdw_
Matrix C.
Definition: LTIMeasurementModel.h:53
output_state_matrix_t computeDerivativeState(const state_vector_t &state, const Time_t &t) override
Returns matrix C.
Definition: LTIMeasurementModel-impl.h:37
Definition: MeasurementModelBase.h:12
LTIMeasurementModel()
Default constructor.
Definition: LTIMeasurementModel-impl.h:12
Linear Time-Invariant measurement model is simply a linear measurement model for which the matrix C i...
Definition: LTIMeasurementModel.h:24
ct::core::OutputVector< OUTPUT_DIM, SCALAR > output_vector_t
Definition: MeasurementModelBase.h:16