Commit 93bef42
committed
review(isaac): address PR #51 inline comments — real-asset parity tests + docstring cleanup
Closes the 3 inline review threads cagataycali opened on PR #51:
1. `test_procedural_kinematic_guard.py:13` — "Default behaviour can
be fail first here. Is there a good use of having broken robot in
sim?"
Already implemented in `7f306e9` (the original PR commit). The
`_validate_kinematic_tree` guard runs unconditionally with no env-
var escape hatch; ``test_guard_has_no_env_var_escape_hatch`` pins
that contract via AST scan of `procedural.py`. No code change for
this thread; reply on the PR confirms the design matches the ask.
2. `test_procedural_g1_dof.py:17` — "Why deferred tho? Lets bash the
cases related with procedural in this PR"
The kinematic-topology pin lives in this same PR's companion file
`test_procedural_kinematic_guard.py`; the docstring on
`test_procedural_g1_dof.py` was misleading reading as if it were
"deferred". Replaced the "Note: this pin does NOT cover" framing
with explicit cross-reference + "Both run on every CI invocation;
neither is deferred" (the actual state).
3. `test_loaders.py:1` — "Can we add series of tests for verifying
the robots we have in strands-robots to smoothly maps into isaac?"
Added `TestRobosuiteMjcfParity` class — 22 parametrized + 1
aggregate test against the seven robosuite-bundled MJCFs that
strands-robots' LIBERO adapter consumes (panda / iiwa / kinova3 /
jaco / sawyer / ur5e / baxter). Each robot is asserted to:
- Load via `loaders.load_mjcf(...)` without raising
(`test_robosuite_robot_loads_cleanly`)
- Match its documented joint count from the spec table
(`test_robosuite_robot_joint_count_matches_spec`) — Panda 7-DOF,
UR5e 6-DOF, Baxter dual 7-DOF (14 total), etc.
- Have all actuated joints classified as revolute (no hinge ->
prismatic / fixed mis-mapping by the loader)
(`test_robosuite_robot_joints_are_revolute`)
- Body indices on every joint are within range (no phantom
references to non-existent bodies — closes a #33-class failure
mode preemptively)
`test_all_embodiments_at_least_load` aggregates failures across
all robots so a regression in one is visible at a glance even if
the parametrized output scrolls.
The robosuite dependency is optional; `_HAS_ROBOSUITE` gating
skips the whole class when it isn't installed (mirrors the `pxr`
gate on `TestLoadUsd`).
Verification:
* `pytest strands_robots_sim/isaac/tests/test_loaders.py -v` ->
**49 passed, 1 skipped** (skip is `pxr`-gated USD path when run
without the `[isaac]` extra).
* `pytest strands_robots_sim/isaac/tests/ --ignore=test_gpu_integ.py`
-> 67 passed, 1 skipped (no regressions across the chain).
* `black --check` / `isort --check-only` / `flake8 --max-line-length=120`
on `strands_robots_sim/` + `examples/` -> clean.
Diff: 2 files, +166 / -3 LOC.
The 7 robosuite robots locked here are the same 7 LIBERO ships
against; a regression on any of them silently breaks the matrix's
mujoco baseline (PR #26's task surface). Catching it in the
loader's unit test suite is cheaper than catching it 3 PRs deep
in a Phase-2 articulation-instantiation failure.1 parent 3eeab25 commit 93bef42
2 files changed
Lines changed: 166 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments