Commit 1f42d03
authored
teleop: route ssik through analytical IK path, not Jacobian fallback (#165)
_step_pose only recognized MuJoCoEAIKSolver as analytical. JACO 2
uses MuJoCoSSIKSolver (added in #159) which silently fell through to
_step_pose_as_twist — the Jacobian-based path designed for mink.
The Jacobian fallback can't track ft_guarded_move's running target
fast enough; the result is a silent stall and a
"ft_guarded_move:no_progress" outcome in ada_mj feed_bite's
acquire_food step.
Extract `_is_analytical_ik(ik)` helper that accepts both
MuJoCoEAIKSolver and MuJoCoSSIKSolver. Both return IK solutions in
O(1) and are safe to call per teleop tick; only mink genuinely needs
the Jacobian fallback. Adds TestAnalyticalIKDispatch (4 tests)
locking in the classification for eaik, ssik, mink, and None.
Fixes #1641 parent c6d1754 commit 1f42d03
2 files changed
Lines changed: 57 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
109 | 129 | | |
110 | 130 | | |
111 | 131 | | |
| |||
582 | 602 | | |
583 | 603 | | |
584 | 604 | | |
585 | | - | |
| 605 | + | |
586 | 606 | | |
587 | 607 | | |
588 | 608 | | |
589 | 609 | | |
590 | | - | |
591 | | - | |
592 | 610 | | |
593 | | - | |
| 611 | + | |
594 | 612 | | |
595 | 613 | | |
596 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
0 commit comments