- 3.0.2 models module.
HyQForwardZero.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 models {
12 namespace HyQ {
13 
14 class HyQForwardZero : public core::Derivatives<49, 36, double>
15 {
16 public:
17  typedef Eigen::Matrix<double, 36, 1> OUT_TYPE;
18  typedef Eigen::Matrix<double, 49, 1> X_TYPE;
19 
21  {
22  eval_.setZero();
23  v_.fill(0.0);
24  };
25 
27  {
28  eval_.setZero();
29  v_.fill(0.0);
30  }
31 
32  virtual ~HyQForwardZero(){};
33 
34  HyQForwardZero* clone() const override { return new HyQForwardZero(*this); }
35  OUT_TYPE forwardZero(const Eigen::VectorXd& x_in) override;
36 
37 private:
38  OUT_TYPE eval_;
39  std::array<double, 402> v_;
40 };
41 
42 } /* namespace HyQ */
43 } /* namespace models */
44 } /* namespace ct */
OUT_TYPE forwardZero(const Eigen::VectorXd &x_in) override
Definition: HyQForwardZero.cpp:12
Eigen::Matrix< double, 49, 1 > X_TYPE
Definition: HyQForwardZero.h:18
HyQForwardZero()
Definition: HyQForwardZero.h:20
HyQForwardZero(const HyQForwardZero &other)
Definition: HyQForwardZero.h:26
HyQForwardZero * clone() const override
Definition: HyQForwardZero.h:34
virtual ~HyQForwardZero()
Definition: HyQForwardZero.h:32
Eigen::Matrix< double, 36, 1 > OUT_TYPE
Definition: HyQForwardZero.h:17
Definition: HyQForwardZero.h:14