Skip to content

[Fix] Frame the hand and goal cube in reorientation task play videos - #8474

Merged
kellyguo11 merged 9 commits into
isaac-sim:developfrom
hujc7:jichuanh/reorient-handover-views
Oct 13, 2026
Merged

kellyguo11 merged 9 commits into
isaac-sim:developfrom
hujc7:jichuanh/reorient-handover-views

Conversation

@hujc7

@hujc7 hujc7 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reorientation task videos in play mode now show a close view of one hand and its cube, with the goal cube beside it. Before, the five direct and contrib tasks recorded from the distant default camera, the three manager tasks aimed at the world origin, where the play-mode grid has no environment, and the goal cube was drawn behind the hand, outside the view.

Description

The visualizer camera is world-framed. play_mode() caps the scene at 50 environments (64 for the camera tasks), and neither grid places an environment at the origin. core/reorient/utils.py now holds:

  • VISUALIZER_CFG — the manager tasks' existing view, shifted onto the environment at x = 0.375 m of the 50-environment grid; used by every reorientation task.
  • CAMERA_VISUALIZER_CFG — the same view on the environment at (1, -1) m of the 64-environment grid; set by both camera tasks in play_mode().
  • GOAL_MARKER_OFFSET — the goal cube's display offset from the in-hand position, so it sits beside the held cube; the Allegro Hand uses a wider offset to clear its larger hand. Manager tasks use the command's existing marker_pos_offset; direct tasks gain goal_marker_offset, used when goal_marker_position (now None by default) is unset. Setting goal_marker_position keeps the old fixed placement. The camera tasks drop their fixed override too: the goal cube was never in their tiled camera view and still is not (checked on the saved camera images), so the policy input is unchanged. The marker is display-only; the goal itself is unchanged.

Once #7760 lands, the views can switch to origin_type="env" and drop the play-grid offsets. The contrib OpenAI config replaces sim wholesale, so it sets the view explicitly. Training-size recordings now aim between two environments. The hand-over view is handled in #8361.

Related: #7760

Task Before After
Isaac-Reorient-Cube-Shadow-Direct default camera close view
Isaac-Reorient-Cube-Shadow-Camera-Direct default camera close view
Isaac-Reorient-Cube-Allegro-Direct default camera close view
IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct default camera close view
IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct default camera close view
Isaac-Reorient-Cube-Shadow between environments close view
Isaac-Reorient-Cube-Shadow-Camera between environments close view
Isaac-Reorient-Cube-Allegro between environments close view

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

Screenshots

Last frame of a 60-step zero-action clip in play mode (play_mode() applied), kitless Newton GL: isaaclab zero_agent --task <task> --video --video_length 60 --max_steps 62 physics=newton_mjwarp with the environment configuration resolved with play_mode=True. Before is develop at fdade38; after is this branch.

Task Before After
Isaac-Reorient-Cube-Shadow-Direct
Isaac-Reorient-Cube-Shadow-Camera-Direct
Isaac-Reorient-Cube-Allegro-Direct
IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct
IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct
Isaac-Reorient-Cube-Shadow
Isaac-Reorient-Cube-Shadow-Camera
Isaac-Reorient-Cube-Allegro

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 uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump package versions — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

The direct Shadow Hand, Allegro Hand and OpenAI Shadow Hand configs set no
visualizer camera, so recordings fell back to the default view 4 m from the
origin, where each hand is a few pixels tall. Move the manager-based view
into a shared VISUALIZER_CFG and use it for every reorientation task.
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Oct 12, 2026
@hujc7 hujc7 changed the title [Fix] Frame the hand in direct reorientation task videos [Fix] Frame one hand in reorientation task play videos Oct 12, 2026
@hujc7 hujc7 changed the title [Fix] Frame one hand in reorientation task play videos [Fix] Frame the hand and goal cube in reorientation task play videos Oct 12, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

run-ci

@kellyguo11
kellyguo11 marked this pull request as ready for review October 13, 2026 02:31
@kellyguo11
kellyguo11 requested a review from a team October 13, 2026 02:31
@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 Oct 13, 2026
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium impact] Adjusts camera framing and goal cube positioning in reorientation task.

The PR appears safe to merge, with two non-blocking camera configuration issues.

Findings

  1. P2 Single-hand videos miss the hand ▶
  2. P2 Camera settings leak between tasks ▶

Summary

The PR gives reorientation play videos a close camera view and places the goal cube beside the hand.

  • Reorientation play videos frame a hand and its cube.
  • The displayed goal cube sits beside the hand.

Reviews (1) · Last reviewed commit: "Place the camera tasks' goal cube beside..." · Reviewed by Greptile

VISUALIZER_CFG = VisualizerCfg(eye=(0.995, -0.80, 0.85), lookat=(0.375, -0.28, 0.53), focal_length=35.0)
"""Recording view of an environment in the 50-environment play grid."""

CAMERA_VISUALIZER_CFG = VisualizerCfg(eye=(1.62, -1.80, 0.85), lookat=(1.0, -1.28, 0.53), focal_length=35.0)

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.

P2 Single-hand videos miss the hand

CAMERA_VISUALIZER_CFG aims at the environment at (1, -1) in the 64-environment grid. With --num_envs 1, the command-line override places the only environment at the origin, but the camera keeps this fixed view and misses the hand. This leaves single-environment recordings of either camera task without the intended view. Compute the view from the final grid rather than assuming 64 environments.

super().play_mode()
# the tiled camera needs more environments than the shared play default
self.scene.num_envs = 64
self.sim.default_visualizer_cfg = CAMERA_VISUALIZER_CFG

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.

P2 Camera settings leak between tasks

Both camera tasks assign the same mutable CAMERA_VISUALIZER_CFG object in play_mode(). A later scalar override or Python assignment to env.sim.default_visualizer_cfg.eye also changes that shared default. Another camera task created in the same process then inherits the custom view, so its recording depends on which task was configured first. Assign CAMERA_VISUALIZER_CFG.copy() in both camera tasks.

@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

Needs attention: Design and architecture (1), Compatibility and deprecation (1). Other reviewed categories look good.

  • PR description: The body matches the diff and provides reproducible visualizer comparisons, but should remove the duplicate task table and clearly state the training-size framing regression and tiled-camera compatibility impact.
  • Design and architecture: The 50-environment camera is assigned as the global simulation default, so non-play layouts inherit a grid-specific view; move the assignment to existing play_mode() hooks.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: removing both camera-task marker overrides changes the documented tiled-camera scene consumed by shipped pretrained feature extractors without preserving the old image contract; restore the overrides or provide compatible checkpoints and migration.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

Significant concerns. Posted 2 inline findings.

Automated review; human maintainers own approval decisions.


def __post_init__(self):
super().__post_init__()
# the goal cube must sit inside the tiled camera's frustum

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.

🟡 Warning · Compatibility — Camera goal-marker frustum invariant removed

The deleted override documented that the goal cube must sit inside the tiled camera frustum. Both camera tasks now place it beside the hand, altering input to shipped pretrained feature extractors. Restore or correct the…

self.sim.default_visualizer_cfg = VisualizerCfg(
eye=(0.62, -0.80, 0.85), lookat=(0.0, -0.28, 0.53), focal_length=35.0
)
self.sim.default_visualizer_cfg = VISUALIZER_CFG

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.

🟡 Warning · Design Architecture — Play-grid view applied in all modes

VISUALIZER_CFG targets the 50-env play grid but is installed as the default everywhere; at 8192 envs x=0.375 falls between columns, so training-size videos frame empty space. Assign it in play_mode() instead.

@kellyguo11

Copy link
Copy Markdown
Contributor

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 Oct 13, 2026
@kellyguo11
kellyguo11 merged commit 4f718b8 into isaac-sim:develop Oct 13, 2026
93 of 95 checks passed
isaaclab-bot Bot pushed a commit that referenced this pull request Oct 13, 2026
…8474)

## Summary

Reorientation task videos in play mode now show a close view of one hand
and its cube, with the goal cube beside it. Before, the five direct and
contrib tasks recorded from the distant default camera, the three
manager tasks aimed at the world origin, where the play-mode grid has no
environment, and the goal cube was drawn behind the hand, outside the
view.

# Description

