5#ifndef __pinocchio_algorithm_model_hpp__
6#define __pinocchio_algorithm_model_hpp__
8#include "pinocchio/multibody/model.hpp"
9#include "pinocchio/multibody/geometry.hpp"
27 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
50 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
77 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
107 template<
typename,
int>
class JointCollectionTpl,
108 typename ConfigVectorType>
132 template<
typename,
int>
class JointCollectionTpl,
133 typename ConfigVectorType>
166 template<
typename,
int>
class JointCollectionTpl,
167 typename ConfigVectorType>
195 template<
typename,
int>
class JointCollectionTpl,
197 typename ConfigVectorType>
219 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
224 const Scalar & scaling,
225 const Scalar & offset,
240 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
245 const std::vector<Scalar> & scaling,
246 const std::vector<Scalar> & offset,
260 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
270#include "pinocchio/algorithm/model.hxx"
272#if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
273 #include "pinocchio/algorithm/model.txx"
Main pinocchio namespace.
JointIndex findCommonAncestor(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, JointIndex joint1_id, JointIndex joint2_id, size_t &index_ancestor_in_support1, size_t &index_ancestor_in_support2)
Computes the common ancestor between two joints belonging to the same kinematic tree.
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.
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.
void buildMimicModel(const ModelTpl< Scalar, Options, JointCollectionTpl > &input_model, const std::vector< JointIndex > &index_mimicked, const std::vector< JointIndex > &index_mimicking, const std::vector< Scalar > &scaling, const std::vector< Scalar > &offset, ModelTpl< Scalar, Options, JointCollectionTpl > &output_model)
Transform joints of a model into mimic joints.
void transformJointIntoMimic(const ModelTpl< Scalar, Options, JointCollectionTpl > &input_model, const JointIndex &index_mimicked, const JointIndex &index_mimicking, const Scalar &scaling, const Scalar &offset, ModelTpl< Scalar, Options, JointCollectionTpl > &output_model)
Transform of a joint of the model into a mimic joint. Keep the type of the joint as it was previously...