- 3.0.2 core module.
TestForwardZero.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 core {
12 namespace generated {
13 
14 class TestForwardZero : public core::Derivatives<3, 2, double>
15 {
16 public:
17  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
18 
19  typedef Eigen::Matrix<double, 2, 1> OUT_TYPE;
20  typedef Eigen::Matrix<double, 3, 1> X_TYPE;
21 
23  {
24  eval_.setZero();
25  v_.fill(0.0);
26  };
27 
29  {
30  eval_.setZero();
31  v_.fill(0.0);
32  }
33 
34  virtual ~TestForwardZero(){};
35 
36  TestForwardZero* clone() const override { return new TestForwardZero(*this); }
37  OUT_TYPE forwardZero(const Eigen::VectorXd& x_in) override;
38 
39 private:
40  OUT_TYPE eval_;
41  std::array<double, 0> v_;
42 };
43 
44 } // namespace generated
45 } // namespace core
46 } // namespace ct
virtual ~TestForwardZero()
Definition: TestForwardZero.h:34
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Eigen::Matrix< double, 2, 1 > OUT_TYPE
Definition: TestForwardZero.h:19
TestForwardZero * clone() const override
deep copy for derived classes
Definition: TestForwardZero.h:36
TestForwardZero(const TestForwardZero &other)
Definition: TestForwardZero.h:28
General interface class for a Derivatives.
Definition: Derivatives.h:24
OUT_TYPE forwardZero(const Eigen::VectorXd &x_in) override
Evaluates the method itself.
Definition: TestForwardZero.cpp:15
TestForwardZero()
Definition: TestForwardZero.h:22
Eigen::Matrix< double, 3, 1 > X_TYPE
Definition: TestForwardZero.h:20
Definition: TestForwardZero.h:14