Commit ab444aa
committed
Fixes index error in inverse kinematics
Corrects an index error in the inverse kinematics calculation that occurred when resetting joint states after each iteration. The loop variable `i` was incorrectly reused from the outer loop, leading to out-of-bounds access when `len(joint_ids_sorted)` differed from `max_iter`. This change ensures correct joint state updates during inverse kinematics solving.1 parent a3317ba commit ab444aa
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
737 | | - | |
| 736 | + | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
0 commit comments