Skip to content

Fix/so101 teleop success tolerance - #7661

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
rwiltz:fix/so101-teleop-success-tolerance
Sep 9, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
rwiltz:fix/so101-teleop-success-tolerance

Conversation

@rwiltz

@rwiltz rwiltz commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Description

The SO-101 joint-teleop cube-stack task did not auto-reset after the operator
completed a stack and opened the gripper, so the session had to be reset manually.

In joint teleop the leader arm's raw gripper encoder angle is mirrored onto the
follower 1:1 (identity JointStateRetargeter: scale=1.0, offset=0.0,
sign=+1.0), so the follower jaw lands wherever the operator's leader jaw does.
The success termination accepted the gripper as open only within atol=0.2 rad
of SO101_GRIPPER_OPEN (1.745 rad), and the jaw's own joint limit is 1.7453 rad.
That means success required the jaw to land in [1.545, 1.745], the top 0.2 rad
of a 1.92 rad range. A leader arm whose calibrated full-open reading falls short
of 1.545 therefore never trips success, no matter how far the operator opens it,
and the environment never resets.

This widens the tolerance for that task's success term to 0.5 rad, so the accepted
window becomes q >= 1.245 rad (71.3 deg instead of 88.5 deg of the 100 deg jaw
range).

0.5 rad still demands more opening than releasing a cube requires. The jaw opening
follows 2 * L * sin(q / 2) for jaw lever arm L, so a 0.0477 m cube is freed by
q >= 1.245 for any L >= 0.043 m, and the moving jaw spans about 0.093 m. So the
check cannot start firing while the operator is still gripping the cube.

gripper_threshold is deliberately left at 0.2. object_grasped reads it to
annotate the grasp_1 / grasp_2 subtask signals for every SO-101 stack env, so
changing it would alter demo and mimic annotations well beyond this task.

Scope: stack_joint_teleop_env_cfg:SO101CubeStackEnvCfg is referenced only by the
IsaacContrib-Stack-Cube-SO101-Joint-Teleop-v0 registration, and nothing imports
or subclasses it. The joint-position and IK-Abs SO-101 envs are unchanged.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

The SO-101 joint-teleop stack task mirrors the leader arm's raw gripper encoder
angle onto the follower 1:1, and the follower jaw is capped by its own joint
limit of 1.7453 rad. The success termination accepted the gripper as open only
within 0.2 rad of SO101_GRIPPER_OPEN, which is the top 0.2 rad of a 1.92 rad
range, so a leader whose calibrated full-open reading falls short never trips
success and the environment never auto-resets after a completed stack.

Widen the tolerance to 0.5 rad. That still demands more opening than freeing a
cube requires: the jaw opens by 2*L*sin(q/2), so a 0.0477 m cube is released by
q >= 1.245 for any lever arm L >= 0.043 m, and the moving jaw spans ~0.093 m.

gripper_threshold is deliberately left alone because object_grasped uses it to
annotate the grasp subtask signals for every SO-101 stack environment.
@rwiltz
rwiltz requested a review from a team September 9, 2026 02:52
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 9, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isaac Lab Review Bot

The change cleanly widens the SO-101 joint-teleop cube-stack success tolerance from 0.2 rad to 0.5 rad while keeping the grasp-annotation threshold unchanged. The task-specific termination override and changelog consistently describe the intended auto-reset fix.

  • Design and architecture: Separating the success tolerance from gripper_threshold avoids changing object_grasped subtask annotations. The private constant and override remain scoped to the joint-teleop configuration, preserving the behavior of other SO-101 stack configurations.
  • API: No public API, termination function signature, or configuration field is added, removed, or renamed. The existing DoneTerm parameter shape is preserved, and the user-visible behavior change has a package changelog fragment.
  • Implementation: The changed __post_init__ path now passes _SUCCESS_GRIPPER_ATOL = 0.5 to mdp.cubes_stacked, yielding the intended lower accepted gripper position of approximately 1.245 rad. The main non-blocking tradeoff is that this tolerance is tied to the current cube and jaw geometry and would require a source change if those assumptions change.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@greptile-apps

greptile-apps Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

The change appears safe to merge, with a non-blocking recommendation to add focused regression coverage for the new success boundary.

Findings

  1. P2 Success Boundary Lacks Coverage ▶

Summary

  • Keeps the broader grasp-annotation threshold unchanged.
  • Limits the behavioral override to the joint-teleop environment configuration.
  • Adds a changelog fragment explaining the corrected reset behavior.
  • The new tolerance boundary currently lacks focused regression coverage.

The success termination is evaluated as the joint-teleop env wires it, so a
gripper-open tolerance too tight for a mirrored leader arm to reach cannot be
reintroduced silently. Fails at the previous 0.2 rad tolerance, passes at 0.5.

Sim-free and runs in about a second. Also covers the lower bound, so success
cannot fire while the cube is still held, and the required bottom-to-top
cube_1, cube_2, cube_3 stack order.
@rwiltz

rwiltz commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 9, 2026
@kellyguo11
kellyguo11 merged commit 0af962c into isaac-sim:develop Sep 9, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as b0af116.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 9, 2026
# Description

The SO-101 joint-teleop cube-stack task did not auto-reset after the
operator
completed a stack and opened the gripper, so the session had to be reset
manually.
  
In joint teleop the leader arm's raw gripper encoder angle is mirrored
onto the
follower 1:1 (identity `JointStateRetargeter`: `scale=1.0`,
`offset=0.0`,
`sign=+1.0`), so the follower jaw lands wherever the operator's leader
jaw does.
The `success` termination accepted the gripper as open only within
`atol=0.2` rad
of `SO101_GRIPPER_OPEN` (1.745 rad), and the jaw's own joint limit is
1.7453 rad.
That means success required the jaw to land in `[1.545, 1.745]`, the top
0.2 rad
of a 1.92 rad range. A leader arm whose calibrated full-open reading
falls short
of 1.545 therefore never trips success, no matter how far the operator
opens it,
  and the environment never resets.

This widens the tolerance for that task's success term to 0.5 rad, so
the accepted
window becomes `q >= 1.245` rad (71.3 deg instead of 88.5 deg of the 100
deg jaw
  range).
 
0.5 rad still demands more opening than releasing a cube requires. The
jaw opening
follows `2 * L * sin(q / 2)` for jaw lever arm `L`, so a 0.0477 m cube
is freed by
`q >= 1.245` for any `L >= 0.043 m`, and the moving jaw spans about
0.093 m. So the
check cannot start firing while the operator is still gripping the cube.
 
`gripper_threshold` is deliberately left at 0.2. `object_grasped` reads
it to
annotate the `grasp_1` / `grasp_2` subtask signals for every SO-101
stack env, so
changing it would alter demo and mimic annotations well beyond this
task.

Scope: `stack_joint_teleop_env_cfg:SO101CubeStackEnvCfg` is referenced
only by the
`IsaacContrib-Stack-Cube-SO101-Joint-Teleop-v0` registration, and
nothing imports
or subclasses it. The joint-position and IK-Abs SO-101 envs are
unchanged.

Fixes # (issue)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

(cherry picked from commit 0af962c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants