Skip to content

Commit

Permalink
Fix Serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Oct 7, 2024
1 parent d71b10d commit 332e4e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/pinocchio/serialization/joints-model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace boost
ar & make_nvp("i_v", i_v);
ar & make_nvp("i_j", i_j);

SetJointIndexes<pinocchio::JointModelBase<Derived>>(joint.derived()).run(i_id, i_q, i_v, i_j);
SetJointIndexes<Derived>(joint.derived()).run(i_id, i_q, i_v, i_j);
}

template<class Archive, typename Scalar, int Options, int axis>
Expand Down
1 change: 1 addition & 0 deletions unittest/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ struct init<pinocchio::JointModelMimicTpl<Scalar, Options, JointCollection>>
JointModelRX jmodel_ref = init<JointModelRX>::run();

JointModel jmodel(jmodel_ref, 1., 0.);
jmodel.setIndexes(0, 0, 0, 0);

return jmodel;
}
Expand Down

0 comments on commit 332e4e1

Please sign in to comment.