Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/source/_static/televiz-controls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/source/_static/televiz-controls.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
185 changes: 154 additions & 31 deletions docs/source/references/televiz.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ First-session checklist
- **Head movement:** turn your head; the plane stays where it is.
- **Leaning:** lean or step sideways; the plane follows you, with no parallax. The view is
stabilized in orientation only.
- **Recenter:** press space in the terminal; the plane comes back in front of you. With
controllers, hold the left grip and press ``X``, which ``synthetic.yaml`` binds.
- **Recenter:** press space in the terminal, or click the right controller's stick; the plane
comes back in front of you.
- **Controllers:** push the left stick to resize the plane; :ref:`televiz-controls` lists the
rest.
- **Restart:** press ``Ctrl+C``, rerun, and reconnect if needed.

If a check fails, see :ref:`televiz-troubleshooting`.
Expand Down Expand Up @@ -297,32 +299,130 @@ Display modes
* - ``none``
- No display. The camera and the tracker run and print their rates.

The plane is ``render.distance_m`` in front of the viewer, 2 m by default.
.. _televiz-placement:

.. _televiz-recenter:
Placement
^^^^^^^^^

Recenter
^^^^^^^^
Where the picture sits is the ``placement`` section, in the keys of the ``display.placements``
block of :doc:`camera_viz <camera_streaming>`. Its ``lock_mode`` says how the picture follows
you. In every mode but ``head`` the picture turns with the camera:

Recentering puts the picture back in front of you. Two inputs do it:
.. list-table::
:header-rows: 1
:widths: 16 84

- **Space**, in the terminal the example runs in or in the window of ``--mode window``.
- **A controller button**, when the config binds one. Nothing is bound by default, because
controllers worn for teleoperation already give their buttons a meaning.
* - Mode
- Behavior
* - ``gimbal``
- The default. The picture follows your position: turn your head and it stays where it is,
lean or walk and it comes with you.
* - ``world``
- The picture stays where it was seated. Lean or walk and you move against it.
* - ``lazy``
- As ``world``, and when you have looked away from the picture it glides back in front of
you. That also happens when the camera turns and your head does not: the picture then
sits in front of you and no longer where the camera looks, until the next recenter. The
knobs are ``look_away_angle_deg``, ``reposition_distance``, ``reposition_delay_s`` and
``transition_duration_s``.
* - ``head``
- The picture stays in front of your eyes and nothing is stabilized, as in camera_viz.

The picture is ``distance`` metres away, 2 by default. With ``size`` left out it covers the
camera's field of view at any distance, so what it shows keeps its true angular size. With
``size: [width, height]`` in metres it is a screen of that size, which looks smaller from
farther away. A recenter seats the picture anew on the camera's axis.

.. _televiz-controls:

Controller bindings
^^^^^^^^^^^^^^^^^^^

In the headset the controllers retune the view live, without editing the YAML and restarting.
The configs in :code-dir:`configs/ <examples/televiz/configs>` come with the layout of
:ref:`camera_viz <camera-streaming-controls>` bound. The right hand changes how the picture
reads; the left, its size and height:

.. figure:: ../_static/televiz-controls.png
:alt: Televiz XR controller bindings: the left controller sets the picture's size and
height and resets the view; the right controller sets depth, lock mode, mono or
stereo, and recenters.
:width: 100%

Bindings at a glance. The table below is the same thing in words.

A bound action fires when its button is pressed while the ``hold`` input is held.
``configs/synthetic.yaml`` binds recenter to the left primary button (``X``) while the left grip
is held; copy its ``bindings`` section into your own config:
.. list-table::
:header-rows: 1
:widths: 22 18 60

