Skip to content

feat(examples/televiz): camera_viz's placement and controller bindings - #1685

Draft
junjeechao wants to merge 5 commits into
junjeec/televiz-guidefrom
junjeec/televiz-view-controls
Draft

junjeechao wants to merge 5 commits into
junjeec/televiz-guidefrom
junjeec/televiz-view-controls

Conversation

@junjeechao

Copy link
Copy Markdown
Contributor

Description

Draft. Stacked on the Televiz guide PR (#1684), which is on #1655; review only this PR's diff.

Gives the televiz example the placement and the controller bindings of camera_viz, so that the two examples are used the same way.

What this part adds:

  • Placement. A placement config section with the keys of camera_viz's display.placements: lock_mode, distance, size, offset_x, offset_y, the lazy knobs and stereo_plane_distance_cm. camera_viz's own placement strategies do the placing, unchanged, in a frame that turns with the camera (render/placement.py):
    • gimbal, the default: the picture follows your position and turns with the camera. With no size this is what the plane did before.
    • world: it stays where it was seated and turns with the camera.
    • lazy: as world, and it comes back in front of you when you look away from it.
    • head: it stays in front of your eyes; nothing is stabilized.
    • With size left out the picture covers the camera's field of view, as before. With a size it is a screen of that size, which looks smaller from farther away.
  • Controller bindings. New actions (lock_mode, mono_stereo, reset) and stick axes (size, height, stereo_gap) on the stream every input path posts to (pipeline/actions.py). The bindings table gives each its input; none takes one away, and an optional hold gates them all. The shipped configs preset camera_viz's layout. render/view_controls.py applies them with camera_viz's own size, height and gap code and shows a change on camera_viz's head-locked panel.
  • The guide. A Placement section and a Controller bindings section with a figure and a function table, and the config reference.

What this part removes:

  • The example's own lazy-lock (viewpoint.lazy_* and the lazy_toggle action): lock_mode: lazy is the one lazy rule.
  • render.distance_m, which is now placement.distance.

Try it (in the headset):

python -m isaaccapture_examples.televiz examples/televiz/configs/synthetic.yaml

Push the left stick to resize the picture and move it up or down, press A to change the lock mode, B for mono or stereo, Y to reset, and click the right stick to recenter.

For the reviewer:

  • gimbal with no size reproduces the earlier plane exactly: the plane placement tests of feat(examples/televiz): add the viewpoint and the headset view (4/6) #1653 pass unchanged.
  • A recenter seats the picture anew (Viewpoint.anchor_epoch), because it turns the camera's frame under the picture.
  • An axis that nothing has set for a quarter of a second is at rest, so a stick left pushed when the headset stops rendering does not go on changing a setting.
  • The panel's layer is added after the picture's, which it is then drawn over, and again after the picture's layer is rebuilt.
  • No new dependency: the panel draws with Pillow, which comes with isaaccapture[cloudxr], already required by this example.
  • The figure is camera_viz's controller figure with four labels changed. The new text is rendered with Red Hat Text (SIL Open Font License 1.1); the font is not added to the repository.
  • Not yet run in a headset: the view stage is tested against a stand-in session. That run is why this is a draft.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Testing

  • tests/python/examples/televiz: 652 passed on x86_64 Linux (Ubuntu 24.04, Python 3.12) with a CUDA GPU. The view's tests use a stand-in session.
  • make current-docs passes with no warnings.
  • Each shipped config passes --check, and synthetic.yaml runs with --mode none.
  • SKIP=check-copyright-year pre-commit run --all-files passes.
  • Not yet run in a headset or in the desktop window.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the linter and formatter with SKIP=check-copyright-year pre-commit run --all-files
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix/feature works (or explained why not)
  • I have signed off all my commits (git commit -s) per the DCO

🤖 Generated with Claude Code

junjeechao and others added 4 commits December 1, 2026 16:37
The picture was always the camera's field of view on a plane that follows
the operator's position. A config can now say where it sits in the keys of
camera_viz's placements: lock_mode (gimbal, world, lazy, head), distance,
size and offsets. camera_viz's own strategies do the placing, run in a
frame that turns with the camera, so that a picture of a given size looks
smaller from farther away and a recenter seats it anew.

gimbal with no size is the default and is what the plane did before.
render.distance_m becomes placement.distance.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
The controllers now change the view live, as in the camera_viz example:
the lock mode, mono or stereo, the picture's size and height, the gap
between the two eyes' planes, and a reset to the config's values. Each is
an action or an axis on the stream every input path posts to, bound in
the config's bindings table: none takes a binding away, and an optional
hold gates them all. The shipped configs preset camera_viz's layout.

What a change does to a size, a height or a gap is camera_viz's own code,
and a change shows on its head-locked panel in the headset.

The view's own lazy-lock goes: lock_mode lazy is the one lazy rule. The
guide gains a Controller bindings section with the figure.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
…always

A switch between mono and stereo showed only with the next camera image.
The gap between the eyes' planes is handed to the layer only with
camera_viz's bound on it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
…g reason

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Preview deployed: https://NVIDIA.github.io/IsaacCapture/preview/pr-1685/

Built from commit f6087d2. It may take a minute for the updated preview to appear.

The placement and view-control tests import camera_viz's placements and
controls, which use scipy's Rotation and draw their panel with PIL. The
tests' own environment listed neither, so they failed to import in CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>

This branch was successfully deployed

1 active deployment
dev — f6087d21 Deployed Dec 2, 2026 by junjeechao via publish-wheel #7726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants