Skip to content

Commit

Permalink
[algo/check] Fix data check
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Feb 17, 2025
1 parent be09e50 commit 48f17ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pinocchio/algorithm/check-data.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ namespace pinocchio

if (model.mimicking_joints.size() != 0)
{
for (JointIndex k : model.mimicking_joints)
for (int k = 0; k < model.mimicking_joints.size(); k++)
{
// Check the mimic_subtree_joint
const auto & mimicking_sub = model.subtrees[k];
const auto & mimicking_sub = model.subtrees[model.mimicking_joints[k]];
int j = 1;
JointIndex id_subtree = 0;
for (; j < mimicking_sub.size(); j++)
Expand Down

0 comments on commit 48f17ff

Please sign in to comment.