* - Input
- Binding
- Effect
* - Right stick ←/→
- ``stereo_gap``
- The gap between the two eyes' planes (``placement.stereo_plane_distance_cm``). Widening
it sets the whole scene farther back. Stereo pictures only.
* - Right stick click
- ``recenter``
- Puts the picture back in front of you.
* - ``A``
- ``lock_mode``
- Cycles the lock mode: ``world`` → ``head`` → ``gimbal`` → ``lazy``.
* - ``B``
- ``mono_stereo``
- Shows both eyes the left image, or each eye its own again. Stereo pictures only.
* - ``Y``
- ``reset``
- Puts the view back to the YAML's values: lock mode, size, height, gap and stereo.
* - Left stick ←/→
- ``size``
- The picture's size, with its aspect ratio kept.
* - Left stick ↑/↓
- ``height``
- The picture's height (``placement.offset_y``).

``X`` is free: it cycles the shape in camera_viz, and this example has one. A change shows in the
log and on a head-locked panel in the headset that hides again after about 2.5 seconds. Nothing is
written back to the YAML.

The bindings are the ``bindings`` section. Each line gives one function its input, and the word
``none`` takes it away:

.. code-block:: yaml

bindings:
hold: left_squeeze
recenter: left_primary # hold the left grip and press X
recenter: right_thumbstick # click
lock_mode: right_primary # A
mono_stereo: right_secondary # B
reset: left_secondary # Y
size: left_thumbstick_x
height: left_thumbstick_y
stereo_gap: right_thumbstick_x

A button is named by role: ``left_`` or ``right_`` followed by ``squeeze``, ``trigger``,
``primary``, ``secondary`` or ``thumbstick``, and ``left_menu``. A stick axis is ``left_`` or
``right_`` followed by ``thumbstick_x`` or ``thumbstick_y``.

Inputs are named by role: ``left_`` or ``right_`` followed by ``squeeze``, ``trigger``,
``primary``, ``secondary`` or ``thumbstick``, and ``left_menu``. The word ``none`` leaves an action
without a controller input.
.. note::

Controllers worn for teleoperation already give their buttons and sticks a meaning. In a
config for such a rig, leave the ``bindings`` section out, which binds nothing, or keep what
you need behind a held input: with ``hold: left_squeeze`` every binding acts only while the
left grip is held.

How fast a held stick changes its value, and whether the panel is shown, is the ``controls``
section; :ref:`televiz-configuration` lists its keys.

.. _televiz-recenter:

Recenter
^^^^^^^^

Recentering puts the picture back in front of you. Two inputs do it:

- **Space**, in the terminal the example runs in or in the window of ``--mode window``.
- **The controller input** bound to ``recenter``: a click of the right stick in the shipped
configs.

The view also recenters by itself onto the first tracked pose, and when the headset's own origin
jumps, which is what a recenter on the client looks like to the example.
Expand Down Expand Up @@ -354,6 +454,8 @@ February 25, 2026, which includes a restriction to NVIDIA Platforms; ``--accept-
it. This example's Apache-2.0 license does not apply to cuVSLAM. Read
:ref:`televiz-external-materials` before running the script.

.. _televiz-configuration:

Configuration
-------------

Expand Down Expand Up @@ -392,21 +494,29 @@ relative path is resolved against the config file's directory.
# world from the camera's IMU; 0 skips it, as
# does a camera without an IMU

placement:
lock_mode: gimbal # gimbal | world | lazy | head
distance: 2.0 # metres from the viewer
size: null # [width, height] in metres; null: the
# camera's field of view at that distance
offset_x: 0.0 # metres to the right of straight ahead
offset_y: 0.0 # metres up, both as the camera sees it
look_away_angle_deg: 45.0 # lazy: looking this far away from the picture
reposition_distance: 0.5 # or moving this many metres from its seat,
reposition_delay_s: 0.5 # for this long, brings it back
transition_duration_s: 0.3 # over this long
stereo_plane_distance_cm: 0.0
# the gap between the two eyes' planes,
# within -10..10

