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


pinocchio
Author(s):
autogenerated on Thu Apr 10 2025 02:42:18