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