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