measured-force-base.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022 CNRS INRIA LORIA
3 //
4 // This file is part of tsid
5 // tsid 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 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_measured_force_base_hpp__
19 #define __invdyn_measured_force_base_hpp__
20 
21 #include <pinocchio/multibody/fwd.hpp>
22 
23 #include "tsid/math/fwd.hpp"
24 #include "tsid/robots/fwd.hpp"
25 
26 namespace tsid {
27 namespace contacts {
29  public:
30  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
31 
35 
36  MeasuredForceBase(const std::string &name, RobotWrapper &robot);
37 
38  const std::string &name() const;
39 
40  void name(const std::string &name);
41 
46  virtual const Vector &computeJointTorques(Data &data) = 0;
47 
48  protected:
49  std::string m_name;
50 
52  RobotWrapper &m_robot;
53 };
54 } // namespace contacts
55 } // namespace tsid
56 
57 #endif // ifndef __invdyn_measured_force_base_hpp__
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
const std::string & name() const
data
Definition: setup.in.py:48
virtual const Vector & computeJointTorques(Data &data)=0
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
Wrapper for a robot based on pinocchio.
MeasuredForceBase(const std::string &name, RobotWrapper &robot)
RobotWrapper & m_robot
Reference on the robot model.


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sun Jul 2 2023 02:21:51