hpp-constraints  4.9.1
Definition of basic geometric constraints for motion planning
manipulability.hh
Go to the documentation of this file.
1 // Copyright (c) 2018 CNRS
2 // Authors: Joseph Mirabel
3 //
4 // This file is part of hpp-constraints
5 // hpp-constraints is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // hpp-constraints is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // hpp-constraints If not, see
16 // <http://www.gnu.org/licenses/>.
17 
18 #ifndef HPP_CONSTRAINTS_MANIPULABILITY_HH
19 # define HPP_CONSTRAINTS_MANIPULABILITY_HH
20 
21 # include <hpp/constraints/fwd.hh>
22 # include <hpp/constraints/config.hh>
25 
26 namespace hpp {
27  namespace constraints {
28  HPP_PREDEF_CLASS (Manipulability);
29  typedef boost::shared_ptr <Manipulability> ManipulabilityPtr_t;
30 
33 
35  class HPP_CONSTRAINTS_DLLAPI Manipulability : public DifferentiableFunction
36  {
37  public:
38  virtual ~Manipulability () {}
39 
40  static ManipulabilityPtr_t create (DifferentiableFunctionPtr_t function,
41  DevicePtr_t robot, std::string name)
42  {
43  return ManipulabilityPtr_t (new Manipulability (function, robot, name));
44  }
45 
46  protected:
52  DevicePtr_t robot, std::string name);
53 
54  void impl_compute (LiegroupElementRef result, vectorIn_t argument) const;
55 
56  void impl_jacobian (matrixOut_t jacobian, vectorIn_t arg) const;
57 
58  private:
60  DevicePtr_t robot_;
61 
63 
64  mutable matrix_t J_, J_JT_;
65  }; // class Manipulability
67  } // namespace constraints
68 } // namespace hpp
69 
70 
71 #endif // HPP_CONSTRAINTS_MANIPULABILITY_HH
boost::shared_ptr< Manipulability > ManipulabilityPtr_t
Definition: manipulability.hh:29
pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:46
static ManipulabilityPtr_t create(DifferentiableFunctionPtr_t function, DevicePtr_t robot, std::string name)
Definition: manipulability.hh:40
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:91
HPP_PREDEF_CLASS(DifferentiableFunction)
pinocchio::matrix_t matrix_t
Definition: fwd.hh:42
Differentiable function.
Definition: manipulability.hh:35
Definition: differentiable-function.hh:50
boost::shared_ptr< DifferentiableFunction > DifferentiableFunctionPtr_t
Definition: fwd.hh:95
virtual ~Manipulability()
Definition: manipulability.hh:38
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:44