Skip to content

Stabilize Newton rope environment and teleopoeration - #98

Merged
peterd-NV merged 5 commits into
mainfrom
peterd/newton_smg_tuning
Nov 17, 2026
Merged

peterd-NV merged 5 commits into
mainfrom
peterd/newton_smg_tuning

Conversation

@peterd-NV

@peterd-NV peterd-NV commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Detailed description

Newton rope teleoperation could produce abrupt arm motion during table and
rope contact. Separately, restoring an episode during annotation could leave
the Newton end-effector sensor reporting a stale pose, causing generated
demonstrations to begin with an unnecessary detour.

This PR addresses both issues:

  • Backport Isaac Lab's differential IK tool-offset correction
    (Fix body-offset Jacobian in task-space action terms IsaacLab#7989). The controller now accounts for the tool offset
    in the correct coordinate frame.
  • Tune Newton contact and control. Use staggered rigid/deformable coupling,
    increase IK damping from 0.01 to 0.05, reduce soft-contact friction
    from 10 to 3.
  • Adjust Newton SpaceMouse sensitivity from 0.2/0.5 to 0.1/0.2 for
    translation/rotation.
  • Refresh Newton frame-sensor measurements before returning updated buffers,
    including after episode restoration, so annotation records the correct
    initial pose without advancing physics.
  • Regenerate the Newton and PhysX source demonstrations for the corrected
    controller, updating both the documented datasets and their CI copies.

Summary by CodeRabbit

  • New Features
    • Improved arm control for rope manipulation, including support for offset end-effector targets.
  • Bug Fixes
    • Updated Newton pose handling so restored end-effector positions are available before the first simulation step.
    • Adjusted Newton control sensitivities and soft-contact settings.
  • Tests
    • Updated annotated rope-manipulation datasets for PhysX and Newton.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Franka rope environment now uses updated inverse-kinematics and frame-transform handling. Newton configuration and SpaceMouse sensitivity values change. Four annotated dataset pointers reference different objects with smaller declared sizes.

Changes: Franka Rope Newton Updates

Layer / File(s) Summary
IK and frame-transform handling
autodata_interfaces/env/isaaclab_diff_ik_body_offset_patch.py, autodata_interfaces/env/isaaclab_newton_frame_transformer_patch.py, autodata_examples/envs/isaac_lab_arena/franka_rope/embodiment.py
Adds an action subclass that adjusts the body Jacobian when an offset is configured, and a frame-transform subclass that refreshes the Newton sensor before buffer updates. The embodiment uses these classes and sets Newton IK damping to 0.05.
Newton controls and contact settings
autodata_examples/envs/isaac_lab_arena/franka_rope/environment.py, autodata_examples/envs/isaac_lab_arena/franka_rope/newton_cfg.py
Newton uses SpaceMouse position and rotation sensitivities of 0.1 and 0.2; other configurations use 0.2 and 0.5. The rigid-to-soft coupling mode changes to staggered, and soft_contact_mu changes to 3.0.
Annotated dataset updates
autodata_tests/test_data/annotated_dataset_franka_rope_softmimicgen.hdf5, autodata_tests/test_data/annotated_dataset_franka_rope_softmimicgen_newton.hdf5, datasets/annotated_datasets/dataset_franka_rope_newton_annotated.hdf5, datasets/annotated_datasets/dataset_franka_rope_physx_annotated.hdf5
The four Git LFS pointers reference different objects. Their declared sizes decrease from 30,514,205 to 12,422,461 bytes or from 13,597,900 to 12,104,320 bytes.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to dc4d4

Merge Risk: ⚪ Minimal · up to dc4d4

The change tunes Franka rope Newton control and contact settings and adds IK and frame-sensor patches. No concrete merge-blocking defect was found. CI should still confirm the regenerated datasets replay successfully.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Stabilize Newton rope environment and teleopoeration" fits the main change. The PR stabilizes the Newton rope environment by tuning contact, control, and sensor refresh, and it touches tele…
Description check Passed The description gives a clear reason for the change and lists the changes. It explains the abrupt arm motion during rope contact, the stale Newton end-effector sensor pose after episode restoration, t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Stabilize Newton rope environment and teleopoeration" fits the main change. The PR stabilizes the Newton rope environment by tuning contact, control, and sensor refresh, and it touches teleoperation through SpaceMouse sensitivity and the IK tool-offset correction. The title names the Newton rope environment and teleoperation. It is specific enough for a teammate to see the primary change. It contains a spelling error: "teleopoeration" should be "teleoperation".

Full details: Description check

Explanation

The description gives a clear reason for the change and lists the changes. It explains the abrupt arm motion during rope contact, the stale Newton end-effector sensor pose after episode restoration, the IK tool-offset backport, the contact and control tuning, the SpaceMouse sensitivity change, the sensor refresh, and the regenerated datasets. It does not follow the repository template. It has no '## Summary' section with a short description of 50 characters or fewer. The '## Detailed description' section covers the three required points: reason, changes, and impact. The impact is described only indirectly, with no explicit statement of the effect on users or downstream workflows.

Resolution

Add a '## Summary' heading with a one-line description of 50 characters or fewer, for example "Stabilize Newton rope environment and teleoperation". State the impact of the change explicitly in the detailed description.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4e7369c and 87775b5.

Files selected for processing: 9

  • autodata_examples/envs/isaac_lab_arena/franka_rope/embodiment.py
  • autodata_examples/envs/isaac_lab_arena/franka_rope/environment.py
  • autodata_examples/envs/isaac_lab_arena/franka_rope/newton_cfg.py
  • autodata_interfaces/env/isaaclab_diff_ik_body_offset_patch.py
  • autodata_interfaces/env/isaaclab_newton_frame_transformer_patch.py
  • autodata_tests/test_data/annotated_dataset_franka_rope_softmimicgen.hdf5
  • autodata_tests/test_data/annotated_dataset_franka_rope_softmimicgen_newton.hdf5
  • datasets/annotated_datasets/dataset_franka_rope_newton_annotated.hdf5
  • datasets/annotated_datasets/dataset_franka_rope_physx_annotated.hdf5

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@peterd-NV
peterd-NV marked this pull request as ready for review November 17, 2026 15:13
@peterd-NV
peterd-NV requested a review from njawale42 as a code owner November 17, 2026 15:13
@peterd-NV
peterd-NV requested a review from bokalnv November 17, 2026 17:47
@peterd-NV
peterd-NV merged commit db7ddae into main Nov 17, 2026
9 checks passed
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