hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
cost.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 CNRS
3 // Authors: Florent Lamiraux
4 //
5 // This file is part of hpp-core
6 // hpp-core is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // hpp-core is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // hpp-core If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 #ifndef HPP_CORE_PATH_OPTIMIZATION_COST_HH
20 # define HPP_CORE_PATH_OPTIMIZATION_COST_HH
21 
23 # include <hpp/core/fwd.hh>
24 # include <hpp/core/config.hh>
25 
26 namespace hpp {
27  namespace core {
28  namespace pathOptimization {
33  class HPP_CORE_DLLAPI Cost : public DifferentiableFunction
34  {
35  public:
38  virtual void hessian (matrixOut_t hessian) const = 0;
39 
40  protected:
41  Cost (size_type inputSize, size_type inputDerivativeSize,
42  const std::string& name) :
43  DifferentiableFunction (inputSize, inputDerivativeSize,
44  LiegroupSpace::R1 (), name)
45  {
46  }
47  }; // Cost
48  } // namespace pathOptimization
49  } // namespace core
50 } // namespace hpp
51 #endif // HPP_CORE_PATH_OPTIMIZATION_COST_HH
pinocchio::size_type size_type
Definition: fwd.hh:156
Definition: cost.hh:33
constraints::matrixOut_t matrixOut_t
Definition: fwd.hh:150
Cost(size_type inputSize, size_type inputDerivativeSize, const std::string &name)
Definition: cost.hh:41