18 #ifndef __invdyn_robot_wrapper_hpp__ 19 #define __invdyn_robot_wrapper_hpp__ 21 #include "tsid/deprecated.hh" 25 #include <pinocchio/multibody/model.hpp> 26 #include <pinocchio/multibody/data.hpp> 27 #include <pinocchio/spatial/fwd.hpp> 39 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
62 const std::vector<std::string>& package_dirs,
63 bool verbose =
false);
66 const std::vector<std::string>& package_dirs,
68 bool verbose =
false);
70 TSID_DEPRECATED
RobotWrapper(
const Model&
m,
bool verbose =
false);
76 virtual int nq()
const;
78 virtual int nv()
const;
79 virtual int na()
const;
87 const Model&
model()
const;
101 const Vector3&
com(
const Data& data)
const;
103 const Vector3&
com_vel(
const Data& data)
const;
105 const Vector3&
com_acc(
const Data& data)
const;
107 const Matrix3x&
Jcom(
const Data& data)
const;
109 const Matrix&
mass(
const Data& data);
129 SE3& framePosition)
const;
137 Motion& frameVelocity)
const;
146 Motion& frameAcceleration)
const;
155 Motion& frameAcceleration)
const;
194 #endif // ifndef __invdyn_robot_wrapper_hpp__
Eigen::Ref< Vector > RefVector
const Matrix3x & Jcom(const Data &data) const
enum tsid::robots::RobotWrapper::e_RootJointType RootJointType
Vector3 angularMomentumTimeVariation(const Data &data) const
const Motion & velocity(const Data &data, const Model::JointIndex index) const
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
Matrix m_M
diagonal part of inertia matrix due to rotor inertias
const Data::Matrix6x & momentumJacobian(const Data &data) const
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
virtual int nq_actuated() const
const Model & model() const
Accessor to model.
void frameJacobianWorld(Data &data, const Model::FrameIndex index, Data::Matrix6x &J) const
const Motion & acceleration(const Data &data, const Model::JointIndex index) const
Motion frameClassicAcceleration(const Data &data, const Model::FrameIndex index) const
Motion frameVelocityWorldOriented(const Data &data, const Model::FrameIndex index) const
RobotWrapper(const std::string &filename, const std::vector< std::string > &package_dirs, bool verbose=false)
Model m_model
Robot model.
Motion frameAccelerationWorldOriented(const Data &data, const Model::FrameIndex index) const
math::RefVector RefVector
virtual bool is_fixed_base() const
const Vector3 & com_acc(const Data &data) const
Motion frameAcceleration(const Data &data, const Model::FrameIndex index) const
pinocchio::FrameIndex FrameIndex
Eigen::Matrix< Scalar, 3, 1 > Vector3
void jacobianLocal(const Data &data, const Model::JointIndex index, Data::Matrix6x &J) const
SE3 framePosition(const Data &data, const Model::FrameIndex index) const
std::string m_model_filename
pinocchio::JointIndex JointIndex
const Eigen::Ref< const Vector > ConstRefVector
const Matrix & mass(const Data &data)
void com(const Data &data, RefVector com_pos, RefVector com_vel, RefVector com_acc) const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Scalar Scalar
const Vector3 & com_vel(const Data &data) const
const Vector & nonLinearEffects(const Data &data) const
void frameJacobianLocal(Data &data, const Model::FrameIndex index, Data::Matrix6x &J) const
Eigen::Matrix< Scalar, 3, Eigen::Dynamic > Matrix3x
Wrapper for a robot based on pinocchio.
const Vector & gear_ratios() const
const SE3 & position(const Data &data, const Model::JointIndex index) const
Eigen::Matrix< Scalar, 6, 1 > Vector6
void computeAllTerms(Data &data, const Vector &q, const Vector &v) const
void setGravity(const Motion &gravity)
JointCollectionDefault::JointModelVariant JointModelVariant
Motion frameVelocity(const Data &data, const Model::FrameIndex index) const
void jacobianWorld(const Data &data, const Model::JointIndex index, Data::Matrix6x &J) const
const Vector & rotor_inertias() const
Eigen::Matrix< Scalar, 6, Eigen::Dynamic, Options > Matrix6x
math::ConstRefVector ConstRefVector
Motion frameClassicAccelerationWorldOriented(const Data &data, const Model::FrameIndex index) const