expose-centroidal.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2020 CNRS INRIA
3 //
4 
6 #include "pinocchio/algorithm/centroidal.hpp"
7 
8 namespace pinocchio
9 {
10  namespace python
11  {
12 
14  {
15  using namespace Eigen;
16 
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>());
22 
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>());
28 
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>());
34 
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>());
40 
41  bp::def("ccrba",
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>());
47 
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>());
54 
55  bp::def("dccrba",
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>());
62 
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>());
70 
71  }
72 
73  } // namespace python
74 } // namespace pinocchio
Main pinocchio namespace.
Definition: timings.cpp:28


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:29