5 #ifndef __pinocchio_algorithm_model_hpp__ 6 #define __pinocchio_algorithm_model_hpp__ 8 #include "pinocchio/multibody/model.hpp" 9 #include "pinocchio/multibody/geometry.hpp" 23 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
25 appendModel(
const ModelTpl<Scalar,Options,JointCollectionTpl> & modelA,
26 const ModelTpl<Scalar,Options,JointCollectionTpl> & modelB,
27 const FrameIndex frameInModelA,
28 const SE3Tpl<Scalar,Options> & aMb,
29 ModelTpl<Scalar,Options,JointCollectionTpl> & model);
42 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
43 ModelTpl<Scalar,Options,JointCollectionTpl>
46 const FrameIndex frameInModelA,
64 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
70 const FrameIndex frameInModelA,
87 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType>
90 std::vector<JointIndex> list_of_joints_to_lock,
91 const Eigen::MatrixBase<ConfigVectorType> & reference_configuration,
107 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType>
110 const std::vector<JointIndex> & list_of_joints_to_lock,
111 const Eigen::MatrixBase<ConfigVectorType> & reference_configuration)
116 buildReducedModel(model,list_of_joints_to_lock,reference_configuration,reduced_model);
118 return reduced_model;
135 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl,
typename ConfigVectorType>
139 const std::vector<JointIndex> & list_of_joints_to_lock,
140 const Eigen::MatrixBase<ConfigVectorType> & reference_configuration,
146 #include "pinocchio/algorithm/model.hxx" 148 #endif // ifndef __pinocchio_algorithm_model_hpp__
void appendModel(const ModelTpl< Scalar, Options, JointCollectionTpl > &modelA, const ModelTpl< Scalar, Options, JointCollectionTpl > &modelB, const FrameIndex frameInModelA, const SE3Tpl< Scalar, Options > &aMb, ModelTpl< Scalar, Options, JointCollectionTpl > &model)
Append a child model into a parent model, after a specific frame given by its index.
Main pinocchio namespace.
void buildReducedModel(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, std::vector< JointIndex > list_of_joints_to_lock, const Eigen::MatrixBase< ConfigVectorType > &reference_configuration, ModelTpl< Scalar, Options, JointCollectionTpl > &reduced_model)
Build a reduced model from a given input model and a list of joint to lock.