Skip to content

Fixing the teleop device env mapping for franka reach envs - #6087

Merged
ooctipus merged 3 commits into
isaac-sim:developfrom
rwiltz:rwiltz/fix-franka-reach-abs-teleop
Jun 9, 2026
Merged

ooctipus merged 3 commits into
isaac-sim:developfrom
rwiltz:rwiltz/fix-franka-reach-abs-teleop

Conversation

@rwiltz

@rwiltz rwiltz commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

  • Native keyboard/gamepad/SpaceMouse teleop devices emit a 6D SE(3) delta, which only matches
    the relative-IK action space. They were configured on the shared ReachEnvCfg base, so the
    absolute-IK (Isaac-Reach-Franka-IK-Abs-v0, 7D pose) and joint-position reach variants
    inherited them and crashed with ValueError: Invalid action shape, expected: 7, received: 6
    when teleoperated.
  • Moved the native teleop_devices to the Franka relative-IK reach config, where the 6D delta
    matches the 6D action.
  • Dropped the absolute-IK reach row from the Keyboard/SpaceMouse table in
    docs/source/features/isaac_teleop.rst.

Fixes # (issue)

Type of change

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

Checklist

  • 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 updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

rwiltz added 2 commits June 9, 2026 16:49
Revert the record_demos.py and teleop_se3_agent.py action-dimension
guards and the absolute-IK reach row added to the XR docs table, leaving
only the teleop_devices relocation (base reach env -> relative-IK config)
and the native-device docs/changelog update. This matches the minimal
release/3.0.0-beta2 backport.
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jun 9, 2026
@greptile-apps

greptile-apps Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a runtime ValueError that occurred when using native keyboard, gamepad, or SpaceMouse teleoperation with the Franka absolute-IK or joint-position reach environments. The 6D SE(3) delta emitted by these devices is incompatible with the 7D pose action space of Isaac-Reach-Franka-IK-Abs-v0, but teleop_devices was previously configured on the shared ReachEnvCfg base class and therefore inherited by all reach variants.

  • Removes teleop_devices (and its imports) from ReachEnvCfg.__post_init__ so the absolute-IK and joint-position variants no longer inherit incompatible devices.
  • Adds the equivalent DevicesCfg block into FrankaReachEnvCfg.__post_init__ inside ik_rel_env_cfg.py, where the 6D delta matches the 6D relative-IK action space.
  • Removes the Isaac-Reach-Franka-IK-Abs-v0 row from the Keyboard/SpaceMouse teleop table in the docs, and adds a changelog entry.

Confidence Score: 5/5

Safe to merge — the change is a targeted, well-scoped config move with no new logic introduced.

The fix moves an existing, identical configuration block from the shared base to the one derived class where its action-space contract is satisfied. No logic changes, no new imports that aren't already used elsewhere in the repo, and the documentation and changelog are in sync with the code.

No files require special attention.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py Removes teleop_devices block and its four device imports from the shared ReachEnvCfg base, ensuring IK-abs and joint-pos variants no longer inherit incompatible 6D delta devices.
source/isaaclab_tasks/isaaclab_tasks/contrib/reach/config/franka/ik_rel_env_cfg.py Adds DevicesCfg with keyboard, gamepad, and spacemouse devices directly to FrankaReachEnvCfg (IK-rel), which is the only reach variant whose 6D action space is compatible with these devices.
docs/source/features/isaac_teleop.rst Removes the Isaac-Reach-Franka-IK-Abs-v0 row from the supported native teleop environments table; accurately reflects the post-fix state.
source/isaaclab_tasks/changelog.d/fix-reach-ik-abs-native-teleop.rst New changelog entry clearly describing the root cause and fix for the action-shape mismatch.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[ReachEnvCfg base\nno teleop_devices] --> B[FrankaReachEnvCfg\njoint_pos]
    B --> C[FrankaReachEnvCfg\nIK-Abs\nno teleop_devices\n7D pose action]
    B --> D[FrankaReachEnvCfg\nIK-Rel\nteleop_devices: keyboard/gamepad/spacemouse\n6D delta action ✓]

    style D fill:#c8e6c9,stroke:#388e3c
    style C fill:#fff9c4,stroke:#f9a825
    style A fill:#e3f2fd,stroke:#1976d2
Loading

Reviews (1): Last reviewed commit: "Trim reach teleop fix to minimal change ..." | Re-trigger Greptile

@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 — PR #6087 (Follow-up Review)

Title: Fixing the teleop device env mapping for franka reach envs
Author: @rwiltz | Base: develop | SHA: a65f877


Update Since Last Review

The new commit (a65f877) is a merge of develop into the PR branch to keep it up to date. The actual PR-specific changes (teleop device relocation from ReachEnvCfg to ik_rel_env_cfg.py) are unchanged from the previously reviewed SHA 0763664.


Original Suggestions (Still Applicable)

My previous suggestions remain valid:

🔵 Consider adding a comment in ReachEnvCfg noting that teleop devices should be configured per-action-space variant (not in the shared base) to prevent future regressions when IK-rel variants are added for other robots.

🔵 Changelog fragment: link to issue number — The PR description still has Fixes # (issue) unfilled. If there's a tracked issue, linking it improves traceability.

🔵 Document the XR teleop path for absolute IK — The docs table now only shows Isaac-Reach-Franka-IK-Rel-v0. A brief note pointing users to the XR pipeline for Isaac-Reach-Franka-IK-Abs-v0 would help.


Architecture Assessment ✅

  • Fix is correctly scoped and minimal
  • Inheritance chain is correct (ik_abs_env_cfg.py no longer inherits incompatible device configs)
  • Pattern is sound: action-space-specific device configs belong in action-space-specific config classes

CI Status

  • Pre-commit, changelog checks, and build wheel: ✅ passing

Verdict: No blocking issues. The merge commit is routine branch maintenance. Previous review findings unchanged — this remains a clean, well-motivated bug fix. Minor suggestions are optional enhancements.

— Isaac Lab Review Bot 🤖

@ooctipus
ooctipus merged commit e3116a1 into isaac-sim:develop Jun 9, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants