- 3.0.2 optimal control module.
LTIMeasurementModel-impl.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 namespace ct {
9 namespace optcon {
10 
11 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR>
13 {
14  dHdx_.setIdentity();
15  dHdw_.setZero();
16 }
17 
18 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR>
22  : dHdx_(C), dHdw_(dHdw)
23 {
24 }
25 
26 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR>
30  const Time_t& t)
31 {
32  return dHdx_ * state;
33 }
34 
35 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR>
39  const Time_t& t)
40 {
41  return dHdx_;
42 }
43 
44 template <size_t OUTPUT_DIM, size_t STATE_DIM, typename SCALAR>
48  const Time_t& t)
49 {
50  return dHdw_;
51 }
52 
53 } // namespace optcon
54 } // namespace ct
output_matrix_t computeDerivativeNoise(const state_vector_t &state, const Time_t &t) override
Returns the constant dHdw.
Definition: LTIMeasurementModel-impl.h:46
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::Time Time_t
Definition: MeasurementModelBase.h:17
output_state_matrix_t computeDerivativeState(const state_vector_t &state, const Time_t &t) override
Returns matrix C.
Definition: LTIMeasurementModel-impl.h:37
LTIMeasurementModel()
Default constructor.
Definition: LTIMeasurementModel-impl.h:12