5 #ifndef __pinocchio_serialization_joints_model_hpp__ 6 #define __pinocchio_serialization_joints_model_hpp__ 10 template<
typename Scalar,
int Options,
template<
typename S,
int O>
class JointCollectionTpl>
13 template<
typename Archive>
14 static void run(Archive & ar,
28 ar &
make_nvp(
"jointPlacements",joint.jointPlacements);
42 template <
class Archive,
typename Derived>
47 split_free(ar, joint, version);
51 template<
class Archive,
typename Derived>
57 const int i_q = joint.
idx_q(), i_v = joint.
idx_v();
64 template<
class Archive,
typename Derived>
79 template <
class Archive,
typename Scalar,
int Options,
int axis>
89 template <
class Archive,
typename Scalar,
int Options,
int axis>
99 template <
class Archive,
typename Scalar,
int Options,
int axis>
109 template <
class Archive,
typename Scalar,
int Options>
119 template <
class Archive,
typename Scalar,
int Options>
129 template <
class Archive,
typename Scalar,
int Options>
139 template <
class Archive,
typename Scalar,
int Options>
149 template <
class Archive,
typename Scalar,
int Options>
159 template <
class Archive,
typename Scalar,
int Options>
170 template <
class Archive,
typename Scalar,
int Options>
181 template <
class Archive,
typename Scalar,
int Options>
192 template <
class Archive,
typename Scalar,
int Options,
template<
typename S,
int O>
class JointCollectionTpl>
204 template <
class Archive,
typename Scalar,
int Options,
template<
typename S,
int O>
class JointCollectionTpl>
214 ar &
make_nvp(
"base_variant",base_object<JointModelVariant>(joint));
217 template <
class Archive,
typename Jo
intModel>
234 #endif // ifndef __pinocchio_serialization_joints_model_hpp__
static void run(Archive &ar, JointModelCompositeTpl< Scalar, Options, JointCollectionTpl > &joint)
void save(Archive &ar, const pinocchio::JointModelBase< Derived > &joint, const unsigned int)
std::vector< int > m_nvs
Dimension of the segment in the tangent vector.
int m_nq
Dimensions of the config and tangent space of the composite joint.
void setIndexes(JointIndex id, int q, int v)
std::vector< int > m_idx_q
Keep information of both the dimension and the position of the joints in the composition.
Vector3 axis
3d main axis of the joint.
const Scalar & offset() const
JointModelVector joints
Vector of joints contained in the joint composite.
void load(Archive &ar, pinocchio::JointModelBase< Derived > &joint, const unsigned int)
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
std::vector< int > m_nqs
Dimension of the segment in the config vector.
Vector3 axis
3d main axis of the joint.
int njoints
Number of joints contained in the JointModelComposite.
Main pinocchio namespace.
Vector3 axis
3d main axis of the joint.
JointCollectionDefault::JointModelVariant JointModelVariant
const JointModel & jmodel() const
std::vector< int > m_idx_v
Index in the tangent vector.
static void run(Archive &ar, T &object)
const Scalar & scaling() const
void serialize(Archive &ar, pinocchio::JointModelMimic< JointModel > &joint, const unsigned int version)