Template Function pinocchio::jointBodyRegressor
Defined in File regressor.hxx
Function Documentation
-
template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl>
inline DataTpl<Scalar, Options, JointCollectionTpl>::BodyRegressorType &pinocchio::jointBodyRegressor(const ModelTpl<Scalar, Options, JointCollectionTpl> &model, DataTpl<Scalar, Options, JointCollectionTpl> &data, JointIndex joint_id) Computes the regressor for the dynamic parameters of a rigid body attached to a given joint, puts the result in data.bodyRegressor and returns it.
This algorithm assumes RNEA has been run to compute the acceleration and gravitational effects.
The result is such that
where is the net force acting on the body, including gravity- Parameters:
model – [in] The model structure of the rigid body system.
data – [in] The data structure of the rigid body system.
joint_id – [in] The id of the joint.
- Returns:
The regressor of the body.