Template Function pinocchio::buildReducedModel(const ModelTpl<Scalar, Options, JointCollectionTpl>&, const GeometryModel&, const std::vector<JointIndex>&, const Eigen::MatrixBase<ConfigVectorType>&, ModelTpl<Scalar, Options, JointCollectionTpl>&, GeometryModel&)
Defined in File model.hxx
Function Documentation
-
template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl, typename ConfigVectorType>
void pinocchio::buildReducedModel(const ModelTpl<Scalar, Options, JointCollectionTpl> &model, const GeometryModel &geom_model, const std::vector<JointIndex> &list_of_joints_to_lock, const Eigen::MatrixBase<ConfigVectorType> &reference_configuration, ModelTpl<Scalar, Options, JointCollectionTpl> &reduced_model, GeometryModel &reduced_geom_model) Build a reduced model and a rededuced geometry model from a given input model, a given input geometry 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.
geom_model – [in] the input geometry model to reduce.
list_of_joints_to_lock – [in] list of joints to lock in the input model.
reference_configuration – [in] reference configuration.
reduced_model – [out] the reduced model.
reduced_geom_model – [out] the reduced geometry model.