expose-centroidal.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2020 CNRS INRIA
3 //
4 
7 
8 namespace pinocchio
9 {
10  namespace python
11  {
12 
14  {
15  typedef context::Scalar Scalar;
17  enum
18  {
20  };
21 
22  bp::def(
23  "computeCentroidalMomentum",
24  &computeCentroidalMomentum<Scalar, Options, JointCollectionDefaultTpl>,
25  bp::args("model", "data"),
26  "Computes the Centroidal momentum, a.k.a. the total momentum of the system expressed "
27  "around the center of mass.",
28  bp::return_value_policy<bp::return_by_value>());
29 
30  bp::def(
31  "computeCentroidalMomentum",
32  &computeCentroidalMomentum<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
33  bp::args("model", "data", "q", "v"),
34  "Computes the Centroidal momentum, a.k.a. the total momentum of the system expressed "
35  "around the center of mass.",
36  bp::return_value_policy<bp::return_by_value>());
37 
38  bp::def(
39  "computeCentroidalMomentumTimeVariation",
40  &computeCentroidalMomentumTimeVariation<Scalar, Options, JointCollectionDefaultTpl>,
41  bp::args("model", "data"),
42  "Computes the Centroidal momentum and its time derivatives, a.k.a. the total "
43  "momentum of the system and its time derivative expressed around the center of mass.",
44  bp::return_value_policy<bp::return_by_value>());
45 
46  bp::def(
47  "computeCentroidalMomentumTimeVariation",
50  bp::args("model", "data", "q", "v", "a"),
51  "Computes the Centroidal momentum and its time derivatives, a.k.a. the total "
52  "momentum of the system and its time derivative expressed around the center of mass.",
53  bp::return_value_policy<bp::return_by_value>());
54 
55  bp::def(
56  "ccrba", &ccrba<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
57  bp::args("model", "data", "q", "v"),
58  "Computes the centroidal mapping, the centroidal momentum and the Centroidal Composite "
59  "Rigid Body Inertia, puts the result in Data and returns the centroidal mapping."
60  "For the same price, it also computes the total joint jacobians (data.J).",
61  bp::return_value_policy<bp::return_by_value>());
62 
63  bp::def(
64  "computeCentroidalMap",
65  &computeCentroidalMap<Scalar, Options, JointCollectionDefaultTpl, VectorXs>,
66  bp::args("model", "data", "q"),
67  "Computes the centroidal mapping, puts the result in Data.Ag and returns the "
68  "centroidal mapping.\n"
69  "For the same price, it also computes the total joint jacobians (data.J).",
70  bp::return_value_policy<bp::return_by_value>());
71 
72  bp::def(
73  "dccrba", dccrba<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
74  bp::args("model", "data", "q", "v"),
75  "Computes the time derivative of the centroidal momentum matrix Ag in terms of q and v.\n"
76  "For the same price, it also computes the centroidal momentum matrix (data.Ag), the total "
77  "joint jacobians (data.J) "
78  "and the related joint jacobians time derivative (data.dJ)",
79  bp::return_value_policy<bp::return_by_value>());
80 
81  bp::def(
82  "computeCentroidalMapTimeVariation",
85  bp::args("model", "data", "q", "v"),
86  "Computes the time derivative of the centroidal momentum matrix Ag, puts the result "
87  "in Data.Ag and returns the centroidal mapping.\n"
88  "For the same price, it also computes the centroidal momentum matrix (data.Ag), the "
89  "total joint jacobians (data.J) "
90  "and the related joint jacobians time derivative (data.dJ)",
91  bp::return_value_policy<bp::return_by_value>());
92  }
93 
94  } // namespace python
95 } // namespace pinocchio
pinocchio::python::Scalar
context::Scalar Scalar
Definition: admm-solver.cpp:29
pinocchio::python::VectorXs
context::VectorXs VectorXs
Definition: admm-solver.cpp:30
pinocchio::computeCentroidalMapTimeVariation
const DataTpl< Scalar, Options, JointCollectionTpl >::Matrix6x & computeCentroidalMapTimeVariation(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType > &v)
Computes the Centroidal Momentum Matrix time derivative.
pinocchio::python::Options
@ Options
Definition: expose-contact-inverse-dynamics.cpp:22
pinocchio::context::VectorXs
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Definition: context/generic.hpp:47
algorithms.hpp
python
pinocchio::computeCentroidalMomentumTimeVariation
const DataTpl< Scalar, Options, JointCollectionTpl >::Force & computeCentroidalMomentumTimeVariation(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data)
Computes the Centroidal momemtum and its time derivatives, a.k.a. the total momenta of the system and...
pinocchio::python::exposeCentroidal
void exposeCentroidal()
Definition: expose-centroidal.cpp:13
pinocchio::python::context::Options
@ Options
Definition: bindings/python/context/generic.hpp:40
centroidal.hpp
pinocchio::JointCollectionDefaultTpl
Definition: context/generic.hpp:15
pinocchio::python::context::Scalar
PINOCCHIO_PYTHON_SCALAR_TYPE Scalar
Definition: bindings/python/context/generic.hpp:37
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09