- 3.0.2 optimal control module.
LinearMeasurementModel.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 
8 #include "MeasurementModelBase.h"
9 
10 namespace ct {
11 namespace optcon {
12 
22 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR = double>
23 class LinearMeasurementModel : public MeasurementModelBase<OUTPUT_DIM, STATE_DIM, SCALAR>
24 {
25 public:
27  using typename Base::state_vector_t;
28  using typename Base::output_vector_t;
29  using typename Base::Time_t;
32 
34  virtual output_vector_t computeMeasurement(const state_vector_t& state, const Time_t& t = 0) = 0;
36  virtual output_state_matrix_t computeDerivativeState(const state_vector_t& state, const Time_t& t) = 0;
38  virtual output_matrix_t computeDerivativeNoise(const state_vector_t& state, const Time_t& t) = 0;
39 };
40 
41 } // optcon
42 } // ct
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
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
virtual output_vector_t computeMeasurement(const state_vector_t &state, const Time_t &t=0)=0
Calculates the measurement from the current state.
ct::core::Time Time_t
Definition: MeasurementModelBase.h:17
Definition: MeasurementModelBase.h:12
virtual output_matrix_t computeDerivativeNoise(const state_vector_t &state, const Time_t &t)=0
Computes the derivative of the output w.r.t. the noise.
virtual output_state_matrix_t computeDerivativeState(const state_vector_t &state, const Time_t &t)=0
Computes the derivative of the output w.r.t. the state.
ct::core::OutputVector< OUTPUT_DIM, SCALAR > output_vector_t
Definition: MeasurementModelBase.h:16