render:
distance_m: 2.0 # the plane's distance from the viewer
stereo: true # false: both eyes show the same image
composition: openxr # openxr: the runtime composites the plane
# builtin: the visualization module draws it,
# for a runtime that shows a native quad black

viewpoint:
recenter_on_first_pose: true
lazy_enabled: false # re-anchor the view once the head has drifted
# past a threshold below for lazy_delay_s
lazy_angle_deg: 1.0
lazy_translation_m: 0.10 # <= 0 ignores translation
lazy_delay_s: 0.3
lazy_transition_s: 0.1 # <= 0 snaps
auto_relatch: true # recenter when the headset's origin jumps
auto_recenter_threshold_m: 0.0
# recenter when the head stays farther than
Expand All @@ -417,10 +527,22 @@ relative path is resolved against the config file's directory.
anchor_eye: left # the eye placed at the camera's optical
# centre: left | right | midpoint

bindings:
hold: left_squeeze
bindings: # none: no controller input
hold: none # an input that must be held for the others
recenter: none
lazy_toggle: none
lock_mode: none
mono_stereo: none
reset: none
size: none
height: none
stereo_gap: none

controls:
hud: true # show a change on a panel in the headset
deadzone: 0.2 # a stick this near its centre is at rest
size_rate_m_per_s: 0.5 # what a stick held all the way changes
offset_rate_m_per_s: 0.5 # in a second
plane_distance_rate_cm_per_s: 2.0

pipeline:
stats_interval_s: null # seconds between statistics; --stats replaces it
Expand Down Expand Up @@ -558,8 +680,8 @@ A run is a pipeline of stages, each on its own thread, that hand each other the
OpenXR quad layer on a ``VizSession``; the desktop window draws the same plane itself.
- **The viewpoint**
(:code-file:`render/viewpoint.py <examples/televiz/python/isaaccapture_examples/televiz/render/viewpoint.py>`)
owns the one transform between the tracker's map and the headset's world. Recenter and
lazy-lock are the policies that change it.
owns the one transform between the tracker's map and the headset's world, which a recenter
changes.

Tests
-----
Expand Down Expand Up @@ -594,7 +716,8 @@ Next steps
----------

- :ref:`Connect a camera <televiz-cameras>` or replay your own stereo recording.
- :ref:`Bind a controller button <televiz-recenter>` to recenter.
- :ref:`Change what the controllers do <televiz-controls>`, or bind nothing beside a teleop
stack.
- Place feeds that need no tracking, or several cameras at once, with ``camera_viz``:
:doc:`/references/camera_streaming`.
- Read about the compositor underneath in :doc:`/development/visualization`.
Expand Down
21 changes: 18 additions & 3 deletions examples/televiz/configs/oakd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,30 @@ pose:
corrections:
gravity_align_s: 2.0 # hold the camera still for this long at start

# Where the picture sits, in the keys of camera_viz's `display.placements`.
placement:
lock_mode: gimbal # it follows your position and turns with the camera
distance: 2.0 # metres from you
# size: [3.2, 1.8] # metres; left out, it covers the camera's field of view

render:
distance_m: 2.0
stereo: false # one colour camera

viewpoint:
anchor_eye: midpoint # a mono picture sits between the eyes

# No controller button is bound here: space in the run terminal recenters.
# configs/synthetic.yaml shows how to bind one.
# What the controllers do: the layout of the camera_viz example. `none`
# takes one binding away, and without this section nothing is bound. With
# `hold: left_squeeze` every one of them needs the left grip held, which
# keeps them apart from a teleop stack that reads the same buttons.
bindings:
recenter: right_thumbstick # click: the picture back in front of you
lock_mode: right_primary # A: world -> head -> gimbal -> lazy
mono_stereo: right_secondary # B (a stereo picture only)
reset: left_secondary # Y: back to this file's values
size: left_thumbstick_x
height: left_thumbstick_y
stereo_gap: right_thumbstick_x # how far away the scene reads (a stereo picture only)

