Template Function pinocchio::buildReducedModel(const ModelTpl<Scalar, Options, JointCollectionTpl>&, const std::vector<JointIndex>&, const Eigen::MatrixBase<ConfigVectorType>&)
Defined in File model.hpp
Function Documentation
-
template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl, typename ConfigVectorType>
ModelTpl<Scalar, Options, JointCollectionTpl> pinocchio::buildReducedModel(const ModelTpl<Scalar, Options, JointCollectionTpl> &model, const std::vector<JointIndex> &list_of_joints_to_lock, const Eigen::MatrixBase<ConfigVectorType> &reference_configuration) Build a reduced model from a given input model and a list of joint to lock.
Remark
All the joints that have been set to be fixed in the new reduced_model now appear in the kinematic tree as a Frame as FIXED_JOINT.
- Parameters:
model – [in] the input model to reduce.
list_of_joints_to_lock – [in] list of joints to lock in the input model.
reference_configuration – [in] reference configuration.
- Returns:
A reduce model of the input model.