Skip to content
Merged
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
10 changes: 10 additions & 0 deletions docs/source/api/lab_fovi/isaaclab_fovi.sensors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ isaaclab_fovi.sensors
FoveatedCameraCfg
FoveatedNewtonCamera
FoveatedRTXCamera
ViewerGazeControls


Foveated Camera
Expand Down Expand Up @@ -39,3 +40,12 @@ Constructing :class:`FoveatedCamera` returns one of the following implementation
.. autoclass:: FoveatedRTXCamera
:members:
:show-inheritance:

Viewer Controls
---------------

Each foveated camera adds these controls to every Newton viewer window, below the Camera Source selector while it
is the window's camera source.

.. autoclass:: ViewerGazeControls
:members: cmf_a_values
29 changes: 19 additions & 10 deletions docs/source/experimental-features/foveated_camera.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ several minutes with a cold shader cache:

uv run --extra fovi [--extra ovrtx] isaaclab example foveated-camera [renderer=ovrtx]

The Newton viewer shows the retina. A panel shows the fisheye on a curved viewing sphere beside a magnified retina:
the green lens boundary follows the camera mount, and the blue gaze circle and sampling grid show the magnified
retina's coverage. Use WASD or the arrow keys to move and Q/E to lower or raise the camera. I/K tilt the gaze and J/L
pan it; O/U magnify the panel's retina and zoom back out; H shows or hides the viewer controls. Pass
``--target power_drill`` to start fixating the drill, or ``env.scene.eye.cmf_a_deg=1000`` for a matched, nearly
uniform retina.
The Newton viewer shows the camera's image, the foveated camera's cortical view (see `Sampling`_), covered at launch by
a window that shows the fisheye on a curved viewing sphere beside that view: the green lens boundary follows the camera
mount, and the blue gaze circle and sampling grid show the retina's coverage. Use WASD or the arrow keys to move the
camera and Q/E to lower or raise it. Drag with the left mouse button, or press I/K and J/L, to steer the gaze. Below
the side panel's Camera Source selector, gaze sliders follow the gaze and set it, and on Newton a foveation slider
steps the CMF constant, through other stops with ``--cmf_a_values 0.2,2,20`` plus the camera's own. H shows or hides
the viewer controls. Pass ``--target power_drill`` to start fixating the drill.

.. figure:: ../_static/overview/sensors/foveated_camera_overview.jpg
:alt: A retina behind a 180-degree fisheye lens on the viewing sphere, and its rendered images at two fixations.
Expand Down Expand Up @@ -52,7 +53,8 @@ The default ``foveated_style="warped_cartesian_as_grid"`` warps an :math:`N \tim
r(\rho) = a\left[\left(1 + \frac{r_{\max}}{a}\right)^{\rho} - 1\right],

where :math:`r_{\max}` is half the retina's field of view, and the camera publishes the lattice as an upright
``(num_envs, N, N, channels)`` image.
``(num_envs, N, N, channels)`` image: the foveated camera's cortical view, laid out by cortical distance rather than
by angle.

``foveated_style="isotropic"`` instead places rings evenly in :math:`w`, and gives each ring as many samples as keep
neighbours about equally far apart in every direction:
Expand Down Expand Up @@ -101,9 +103,16 @@ Use :attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` to shrink this wi
:attr:`~sensors.FoveatedCameraCfg.image_rotation_deg` to compensate for mount roll.

Call ``camera.set_gaze_angles(angles)`` with shape ``(num_envs, 2)`` in tilt, pan order and in degrees.
Positive tilt looks up and positive pan looks left. :meth:`~sensors.FoveatedCamera.get_world_poses`
reports the mount pose. Enable :attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` to zero rays that fall
outside the physical image as the gaze moves.
Positive tilt looks up and positive pan looks left. While a foveated camera is a Newton viewer window's camera
source, tilt and pan sliders for it appear below the Camera Source selector, in the Camera Sensor section; they
follow its gaze and set it in every environment, and a gaze action overrides them each step. A foveation slider
beside them switches the CMF constant among :attr:`~sensors.ViewerGazeControls.cmf_a_values`, which can be assigned
to change the stops, with :meth:`~sensors.FoveatedCamera.set_cmf_a`, which re-samples the retina in place. That
works on Newton for styles whose sample count does not depend on the constant, the warped-Cartesian and ``_fixn``
isotropic ones; OVRTX and Isaac RTX read their lens textures once, so there the slider shows the constant as fixed.
:meth:`~sensors.FoveatedCamera.get_world_poses` reports the mount pose. Enable
:attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` to zero rays that fall outside the physical image as the gaze
moves.

Pooling
-------
Expand Down
Loading
Loading