Skip to content

Default KukaAllegro camera tasks to single-camera PPO - #7948

Merged
StafaH merged 4 commits into
isaac-sim:developfrom
ooctipus:fix/kuka-camera-ppo-default
Sep 23, 2026
Merged

StafaH merged 4 commits into
isaac-sim:developfrom
ooctipus:fix/kuka-camera-ppo-default

Conversation

@ooctipus

@ooctipus ooctipus commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

The KukaAllegro camera tasks default to a single-camera environment, but their RSL-RL registration selected the state actor. This command therefore rendered images while training an MLP on state observations:

uv run isaaclab train --rl_library rsl_rl --task Isaac-Lift-KukaAllegro-Camera physics=newton_mjwarp renderer=newton_renderer presets=cube

Both Lift and Reorient camera tasks now select the existing single-camera CNN actor by default. presets=single_camera and presets=duo_camera select matching camera rigs and actor inputs.

KukaAllegroPPORunnerCfg is the concrete state runner and owns the common PPO settings. Separate single- and dual-camera subclasses inherit those settings. Each camera task registration declares preset(...) directly in its rsl_rl_cfg_entry_point, with the camera runner classes imported at module scope. The extra base runner and preset-wrapper class are removed.

This changes agent selection and configuration ownership. Observation definitions are unchanged: the camera actor receives policy, proprio, and camera images, including the existing object-orientation term in policy; the critic also receives the privileged object point cloud.

Validation:

  • All 17 existing agent composition and OVPhysX camera preset checks passed.
  • All eight resolved state/default/single/dual-camera agent configurations matched their pre-refactor settings exactly.
  • A GPU training run completed one PPO iteration with the command above, eight environments, and 256 environment steps. The actor was SpatialSoftmaxCNNModel and consumed base_image. Used the equivalent module entrypoint, uv run --no-sync python -m isaaclab train, with --num_envs 8 --max_iterations 1 --viz none --logger tensorboard.
  • uv run isaaclab -f, git diff --check, and a file-by-file ownership audit passed. The changelog check used the current upstream develop base.

Release backport

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

@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@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 Sep 22, 2026
@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 22, 2026
@greptile-apps

greptile-apps Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the new registration default matches the camera environments and preserves explicit camera choices and non-camera defaults.

Summary

This PR gives the KukaAllegro Lift and Reorient camera tasks a camera-specific RSL-RL preset root whose default matches their existing single-camera environment configuration.

  • Default camera training now uses the spatial-softmax CNN actor with base_image.
  • Explicit single-camera and dual-camera presets remain available, while non-camera task defaults are unchanged.
  • Parameterized tests cover both task families across state, default-camera, explicit single-camera, and dual-camera configurations.
  • Documentation and a changelog fragment describe the corrected behavior.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  T[Camera task registration] --> R[KukaAllegroCameraPPORunnerCfg]
  R --> D{Selected preset}
  D -->|Default or single_camera| S[Single-camera CNN actor]
  D -->|duo_camera| U[Dual-camera CNN actor]
  S --> B[policy + proprio + base_image]
  U --> W[policy + proprio + base_image + wrist_image]
  S --> C[State-based critic]
  U --> C
Loading

Reviews (1) · Last reviewed commit: "Default KukaAllegro camera tasks to visu..."

@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 PR retargets both KukaAllegro camera-task registrations to a camera-specific RSL-RL preset root whose default is the existing single-camera PPO configuration. The change is accompanied by focused composition tests, Hydra documentation, and an isaaclab_tasks changelog fragment.

  • Design and architecture: The new KukaAllegroCameraPPORunnerCfg subclasses the existing preset root and changes only the default selection, avoiding duplication while preserving the state-task defaults and inherited single_camera and duo_camera choices.
  • API: The registered configuration entry point changes only for the two -Camera task IDs. Explicit single_camera and duo_camera presets remain available, and the user-visible default change is documented in both the Hydra guide and package changelog.
  • Implementation: The registration path now resolves camera tasks to a CNN actor consuming policy, proprio, and base_image by default, while retaining state observations for the critic. The parametrized test covers Lift and Reorient across state, default camera, explicit single-camera, and duo-camera compositions. A non-blocking consequence is that default camera runs now use the existing lift_kuka_allegro_single_camera experiment name rather than lift_kuka_allegro.

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.

class KukaAllegroCameraPPORunnerCfg(KukaAllegroPPORunnerCfg):
"""Camera task presets with the single-camera actor selected by default."""

default = KukaAllegroPPORunnerCfg().single_camera

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.

This is not good. It is better to remove the camera config from KukaAllegroPPORunnerCfg, and define them in two seperate classes that inherit KukaAllegroPPORunnerCfg, one for single camera one for double (or use preset in this class, but thats messy).

Then in registry we can use preset for single cam and double cam.

Also if we do this you don't need a seperate KukaAllegroPPOBaseRunnerCfg

@ooctipus

Copy link
Copy Markdown
Collaborator 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 22, 2026
@StafaH
StafaH merged commit e39f882 into isaac-sim:develop Sep 23, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as ac28509.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 23, 2026
The KukaAllegro camera tasks default to a single-camera environment, but
their RSL-RL registration selected the state actor. This command
therefore rendered images while training an MLP on state observations:

```bash
uv run isaaclab train --rl_library rsl_rl --task Isaac-Lift-KukaAllegro-Camera physics=newton_mjwarp renderer=newton_renderer presets=cube
```

Both Lift and Reorient camera tasks now select the existing
single-camera CNN actor by default. `presets=single_camera` and
`presets=duo_camera` select matching camera rigs and actor inputs.

`KukaAllegroPPORunnerCfg` is the concrete state runner and owns the
common PPO settings. Separate single- and dual-camera subclasses inherit
those settings. Each camera task registration declares `preset(...)`
directly in its `rsl_rl_cfg_entry_point`, with the camera runner classes
imported at module scope. The extra base runner and preset-wrapper class
are removed.

This changes agent selection and configuration ownership. Observation
definitions are unchanged: the camera actor receives `policy`,
`proprio`, and camera images, including the existing object-orientation
term in `policy`; the critic also receives the privileged object point
cloud.

Validation:
- All 17 existing agent composition and OVPhysX camera preset checks
passed.
- All eight resolved state/default/single/dual-camera agent
configurations matched their pre-refactor settings exactly.
- A GPU training run completed one PPO iteration with the command above,
eight environments, and 256 environment steps. The actor was
`SpatialSoftmaxCNNModel` and consumed `base_image`. Used the equivalent
module entrypoint, `uv run --no-sync python -m isaaclab train`, with
`--num_envs 8 --max_iterations 1 --viz none --logger tensorboard`.
- `uv run isaaclab -f`, `git diff --check`, and a file-by-file ownership
audit passed. The changelog check used the current upstream develop
base.

## Release backport

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

(cherry picked from commit e39f882)
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
@ooctipus ooctipus self-assigned this Sep 25, 2026
@ooctipus ooctipus added this to the Isaac Lab 3.0 GA milestone Sep 25, 2026
@ooctipus
ooctipus deleted the fix/kuka-camera-ppo-default branch October 14, 2026 14:28
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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants