13#include <boost/fusion/container/vector.hpp> 15#include "pinocchio/multibody.hpp" 16#include "pinocchio/multibody/joint.hpp" 17#include "pinocchio/multibody/visitor.hpp" 19#include "pinocchio/algorithm/check.hpp" 20#include "pinocchio/algorithm/kinematics.hpp" 37 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
39 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
40 DataTpl<Scalar, Options, JointCollectionTpl> & data);
60 template<
typename,
int>
class JointCollectionTpl,
61 typename ConfigVectorType,
62 typename TangentVectorType>
64 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
65 DataTpl<Scalar, Options, JointCollectionTpl> & data,
66 const Eigen::MatrixBase<ConfigVectorType> & q,
67 const Eigen::MatrixBase<TangentVectorType> & v);
88 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
90 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
91 DataTpl<Scalar, Options, JointCollectionTpl> & data);
115 template<
typename,
int>
class JointCollectionTpl,
116 typename ConfigVectorType>
118 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
119 DataTpl<Scalar, Options, JointCollectionTpl> & data,
120 const Eigen::MatrixBase<ConfigVectorType> & q);
133 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
135 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
136 DataTpl<Scalar, Options, JointCollectionTpl> & data);
157 template<
typename,
int>
class JointCollectionTpl,
158 typename ConfigVectorType,
159 typename TangentVectorType>
161 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
162 DataTpl<Scalar, Options, JointCollectionTpl> & data,
163 const Eigen::MatrixBase<ConfigVectorType> & q,
164 const Eigen::MatrixBase<TangentVectorType> & v);
169#include "pinocchio/src/algorithm/energy.hxx" Main pinocchio namespace.
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....
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.