18 #ifndef __se3_copy_hpp__ 19 #define __se3_copy_hpp__ 21 #include "pinocchio/multibody/model.hpp" 22 #include "pinocchio/multibody/data.hpp" 23 #include "pinocchio/algorithm/check.hpp" 38 copy (
const Model& model,
const Data & origin, Data & dest );
52 for( se3::JointIndex jid=1; int(jid)<model.
njoints; ++ jid )
56 dest.
oMi[jid] = origin.
oMi [jid];
59 dest.
v[jid] = origin.
v [jid];
63 dest.
a[jid] = origin.
v [jid];
65 dest.
f[jid] = origin.
f [jid];
73 #endif // ifndef __se3_copy_hpp__ container::aligned_vector< Motion > a
Vector of joint accelerations expressed at the centers of the joints.
container::aligned_vector< Motion > a_gf
Vector of joint accelerations due to the gravity field.
container::aligned_vector< SE3 > oMi
Vector of absolute joint placements (wrt the world).
container::aligned_vector< Force > f
Vector of body forces expressed in the local frame of the joint. For each body, the force represents ...
container::aligned_vector< Motion > v
Vector of joint velocities expressed at the centers of the joints.
int njoints
Number of joints.
void copy(const Model &model, const Data &origin, Data &dest)
Copy part of the data from <orig> to <dest>. Template parameter can be used to select at which differ...