17 #ifndef HPP_PINOCCHIO_CENTER_OF_MASS_COMPUTATION_HH 18 # define HPP_PINOCCHIO_CENTER_OF_MASS_COMPUTATION_HH 22 # include <pinocchio/multibody/data.hpp> 47 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
95 const JointRootIndexes_t &
roots ()
const {
return roots_; }
105 JointRootIndexes_t roots_;
109 #endif // HPP_PINOCCHIO_CENTER_OF_MASS_COMPUTATION_HH static const ComJacobian_t & jacobian(const DeviceData &d)
Get Jacobian of center of mass of the sub-tree.
Definition: center-of-mass-computation.hh:92
std::vector< std::size_t > JointRootIndexes_t
Definition: center-of-mass-computation.hh:44
boost::shared_ptr< Device > DevicePtr_t
Definition: fwd.hh:104
static CenterOfMassComputationPtr_t create(const DevicePtr_t &device)
~CenterOfMassComputation()
void add(const JointPtr_t &rootOfSubtree)
static const vector3_t & com(const DeviceData &d)
Get center of mass of the subtree.
Definition: center-of-mass-computation.hh:84
Definition: device-data.hh:41
static const value_type & mass(const DeviceData &d)
Get mass of the sub-tree.
Definition: center-of-mass-computation.hh:88
const ComJacobian_t & jacobian() const
Get Jacobian of center of mass of the sub-tree.
Definition: center-of-mass-computation.hh:79
const value_type & mass() const
Get mass of the sub-tree.
Definition: center-of-mass-computation.hh:77
void compute(const Computation_t &flag=COMPUTE_ALL)
Definition: center-of-mass-computation.hh:65
Eigen::Matrix< value_type, 3, Eigen::Dynamic > ComJacobian_t
Definition: fwd.hh:89
DataPtr_t data_
Definition: device-data.hh:53
Computation_t
Definition: device-data.hh:30
Definition: center-of-mass-computation.hh:41
const JointRootIndexes_t & roots() const
Get const reference to the vector of sub-tree roots.
Definition: center-of-mass-computation.hh:95
double value_type
Definition: fwd.hh:40
Definition: device-data.hh:36
boost::shared_ptr< CenterOfMassComputation > CenterOfMassComputationPtr_t
Definition: fwd.hh:108
CenterOfMassComputation(const DevicePtr_t &device)
const vector3_t & com() const
Get center of mass of the subtree.
Definition: center-of-mass-computation.hh:75
Eigen::Matrix< value_type, 3, 1 > vector3_t
Definition: fwd.hh:86
boost::shared_ptr< Joint > JointPtr_t
Definition: fwd.hh:109