6 #include "pinocchio/algorithm/aba.hpp" 24 using namespace Eigen;
27 &aba<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd,VectorXd>,
29 "Joint configuration q (size Model::nq)",
30 "Joint velocity v (size Model::nv)",
31 "Joint torque tau (size Model::nv)"),
32 "Compute ABA, store the result in Data::ddq and return it.",
33 bp::return_value_policy<bp::return_by_value>());
36 &aba<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd,VectorXd,Force>,
38 "Joint configuration q (size Model::nq)",
39 "Joint velocity v (size Model::nv)",
40 "Joint torque tau (size Model::nv)",
41 "Vector of external forces expressed in the local frame of each joint (size Model::njoints)"),
42 "Compute ABA with external forces, store the result in Data::ddq and return it.",
43 bp::return_value_policy<bp::return_by_value>());
45 bp::def(
"computeMinverse",
48 "Joint configuration q (size Model::nq)"),
49 "Computes the inverse of the joint space inertia matrix using a variant of the Articulated Body algorithm.\n" 50 "The result is stored in data.Minv.",
51 bp::return_value_policy<bp::return_by_value>());
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor|Options > RowMatrixXs
const DataTpl< Scalar, Options, JointCollectionTpl >::RowMatrixXs & computeMinverse(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q)
Computes the inverse of the joint space inertia matrix using Articulated Body formulation.
const Data::RowMatrixXs & computeMinverse_proxy(const Model &model, Data &data, const Eigen::VectorXd &q)
void make_symmetric(Eigen::MatrixBase< Matrix > &mat)
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
RowMatrixXs Minv
The inverse of the joint space inertia matrix (a square matrix of dim model.nv).
Main pinocchio namespace.
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > VectorXd
JointCollectionTpl & model