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(const Model & model,
13  Data & data,
14  const Eigen::VectorXd & q,
15  const Eigen::VectorXd & v)
16  {
17  data.M.fill(0);
19  data.M.triangularView<Eigen::StrictlyLower>()
20  = data.M.transpose().triangularView<Eigen::StrictlyLower>();
21  }
22 
23  void exposeCAT()
24  {
25  bp::def("computeAllTerms",computeAllTerms_proxy,
26  bp::args("model","data","q","v"),
27  "Compute all the terms M, non linear effects, center of mass quantities, centroidal quantities and Jacobians in"
28  "in the same loop and store the results in data.\n"
29  "This algorithm is equivalent to calling:\n"
30  "\t- forwardKinematics\n"
31  "\t- crba\n"
32  "\t- nonLinearEffects\n"
33  "\t- computeJointJacobians\n"
34  "\t- centerOfMass\n"
35  "\t- jacobianCenterOfMass\n"
36  "\t- ccrba\n"
37  "\t- computeKineticEnergy\n"
38  "\t- computePotentialEnergy\n"
39  "\t- computeGeneralizedGravity\n"
40  "Parameters:\n"
41  "\tmodel: model of the kinematic tree\n"
42  "\tdata: data related to the model\n"
43  "\tq: the joint configuration vector (size model.nq)\n"
44  "\tv: the joint velocity vector (size model.nv)\n"
45  );
46  }
47  } // namespace python
48 } // namespace pinocchio
pinocchio::python::VectorXd
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > VectorXd
Definition: conversions.cpp:16
pinocchio::DataTpl
Definition: multibody/data.hpp:29
compute-all-terms.hpp
setup.data
data
Definition: cmake/cython/setup.in.py:48
algorithms.hpp
python
pinocchio::python::v
const Vector3Like & v
Definition: bindings/python/spatial/explog.hpp:44
pinocchio::python::computeAllTerms_proxy
static void computeAllTerms_proxy(const Model &model, Data &data, const Eigen::VectorXd &q, const Eigen::VectorXd &v)
Definition: expose-cat.cpp:12
pinocchio::q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
Definition: joint-configuration.hpp:747
pinocchio::ModelTpl
Definition: multibody/fwd.hpp:23
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:23
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:746
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:28


pinocchio
Author(s):
autogenerated on Tue Feb 13 2024 03:43:58