Skip to content

Commit 2573e11

Browse files
committed
fix: bug in validate logic where attachments were only checked on first rake
1 parent 742a525 commit 2573e11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/impl/vamp/planning/validate.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ namespace vamp::planning
5555
block[j] = block[j] - backstep.broadcast(j);
5656
}
5757

58-
if (not Robot::template fkcc<rake>(environment, block))
58+
bool valid = (environment.attachments) ? Robot::template fkcc_attach<rake>(environment, block) :
59+
Robot::template fkcc<rake>(environment, block);
60+
if (not valid)
5961
{
6062
return false;
6163
}

0 commit comments

Comments
 (0)