src/algorithm/energy.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022 INRIA
3 //
4 
6 
7 namespace pinocchio
8 {
9 
10  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
11  computeKineticEnergy<context::Scalar, context::Options, JointCollectionDefaultTpl>(
12  const context::Model &, context::Data &);
13  namespace impl
14  {
15  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
19  JointCollectionDefaultTpl,
20  Eigen::Ref<const context::VectorXs>,
21  Eigen::Ref<const context::VectorXs>>(
22  const context::Model &,
23  context::Data &,
24  const Eigen::MatrixBase<Eigen::Ref<const context::VectorXs>> &,
25  const Eigen::MatrixBase<Eigen::Ref<const context::VectorXs>> &);
26  } // namespace impl
27  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
28  computePotentialEnergy<context::Scalar, context::Options, JointCollectionDefaultTpl>(
29  const context::Model &, context::Data &);
30  namespace impl
31  {
32  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
36  JointCollectionDefaultTpl,
37  Eigen::Ref<const context::VectorXs>>(
38  const context::Model &,
39  context::Data &,
40  const Eigen::MatrixBase<Eigen::Ref<const context::VectorXs>> &);
41  } // namespace impl
42  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
43  computeMechanicalEnergy<context::Scalar, context::Options, JointCollectionDefaultTpl>(
44  const context::Model &, context::Data &);
45  namespace impl
46  {
47  template PINOCCHIO_EXPLICIT_INSTANTIATION_DEFINITION_DLLAPI context::Scalar
51  JointCollectionDefaultTpl,
52  Eigen::Ref<const context::VectorXs>,
53  Eigen::Ref<const context::VectorXs>>(
54  const context::Model &,
55  context::Data &,
56  const Eigen::MatrixBase<Eigen::Ref<const context::VectorXs>> &,
57  const Eigen::MatrixBase<Eigen::Ref<const context::VectorXs>> &);
58  } // namespace impl
59 } // namespace pinocchio
pinocchio::context::Model
ModelTpl< Scalar, Options > Model
Definition: context/generic.hpp:56
pinocchio::computePotentialEnergy
Scalar computePotentialEnergy(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data)
Computes the potential energy of the system, i.e. the potential energy linked to the gravity field....
pinocchio::computeMechanicalEnergy
Scalar computeMechanicalEnergy(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data)
Computes the mechanical energy of the system stored in data.mechanical_energy. The result is accessib...
pinocchio::context::Options
@ Options
Definition: context/generic.hpp:45
pinocchio::computeKineticEnergy
Scalar computeKineticEnergy(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data)
Computes the kinetic energy of the system. The result is accessible through data.kinetic_energy.
pinocchio::context::Data
DataTpl< Scalar, Options > Data
Definition: context/generic.hpp:57
energy.hpp
pinocchio::context::Scalar
PINOCCHIO_SCALAR_TYPE Scalar
Definition: context/generic.hpp:42
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Tue Jun 25 2024 02:42:37