5 #ifndef __pinocchio_algorithm_energy_hpp__
6 #define __pinocchio_algorithm_energy_hpp__
8 #include "pinocchio/multibody/model.hpp"
9 #include "pinocchio/multibody/data.hpp"
10 #include "pinocchio/algorithm/kinematics.hpp"
11 #include "pinocchio/algorithm/check.hpp"
27 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
50 template<
typename,
int>
class JointCollectionTpl,
51 typename ConfigVectorType,
52 typename TangentVectorType>
56 const Eigen::MatrixBase<ConfigVectorType> & q,
57 const Eigen::MatrixBase<TangentVectorType> & v);
78 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
105 template<
typename,
int>
class JointCollectionTpl,
106 typename ConfigVectorType>
110 const Eigen::MatrixBase<ConfigVectorType> & q);
123 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
147 template<
typename,
int>
class JointCollectionTpl,
148 typename ConfigVectorType,
149 typename TangentVectorType>
153 const Eigen::MatrixBase<ConfigVectorType> & q,
154 const Eigen::MatrixBase<TangentVectorType> & v);
158 #include "pinocchio/algorithm/energy.hxx"
160 #if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
161 #include "pinocchio/algorithm/energy.txx"
Main pinocchio namespace.
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.
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...
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....