The visualizer camera is world-framed. `play_mode()` caps the scene at
50 environments (64 for the camera tasks), and neither grid places an
environment at the origin. `core/reorient/utils.py` now holds:

- `VISUALIZER_CFG` — the manager tasks' existing view, shifted onto the
environment at x = 0.375 m of the 50-environment grid; used by every
reorientation task.
- `CAMERA_VISUALIZER_CFG` — the same view on the environment at (1, -1)
m of the 64-environment grid; set by both camera tasks in `play_mode()`.
- `GOAL_MARKER_OFFSET` — the goal cube's display offset from the in-hand
position, so it sits beside the held cube; the Allegro Hand uses a wider
offset to clear its larger hand. Manager tasks use the command's
existing `marker_pos_offset`; direct tasks gain `goal_marker_offset`,
used when `goal_marker_position` (now `None` by default) is unset.
Setting `goal_marker_position` keeps the old fixed placement. The camera
tasks drop their fixed override too: the goal cube was never in their
tiled camera view and still is not (checked on the saved camera images),
so the policy input is unchanged. The marker is display-only; the goal
itself is unchanged.

Once #7760 lands, the views can switch to `origin_type="env"` and drop
the play-grid offsets. The contrib OpenAI config replaces `sim`
wholesale, so it sets the view explicitly. Training-size recordings now
aim between two environments. The hand-over view is handled in #8361.

Related: #7760

| Task | Before | After |
| --- | --- | --- |
| `Isaac-Reorient-Cube-Shadow-Direct` | default camera | close view |
| `Isaac-Reorient-Cube-Shadow-Camera-Direct` | default camera | close
view |
| `Isaac-Reorient-Cube-Allegro-Direct` | default camera | close view |
| `IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct` | default camera
| close view |
| `IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct` | default
camera | close view |
| `Isaac-Reorient-Cube-Shadow` | between environments | close view |
| `Isaac-Reorient-Cube-Shadow-Camera` | between environments | close
view |
| `Isaac-Reorient-Cube-Allegro` | between environments | close view |

## Type of change

- 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`

## Screenshots

Last frame of a 60-step zero-action clip in play mode (`play_mode()`
applied), kitless Newton GL: `isaaclab zero_agent --task <task> --video
--video_length 60 --max_steps 62 physics=newton_mjwarp` with the
environment configuration resolved with `play_mode=True`. Before is
`develop` at fdade38; after is this branch.

| Task | Before | After |
| --- | --- | --- |
| `Isaac-Reorient-Cube-Shadow-Direct` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Shadow-Direct.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Shadow-Direct.jpg"
width="400"> |
| `Isaac-Reorient-Cube-Shadow-Camera-Direct` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Shadow-Camera-Direct.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Shadow-Camera-Direct.jpg"
width="400"> |
| `Isaac-Reorient-Cube-Allegro-Direct` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Allegro-Direct.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Allegro-Direct.jpg"
width="400"> |
| `IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--IsaacContrib-Reorient-Cube-Shadow-OpenAI-FF-Direct.jpg"
width="400"> |
| `IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--IsaacContrib-Reorient-Cube-Shadow-OpenAI-LSTM-Direct.jpg"
width="400"> |
| `Isaac-Reorient-Cube-Shadow` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Shadow.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Shadow.jpg"
width="400"> |
| `Isaac-Reorient-Cube-Shadow-Camera` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Shadow-Camera.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Shadow-Camera.jpg"
width="400"> |
| `Isaac-Reorient-Cube-Allegro` | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/177bcd7ee996c07ea7d87e5dfcd8a798703cbfca/pr-assets/reorient-play-views/before--Isaac-Reorient-Cube-Allegro.jpg"
width="400"> | <img
src="https://raw.githubusercontent.com/hujc7/IsaacLab/c883ac51fa687a2d84881e15df50fe20423bbbe7/pr-assets/reorient-play-views-final/after--Isaac-Reorient-Cube-Allegro.jpg"
width="400"> |

## 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
`uv run isaaclab --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/develop/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Co-authored-by: Kelly Guo <[email protected]>

(cherry picked from commit 4f718b8)
@isaaclab-bot

isaaclab-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as b48f09d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants