5 #ifndef __pinocchio_copy_hpp__ 6 #define __pinocchio_copy_hpp__ 8 #include "pinocchio/multibody/model.hpp" 9 #include "pinocchio/multibody/data.hpp" 10 #include "pinocchio/algorithm/check.hpp" 25 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
27 copy(
const ModelTpl<Scalar,Options,JointCollectionTpl> & model,
28 const DataTpl<Scalar,Options,JointCollectionTpl> & origin,
29 DataTpl<Scalar,Options,JointCollectionTpl> & dest,
40 template<
typename Scalar,
int Options,
template<
typename,
int>
class JointCollectionTpl>
48 typedef typename Model::JointIndex JointIndex;
50 for(JointIndex jid=1; jid<(JointIndex)model.
njoints; ++jid)
54 dest.
oMi[jid] = origin.
oMi [jid];
57 dest.
v[jid] = origin.
v [jid];
61 dest.
a[jid] = origin.
a [jid];
63 dest.
f[jid] = origin.
f [jid];
71 #endif // ifndef __pinocchio_copy_hpp__ container::aligned_vector< Motion > a_gf
Vector of joint accelerations due to the gravity field.
container::aligned_vector< Motion > a
Vector of joint accelerations expressed at the centers of the joints frames.
void copy(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &origin, DataTpl< Scalar, Options, JointCollectionTpl > &dest, int LEVEL)
Copy part of the data from <orig> to <dest>. Template parameter can be used to select at which differ...
int njoints
Number of joints.
container::aligned_vector< SE3 > oMi
Vector of absolute joint placements (wrt the world).
container::aligned_vector< Motion > v
Vector of joint velocities expressed at the centers of the joints.
container::aligned_vector< Force > f
Vector of body forces expressed in the local frame of the joint. For each body, the force represents ...
Main pinocchio namespace.