pipeline:
stats_interval_s: 5.0
21 changes: 18 additions & 3 deletions examples/televiz/configs/replay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,27 @@ pose:
corrections:
gravity_align_s: 0.0 # a recording carries no IMU

# Where the picture sits, in the keys of camera_viz's `display.placements`.
placement:
lock_mode: gimbal # it follows your position and turns with the camera
distance: 2.0 # metres from you
# size: [3.2, 1.8] # metres; left out, it covers the camera's field of view

render:
distance_m: 2.0
stereo: true

# No controller button is bound here: space in the run terminal recenters.
# configs/synthetic.yaml shows how to bind one.
# What the controllers do: the layout of the camera_viz example. `none`
# takes one binding away, and without this section nothing is bound. With
# `hold: left_squeeze` every one of them needs the left grip held, which
# keeps them apart from a teleop stack that reads the same buttons.
bindings:
recenter: right_thumbstick # click: the picture back in front of you
lock_mode: right_primary # A: world -> head -> gimbal -> lazy
mono_stereo: right_secondary # B
reset: left_secondary # Y: back to this file's values
size: left_thumbstick_x
height: left_thumbstick_y
stereo_gap: right_thumbstick_x # how far away the scene reads

pipeline:
stats_interval_s: 5.0
23 changes: 17 additions & 6 deletions examples/televiz/configs/synthetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,27 @@ pose:
corrections:
gravity_align_s: 0.0 # the drawn camera has no IMU

# Where the picture sits, in the keys of camera_viz's `display.placements`.
placement:
lock_mode: gimbal # it follows your position and turns with the camera
distance: 2.0 # metres from you
# size: [3.2, 1.8] # metres; left out, it covers the camera's field of view

render:
distance_m: 2.0
stereo: true

# A controller button for recenter, as an example to copy into a config of
# your own: the action fires when its button is pressed while `hold` is
# held. BindingsConfig in pipeline/config.py names the inputs.
# What the controllers do: the layout of the camera_viz example. `none`
# takes one binding away, and without this section nothing is bound. With
# `hold: left_squeeze` every one of them needs the left grip held, which
# keeps them apart from a teleop stack that reads the same buttons.
bindings:
hold: left_squeeze
recenter: left_primary # hold the left grip and press X
recenter: right_thumbstick # click: the picture back in front of you
lock_mode: right_primary # A: world -> head -> gimbal -> lazy
mono_stereo: right_secondary # B
reset: left_secondary # Y: back to this file's values
size: left_thumbstick_x
height: left_thumbstick_y
stereo_gap: right_thumbstick_x # how far away the scene reads

pipeline:
stats_interval_s: 5.0
21 changes: 18 additions & 3 deletions examples/televiz/configs/zed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,27 @@ pose:
corrections:
gravity_align_s: 2.0 # skipped with a warning on a ZED without an IMU

# Where the picture sits, in the keys of camera_viz's `display.placements`.
placement:
lock_mode: gimbal # it follows your position and turns with the camera
distance: 2.0 # metres from you
# size: [3.2, 1.8] # metres; left out, it covers the camera's field of view

render:
distance_m: 2.0
stereo: true

# No controller button is bound here: space in the run terminal recenters.
# configs/synthetic.yaml shows how to bind one.
# What the controllers do: the layout of the camera_viz example. `none`
# takes one binding away, and without this section nothing is bound. With
# `hold: left_squeeze` every one of them needs the left grip held, which
# keeps them apart from a teleop stack that reads the same buttons.
bindings:
recenter: right_thumbstick # click: the picture back in front of you
lock_mode: right_primary # A: world -> head -> gimbal -> lazy
mono_stereo: right_secondary # B
reset: left_secondary # Y: back to this file's values
size: left_thumbstick_x
height: left_thumbstick_y
stereo_gap: right_thumbstick_x # how far away the scene reads

pipeline:
stats_interval_s: 5.0
Loading
Loading