expose-crba.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2021 CNRS
3 //
4 
9 
10 namespace pinocchio
11 {
12  namespace python
13  {
15  const context::Model & model,
17  const context::VectorXs & q,
18  const Convention convention)
19  {
20  data.M.fill(context::Scalar(0));
21  crba(model, data, q, convention);
23  return data.M;
24  }
25 
26  void exposeCRBA()
27  {
28  bp::def(
29  "crba", crba_proxy,
30  (bp::arg("model"), bp::arg("data"), bp::arg("q"),
31  bp::arg("convention") = pinocchio::Convention::LOCAL),
32  "Computes CRBA, store the result in Data and return it.\n"
33  "Parameters:\n"
34  "\tmodel: model of the kinematic tree\n"
35  "\tdata: data related to the model\n"
36  "\tq: the joint configuration vector (size model.nq)\n"
37  "\t convention: Convention to use");
38  }
39 
40  } // namespace python
41 } // namespace pinocchio
pinocchio::DataTpl
Definition: context/generic.hpp:25
setup.data
data
Definition: cmake/cython/setup.in.py:48
pinocchio::crba
const DataTpl< Scalar, Options, JointCollectionTpl >::MatrixXs & crba(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Convention convention=Convention::LOCAL)
Computes the upper triangular part of the joint space inertia matrix M by using the Composite Rigid B...
pinocchio::python::exposeCRBA
void exposeCRBA()
Definition: expose-crba.cpp:26
pinocchio::python::make_symmetric
void make_symmetric(const Eigen::MatrixBase< Matrix > &mat, const int mode=Eigen::Upper)
Definition: bindings/python/utils/eigen.hpp:24
pinocchio::context::VectorXs
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Definition: context/generic.hpp:47
algorithms.hpp
pinocchio::context::MatrixXs
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Options > MatrixXs
Definition: context/generic.hpp:49
python
pinocchio::Convention
Convention
List of convention to call algorithms.
Definition: multibody/fwd.hpp:73
pinocchio::python::crba_proxy
static context::MatrixXs crba_proxy(const context::Model &model, context::Data &data, const context::VectorXs &q, const Convention convention)
Definition: expose-crba.cpp:14
pinocchio::q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
Definition: joint-configuration.hpp:1083
pinocchio::Convention::LOCAL
@ LOCAL
pinocchio::ModelTpl
Definition: context/generic.hpp:20
crba.hpp
pinocchio::python::context::Scalar
PINOCCHIO_PYTHON_SCALAR_TYPE Scalar
Definition: bindings/python/context/generic.hpp:37
eigen.hpp
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
namespace.hpp


pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:43