6 #include "pinocchio/algorithm/centroidal.hpp" 15 using namespace Eigen;
17 bp::def(
"computeCentroidalMomentum",
18 &computeCentroidalMomentum<double,0,JointCollectionDefaultTpl>,
19 bp::args(
"model",
"data"),
20 "Computes the Centroidal momentum, a.k.a. the total momentum of the system expressed around the center of mass.",
21 bp::return_value_policy<bp::return_by_value>());
23 bp::def(
"computeCentroidalMomentum",
24 &computeCentroidalMomentum<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd>,
25 bp::args(
"model",
"data",
"q",
"v"),
26 "Computes the Centroidal momentum, a.k.a. the total momentum of the system expressed around the center of mass.",
27 bp::return_value_policy<bp::return_by_value>());
29 bp::def(
"computeCentroidalMomentumTimeVariation",
30 &computeCentroidalMomentumTimeVariation<double,0,JointCollectionDefaultTpl>,
31 bp::args(
"model",
"data"),
32 "Computes the Centroidal momentum and its time derivatives, a.k.a. the total momentum of the system and its time derivative expressed around the center of mass.",
33 bp::return_value_policy<bp::return_by_value>());
35 bp::def(
"computeCentroidalMomentumTimeVariation",
36 &computeCentroidalMomentumTimeVariation<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd,VectorXd>,
37 bp::args(
"model",
"data",
"q",
"v",
"a"),
38 "Computes the Centroidal momentum and its time derivatives, a.k.a. the total momentum of the system and its time derivative expressed around the center of mass.",
39 bp::return_value_policy<bp::return_by_value>());
42 &ccrba<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd>,
43 bp::args(
"model",
"data",
"q",
"v"),
44 "Computes the centroidal mapping, the centroidal momentum and the Centroidal Composite Rigid Body Inertia, puts the result in Data and returns the centroidal mapping." 45 "For the same price, it also computes the total joint jacobians (data.J).",
46 bp::return_value_policy<bp::return_by_value>());
48 bp::def(
"computeCentroidalMap",
49 &computeCentroidalMap<double,0,JointCollectionDefaultTpl,VectorXd>,
50 bp::args(
"model",
"data",
"q"),
51 "Computes the centroidal mapping, puts the result in Data.Ag and returns the centroidal mapping.\n" 52 "For the same price, it also computes the total joint jacobians (data.J).",
53 bp::return_value_policy<bp::return_by_value>());
56 dccrba<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd>,
57 bp::args(
"model",
"data",
"q",
"v"),
58 "Computes the time derivative of the centroidal momentum matrix Ag in terms of q and v.\n" 59 "For the same price, it also computes the centroidal momentum matrix (data.Ag), the total joint jacobians (data.J) " 60 "and the related joint jacobians time derivative (data.dJ)",
61 bp::return_value_policy<bp::return_by_value>());
63 bp::def(
"computeCentroidalMapTimeVariation",
64 computeCentroidalMapTimeVariation<double,0,JointCollectionDefaultTpl,VectorXd,VectorXd>,
65 bp::args(
"model",
"data",
"q",
"v"),
66 "Computes the time derivative of the centroidal momentum matrix Ag, puts the result in Data.Ag and returns the centroidal mapping.\n" 67 "For the same price, it also computes the centroidal momentum matrix (data.Ag), the total joint jacobians (data.J) " 68 "and the related joint jacobians time derivative (data.dJ)",
69 bp::return_value_policy<bp::return_by_value>());
Main pinocchio namespace.