tsid 1.9.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
Loading...
Searching...
No Matches
measured-3d-force.hpp
Go to the documentation of this file.
1//
2// Copyright (c) 2025 CNRS INRIA LORIA
3//
4
5#ifndef __invdyn_measured_3d_force_hpp__
6#define __invdyn_measured_3d_force_hpp__
7
8#include <pinocchio/multibody/data.hpp>
9
11
12namespace tsid {
13namespace contacts {
15 public:
16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
17
21 typedef pinocchio::Data Data;
22 typedef pinocchio::Data::Matrix3x Matrix3x;
23
24 Measured3Dforce(const std::string& name, RobotWrapper& robot,
25 const std::string& frameName);
26
27 const Vector& computeJointTorques(Data& data) override;
28
33 void setMeasuredContactForce(const Vector3& fext);
34
35 const Vector3& getMeasuredContactForce() const;
36
44 void useLocalFrame(bool local_frame);
45
46 protected:
47 std::string m_frame_name;
54};
55} // namespace contacts
56} // namespace tsid
57
58#endif // ifndef __invdyn_measured_3d_force_hpp__
bool m_local_frame
Definition measured-3d-force.hpp:53
std::string m_frame_name
Definition measured-3d-force.hpp:47
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:64
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
Definition measured-3d-force.hpp:18
pinocchio::Data::Matrix3x Matrix3x
Definition measured-3d-force.hpp:22
Index m_frame_id
Definition measured-3d-force.hpp:48
Matrix3x m_J_rotated
Definition measured-3d-force.hpp:51
const Vector & computeJointTorques(Data &data) override
Definition measured-3d-force.cpp:32
Vector3 m_fext
Definition measured-3d-force.hpp:49
pinocchio::Data Data
Definition measured-3d-force.hpp:21
Vector m_computedTorques
Definition measured-3d-force.hpp:52
void setMeasuredContactForce(const Vector3 &fext)
Definition measured-3d-force.cpp:56
math::Vector3 Vector3
Definition measured-3d-force.hpp:19
robots::RobotWrapper RobotWrapper
Definition measured-3d-force.hpp:20
Measured3Dforce(const std::string &name, RobotWrapper &robot, const std::string &frameName)
Definition measured-3d-force.cpp:18
const Vector3 & getMeasuredContactForce() const
Definition measured-3d-force.cpp:60
Matrix3x m_J
Definition measured-3d-force.hpp:50
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
Definition measured-force-base.hpp:19
MeasuredForceBase(const std::string &name, RobotWrapper &robot)
Definition measured-force-base.cpp:9
const std::string & name() const
Definition measured-force-base.cpp:13
Wrapper for a robot based on pinocchio.
Definition robot-wrapper.hpp:37
Definition contact-6d.hpp:15
std::size_t Index
Definition fwd.hpp:40
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition fwd.hpp:27
Definition constraint-bound.hpp:25