Skip to content

Add cable asset class - #1204

Merged
peterd-NV merged 9 commits into
mainfrom
peterd/cable_asset
Sep 10, 2026
Merged

peterd-NV merged 9 commits into
mainfrom
peterd/cable_asset

Conversation

@peterd-NV

@peterd-NV peterd-NV commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Isaac Lab introduced a dedicated cable asset in 3.0 EA, this PR adds a native cable asset to Arena using Lab's new cable API. This change supports the Isaac CAP cable routing env.

Cables in Lab are procedurally generated and not rigid bodies or articulations. Thus the Cable arena asset is not an object base which has API assumptions for rigid/articulations. Cables are also not supported by the Arena placer in it's current form. Changes to the placer required for working with segment based assets will be left for the future.

In this PR:

  1. Adds Cable asset class
  2. Updates Arena's usd export function to work with Lab cable assets (cables are not from a USD file)
  3. Adds tests for cpu/gpu cable spawning and export

@peterd-NV peterd-NV changed the title Add cable asset Add cable asset class Sep 8, 2026
@greptile-apps

greptile-apps Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

The PR is not yet safe to merge because a cable can be added to a Scene but causes that Scene’s documented USD export operation to fail.

Findings

  1. P1 Cable Breaks Scene Export ▶
  2. P2 Cable Spawning Remains Untested ▶

Summary

  • Stores the cable prim path, spawn configuration, and optional initial pose.
  • Exposes the cable through Arena’s scene and event configuration interface.
  • Leaves cable-containing scenes incompatible with the existing USD export path.
  • Tests configuration wiring but not simulator-backed cable creation.

Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved
@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

Adds a Cable scene asset wrapping Isaac Lab 3.0's new CableObjectCfg, plus a config-only unit test. The wrapper itself is small and the pose/quaternion plumbing matches the rest of the repo (Isaac Lab's init_state.rot is xyzw, so Pose.rotation_xyzw maps straight through). My concerns are about how it sits in the asset hierarchy and about two runtime gaps the config-only test can't see.

Design, Boundaries & Scope

Cable derives from Asset directly and hand-rolls get_object_cfg, get_event_cfg, get_initial_pose, the prim_path field, and the init_state.pos/rot write — all of which PlaceableAsset / ObjectBase already provide. Beyond the duplication, it means a cable has no set_initial_pose() (pose is construction-only) and can't participate in relation-based placement like every other placeable asset. Deriving from PlaceableAsset would delete most of the file; the only new thing needed looks like get_bounding_box(), which CableCfg.positions can supply.

Findings

🟡 Warning: isaaclab_arena/assets/cable.py:41 — get_event_cfg always returns None and Isaac Lab's CableObject.reset() is a no-op, so nothing restores the cable to init_state on an episode reset. After the first episode it carries over whatever shape physics left it in, which makes cable runs non-reproducible.

🟡 Warning: isaaclab_arena/assets/cable.py:15 — Re-implements the PlaceableAsset/ObjectBase surface (see above).

🟡 Warning: isaaclab_arena/assets/cable.py:16 — Cables only have a Newton implementation (isaaclab_newton/assets/cable_object; no PhysX equivalent), while Arena defaults to PhysX (ArenaPhysicsCfg.default = physx). Under the default preset a scene with a Cable fails inside FactoryBase with an opaque backend-import error. Worth a docstring note that this needs presets="newton".

🔵 Improvement: isaaclab_arena/assets/cable.py:22 — spawn is typed SpawnerCfg; only CableCfg is meaningful here.

🔵 Improvement: isaaclab_arena/tests/test_cable_asset.py:31 — Config-only coverage; nothing spawns a cable.

Test Coverage

The new test lands in Phase 1 (no camera/subprocess markers) and correctly defers its Isaac Lab imports into the test body, so it passes the collection-hygiene guard. It only asserts the cfg round-trip, though — no cable is ever spawned or stepped, so neither the Newton-backend requirement nor the missing reset would be caught. A sim test via run_function_with_persistent_simulation_app with presets="newton" that builds a scene with a cable and steps it would cover both.

Verdict

Minor fixes needed

Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved
Comment thread isaaclab_arena/assets/cable.py Resolved

@qianl-nv qianl-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much cleaner, and thanks for adding the validate_simulation_cfg to Asset!

Comment thread isaaclab_arena/assets/cable.py Resolved
@peterd-NV
peterd-NV merged commit abc3365 into main Sep 10, 2026
10 checks passed
cvolkcvolk pushed a commit that referenced this pull request Nov 20, 2026
Bring Peter's bimanual YAM cable-routing prototype onto current main:
the BimanualYamEmbodiment, CableRoutingTask with its winding-based
success check, and the yam_cable_routing environment with coupled
MJWarp and VBD Newton physics.

Conflict resolution keeps main's Cable asset (#1204), main's physics
backend selection in ArenaEnvBuilder and IsaacLabArenaEnvironment, and
drops the kuka_allegro import removed in #1666. The environment still
uses APIs that changed on main; the following commits port it.

(cherry picked from commit e567347)
Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk pushed a commit that referenced this pull request Nov 20, 2026
Bring Peter's bimanual YAM cable-routing prototype onto current main:
the BimanualYamEmbodiment, CableRoutingTask with its winding-based
success check, and the yam_cable_routing environment with coupled
MJWarp and VBD Newton physics.

Conflict resolution keeps main's Cable asset (#1204), main's physics
backend selection in ArenaEnvBuilder and IsaacLabArenaEnvironment, and
drops the kuka_allegro import removed in #1666. The environment still
uses APIs that changed on main; the following commits port it.

(cherry picked from commit e567347)
Signed-off-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants