Skip to content

Add Newton gear insertion env with DROID teleoperation - #1409

Merged
peterd-NV merged 16 commits into
mainfrom
peterd/feature/gear-assembly-native
Oct 20, 2026
Merged

peterd-NV merged 16 commits into
mainfrom
peterd/feature/gear-assembly-native

Conversation

@peterd-NV

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

Copy link
Copy Markdown
Collaborator

Description

Add a gear_insertion environment with DROID teleoperation and demo recording.

Why this change?

Provide a gear insertion task that users can teleoperate and record through the standard Arena and Isaac Lab entry points.

What changes?

  • Add gear assets under Arena’s standard asset root, randomized placement, and insertion criteria that require the gear to remain seated and settled.
  • Support DROID keyboard and SpaceMouse teleoperation with the correct gripper commands.
  • Update shared Newton DROID gripper actuation to drive one motor with mechanically coupled follower joints, and preserve actuator configuration across simulation rebuilds. The gripper USD has mimic joints but previously under Newton, was being driven by separate drives which cause instability and object penetration.
  • Configure gear-specific contact dynamics.
  • Add a reusable parallel camera-compression writer, currently enabled only for gear insertion, that preserves native HDF5 format and image values.
  • Exclude geometry-free target frames from placement collision obstacles. This enables placement of the gear base which contains an object reference on one of it's pegs. In the existing Arena setup, such an object reference would try to be placed even though it had no geometry because it's parent prim (the gear base) was a placeable object.

Usage example

python submodules/IsaacLab/scripts/tools/record_demos.py \
  --task gear_insertion \
  --external_callback isaaclab_arena.environments.isaaclab_interop.environment_registration_callback \
  --device cuda:0 --viz kit --enable_cameras \
  --teleop_device spacemouse \
  --num_demos 10 --num_success_steps 1 \
  --no-reset_sim_buffer_each_episode \
  --dataset_file /datasets/gear_insertion/recorded_dataset.hdf5

Validation

  • Passed 16 focused tests covering HDF5 compatibility, DROID control and simulation rebuilds, teleoperation, insertion criteria, and placement handling.
  • Passed pre-commit checks across the feature files.
  • Manually verified SpaceMouse recording before switching to the published asset paths.

Recording currently uses --no-reset_sim_buffer_each_episode to avoid the known Newton simulator-rebuild issue while retaining normal episode resets.

external_camera_2_under10mb

@peterd-NV peterd-NV changed the title Peterd/feature/gear assembly native Add Newton gear insertion env with DROID teleoperation Oct 14, 2026
@peterd-NV
peterd-NV marked this pull request as ready for review October 15, 2026 14:50
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds gear_insertion, a Newton DROID task with randomized gear placement and seated, settled success criteria.

  • DROID can pick up a gear and seat it on its matching peg.
  • DROID uses one gripper motor and maps teleop commands to open and close.
  • Camera recordings compress image chunks in parallel and stay in native HDF5 format.
  • Placement ignores target frames that have no collision geometry.
  • CI runs Newton tests in separate camera and subprocess groups.

Known limitation acknowledged by peterd-NV: recording uses --no-reset_sim_buffer_each_episode to avoid the existing Newton simulator-rebuild issue.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Devices[Keyboard or SpaceMouse] --> Commands[DROID arm and gripper commands]
  Commands --> Simulation[Newton gear environment]
  Placement[Randomized gear and base placement] --> Simulation
  Simulation --> Checks[Position, tilt, and speed checks]
  Checks --> Streak[Ten consecutive successful steps]
  Streak --> Success[Episode success]
  Simulation --> Cameras[Camera observations]
  Cameras --> Compression[Parallel compression]
  Compression --> Dataset[Native HDF5 dataset]
Loading

Reviews (1) · Last reviewed commit: "address comments" · Reviewed by Greptile

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

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

Adds a Newton gear_insertion environment with DROID keyboard/SpaceMouse teleop, a settled-insertion success check, a parallel camera HDF5 writer, mimic-coupled DROID gripper actuation under Newton, and a placement fix for geometry-free reference frames. The task and environment are well-contained and well-tested. My main questions are about two fixes that may be treating symptoms (placement of references on a placed parent, and actuator settings lost on Newton rebuild) and about the custom writer depending on private Isaac Lab fields.

Design, Boundaries & Scope

  • Placement fix: references whose parent is being placed are still treated as fixed obstacles at the parent's unplaced pose. The PR only skips the empty ones, and the new test locks in the stale-pose behavior for references with geometry. Skipping them in discover_passive_assets would fix the root cause.
  • Shared DROID changes: the gripper rework, mimic-joint authoring, and _configure_newton_joint_properties change behavior for every Newton DROID environment, not just gear insertion. The joint-properties code looks like a workaround for Isaac Lab dropping actuator settings on rebuild. Could we link the upstream issue and say when it can be removed?
  • CI workflows: .github/workflows/ci.yml and uv-ci.yml gain separate Newton camera and Newton subprocess steps. The split looks right because these tests can't share one persistent app, but per AGENTS.md workflow changes should get explicit maintainer sign-off.

Findings

🟡 isaaclab_arena/relations/passive_collision_objects.py:62: references on a placed parent become obstacles at a stale pose.
🟡 isaaclab_arena/embodiments/droid/droid.py:225: rebuild workaround copies Lab's actuator resolution into every Newton DROID environment.
🟡 isaaclab_arena/recording/parallel_camera_hdf5_file_handler.py:56: depends on private HDF5DatasetFileHandler fields. Could this go into Lab instead?
🔵 isaaclab_arena/assets/object_library.py:2044: gear friction 3.0 is overwritten to 0.8 by the env callback.
🔵 isaaclab_arena/tasks/gear_insertion_task.py:151: z_threshold and support_z_threshold both set the upper depth bound.

Test Coverage and CI Cost

test_gear_insertion_recording launches Isaac Sim twice in subprocesses. The cameras case already runs every states assertion, so dropping states saves one launch without losing coverage of the new code.

Verdict

Minor fixes needed

@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.

Let a few comments, biggest question is if the parallel camera recorder change would be better to move to a separate PR and made default for arena. Will take another look after your update. Thanks!

Comment thread isaaclab_arena/assets/object_library.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.

LGTM thanks!

@peterd-NV
peterd-NV merged commit 0f9b02e into main Oct 20, 2026
12 of 13 checks passed
cvolkcvolk added a commit that referenced this pull request Oct 22, 2026
Merges these main pull requests:
- #1486 Call build_env_cfg in the seeding tests
- #1409 Add Newton gear insertion env with DROID teleoperation
- #1428 Add a skill for drafting pending PR reviews
- #1488 Disable CI GR00T E2E on Blackwell wo CUDA12.8
- #1457 Add observational predicate event tracking
- #1485 Clarify "normalize" and "plumbing" wording and add AGENTS.md guidance
- #1494 Remove RandomAroundSolution

The merge had no conflicts.

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.

2 participants