measured-3d-force.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2025 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_3d_force_hpp__
19 #define __invdyn_measured_3d_force_hpp__
20 
21 #include <pinocchio/multibody/data.hpp>
22 
24 
25 namespace tsid {
26 namespace contacts {
28  public:
29  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
30 
31  typedef math::Index Index;
36 
37  Measured3Dforce(const std::string &name, RobotWrapper &robot,
38  const std::string &frameName);
39 
40  const Vector &computeJointTorques(Data &data) override;
41 
46  void setMeasuredContactForce(const Vector3 &fext);
47 
48  const Vector3 &getMeasuredContactForce() const;
49 
57  void useLocalFrame(bool local_frame);
58 
59  protected:
60  std::string m_frame_name;
67 };
68 } // namespace contacts
69 } // namespace tsid
70 
71 #endif // ifndef __invdyn_measured_3d_force_hpp__
tsid::contacts::Measured3Dforce::Index
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Definition: measured-3d-force.hpp:31
pinocchio::DataTpl
tsid::contacts::Measured3Dforce::Vector3
math::Vector3 Vector3
Definition: measured-3d-force.hpp:32
tsid::contacts::Measured3Dforce::useLocalFrame
void useLocalFrame(bool local_frame)
Specifies if the external force and jacobian is expressed in the local frame or the local world-orien...
Definition: measured-3d-force.cpp:77
tsid::contacts::Measured3Dforce::m_frame_id
Index m_frame_id
Definition: measured-3d-force.hpp:61
setup.data
data
Definition: setup.in.py:48
demo_quadruped.robot
robot
Definition: demo_quadruped.py:51
tsid::contacts::MeasuredForceBase
Definition: measured-force-base.hpp:28
tsid::contacts::Measured3Dforce::computeJointTorques
const Vector & computeJointTorques(Data &data) override
Definition: measured-3d-force.cpp:45
tsid::contacts::Measured3Dforce::getMeasuredContactForce
const Vector3 & getMeasuredContactForce() const
Definition: measured-3d-force.cpp:73
tsid::contacts::Measured3Dforce::Matrix3x
pinocchio::Data::Matrix3x Matrix3x
Definition: measured-3d-force.hpp:35
tsid::contacts::Measured3Dforce::m_computedTorques
Vector m_computedTorques
Definition: measured-3d-force.hpp:65
tsid::contacts::Measured3Dforce
Definition: measured-3d-force.hpp:27
tsid::contacts::Measured3Dforce::m_fext
Vector3 m_fext
Definition: measured-3d-force.hpp:62
tsid::math::Index
std::size_t Index
Definition: math/fwd.hpp:53
pinocchio::DataTpl::Matrix3x
Eigen::Matrix< Scalar, 3, Eigen::Dynamic, Options > Matrix3x
tsid::contacts::Measured3Dforce::m_J_rotated
Matrix3x m_J_rotated
Definition: measured-3d-force.hpp:64
tsid::contacts::Measured3Dforce::setMeasuredContactForce
void setMeasuredContactForce(const Vector3 &fext)
Definition: measured-3d-force.cpp:69
tsid::contacts::MeasuredForceBase::name
const std::string & name() const
Definition: measured-force-base.cpp:26
tsid::contacts::Measured3Dforce::m_J
Matrix3x m_J
Definition: measured-3d-force.hpp:63
demo_quadruped.contacts
int contacts
Definition: demo_quadruped.py:98
tsid::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
tsid::contacts::Measured3Dforce::Measured3Dforce
Measured3Dforce(const std::string &name, RobotWrapper &robot, const std::string &frameName)
Definition: measured-3d-force.cpp:31
measured-force-base.hpp
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
tsid::contacts::Measured3Dforce::Data
pinocchio::Data Data
Definition: measured-3d-force.hpp:34
tsid::robots::RobotWrapper
Wrapper for a robot based on pinocchio.
Definition: robots/robot-wrapper.hpp:37
tsid::contacts::Measured3Dforce::m_frame_name
std::string m_frame_name
Definition: measured-3d-force.hpp:60
tsid::contacts::Measured3Dforce::m_local_frame
bool m_local_frame
Definition: measured-3d-force.hpp:66
test_Contact.frameName
string frameName
Definition: test_Contact.py:29
tsid::contacts::Measured3Dforce::RobotWrapper
robots::RobotWrapper RobotWrapper
Definition: measured-3d-force.hpp:33
tsid::math::Vector3
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition: math/fwd.hpp:40


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:16