diff --git a/include/pinocchio/serialization/joints-model.hpp b/include/pinocchio/serialization/joints-model.hpp index 76e452d70..4791ff444 100644 --- a/include/pinocchio/serialization/joints-model.hpp +++ b/include/pinocchio/serialization/joints-model.hpp @@ -83,17 +83,17 @@ namespace boost template class JointCollectionTpl> class SetJointIndexes> { - pinocchio::JointModelMimicTpl & joint; + pinocchio::JointModelMimicTpl & joint_m; public: explicit SetJointIndexes( pinocchio::JointModelMimicTpl & joint) - : joint(joint) {}; + : joint_m(joint) {}; void run(pinocchio::JointIndex i_id, int i_q, int i_v, int i_j) { - joint.setIndexes(i_id, 0, 0, i_j); - joint.setMimicIndexes(0, i_q, i_v, 0); + joint_m.setIndexes(i_id, 0, 0, i_j); + joint_m.setMimicIndexes(0, i_q, i_v, 0); } };