expose-energy.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2020 CNRS INRIA
3 //
4 
7 
9 
10 namespace pinocchio
11 {
12  namespace python
13  {
14 
15  void exposeEnergy()
16  {
17  typedef context::Scalar Scalar;
19  enum
20  {
22  };
23 
24  bp::def(
25  "computeKineticEnergy",
26  &computeKineticEnergy<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
27  bp::args("model", "data", "q", "v"),
28  "Computes the forward kinematics and the kinematic energy of the system for the "
29  "given joint configuration and velocity given as input. The result is accessible "
30  "through data.kinetic_energy.",
32 
33  bp::def(
34  "computeKineticEnergy", &computeKineticEnergy<Scalar, Options, JointCollectionDefaultTpl>,
35  bp::args("model", "data"),
36  "Computes the kinematic energy of the system for the "
37  "given joint placement and velocity stored in data. The result is accessible through "
38  "data.kinetic_energy.",
40 
41  bp::def(
42  "computePotentialEnergy",
43  &computePotentialEnergy<Scalar, Options, JointCollectionDefaultTpl, VectorXs>,
44  bp::args("model", "data", "q"),
45  "Computes the potential energy of the system for the "
46  "given the joint configuration given as input. The result is accessible through "
47  "data.potential_energy.",
49 
50  bp::def(
51  "computePotentialEnergy",
52  &computePotentialEnergy<Scalar, Options, JointCollectionDefaultTpl>,
53  bp::args("model", "data"),
54  "Computes the potential energy of the system for the "
55  "given joint placement stored in data. The result is accessible through "
56  "data.potential_energy.",
58 
59  bp::def(
60  "computeMechanicalEnergy",
61  &computeMechanicalEnergy<Scalar, Options, JointCollectionDefaultTpl, VectorXs, VectorXs>,
62  bp::args("model", "data", "q", "v"),
63  "Computes the forward kinematics and the kinematic energy of the system for the "
64  "given joint configuration and velocity given as input. The result is accessible through "
65  "data.mechanical_energy.\n"
66  "A byproduct of this function is the computation of both data.kinetic_energy and "
67  "data.potential_energy too.",
69 
70  bp::def(
71  "computeMechanicalEnergy",
72  &computeMechanicalEnergy<Scalar, Options, JointCollectionDefaultTpl>,
73  bp::args("model", "data"),
74  "Computes the mechanical energy of the system for the "
75  "given joint placement and velocity stored in data. The result is accessible through "
76  "data.mechanical_energy.\n"
77  "A byproduct of this function is the computation of both data.kinetic_energy and "
78  "data.potential_energy too.",
80  }
81 
82  } // namespace python
83 } // 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::python::exposeEnergy
void exposeEnergy()
Definition: expose-energy.cpp:15
pinocchio::python::context::Options
@ Options
Definition: bindings/python/context/generic.hpp:40
algorithms.hpp
python
pinocchio::python::mimic_not_supported_function
Definition: model-checker.hpp:22
energy.hpp
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 Wed Apr 16 2025 02:41:46