Skip to content

Commit

Permalink
Fix init problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Nov 13, 2024
1 parent db6907e commit 4613a0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/pinocchio/serialization/joints-model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ namespace boost
template<typename Scalar, int Options, template<typename S, int O> class JointCollectionTpl>
class SetJointIndexes<pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl>>
{
pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & joint;
pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & joint_m;

public:
explicit SetJointIndexes(
pinocchio::JointModelMimicTpl<Scalar, Options, JointCollectionTpl> & 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);
}
};

Expand Down

0 comments on commit 4613a0f

Please sign in to comment.