expose-cat.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2021 CNRS INRIA
3 //
4 
7 
8 namespace pinocchio
9 {
10  namespace python
11  {
12  static void computeAllTerms_proxy(
13  const context::Model & model,
15  const context::VectorXs & q,
16  const context::VectorXs & v)
17  {
18  data.M.fill(context::Scalar(0));
20  data.M.triangularView<Eigen::StrictlyLower>() =
21  data.M.transpose().triangularView<Eigen::StrictlyLower>();
22  }
23 
24  void exposeCAT()
25  {
26  bp::def(
27  "computeAllTerms", computeAllTerms_proxy, bp::args("model", "data", "q", "v"),
28  "Compute all the terms M, non linear effects, center of mass quantities, centroidal "
29  "quantities and Jacobians in"
30  "in the same loop and store the results in data.\n"
31  "This algorithm is equivalent to calling:\n"
32  "\t- forwardKinematics\n"
33  "\t- crba\n"
34  "\t- nonLinearEffects\n"
35  "\t- computeJointJacobians\n"
36  "\t- centerOfMass\n"
37  "\t- jacobianCenterOfMass\n"
38  "\t- ccrba\n"
39  "\t- computeKineticEnergy\n"
40  "\t- computePotentialEnergy\n"
41  "\t- computeGeneralizedGravity\n"
42  "Parameters:\n"
43  "\tmodel: model of the kinematic tree\n"
44  "\tdata: data related to the model\n"
45  "\tq: the joint configuration vector (size model.nq)\n"
46  "\tv: the joint velocity vector (size model.nv)\n");
47  }
48  } // namespace python
49 } // namespace pinocchio
pinocchio::DataTpl
Definition: context/generic.hpp:25
compute-all-terms.hpp
setup.data
data
Definition: cmake/cython/setup.in.py:48
pinocchio::python::computeAllTerms_proxy
static void computeAllTerms_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, const context::VectorXs &v)
Definition: expose-cat.cpp:12
pinocchio::context::VectorXs
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Definition: context/generic.hpp:47
algorithms.hpp
python
pinocchio::python::v
const Vector3Like & v
Definition: bindings/python/spatial/explog.hpp:66
pinocchio::q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
Definition: joint-configuration.hpp:1083
pinocchio::ModelTpl
Definition: context/generic.hpp:20
pinocchio::computeAllTerms
void computeAllTerms(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType > &v)
Computes efficiently all the terms needed for dynamic simulation. It is equivalent to the call at the...
pinocchio::python::exposeCAT
void exposeCAT()
Definition: expose-cat.cpp:24
pinocchio::python::context::Scalar
PINOCCHIO_PYTHON_SCALAR_TYPE Scalar
Definition: bindings/python/context/generic.hpp:37
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:29