Skip to content

Add binocular gaze with version and vergence, and a stereo example - #7

Closed
nblauch wants to merge 1 commit into
feat/isaaclab-fovi-gaze-modesfrom
feat/isaaclab-fovi-stereo-vergence
Closed

nblauch wants to merge 1 commit into
feat/isaaclab-fovi-gaze-modesfrom
feat/isaaclab-fovi-stereo-vergence

Conversation

@nblauch

@nblauch nblauch commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Description

Stacked on #6 (gaze modes), which is stacked on isaac-sim/IsaacLab#9074. This PR targets the gaze-modes branch, so its diff shows only this step. It will be opened against isaac-sim/IsaacLab:main once the PRs below it merge.

Adds binocular gaze to isaaclab_fovi, after FOVI-Dex's stereo head: two foveated eyes on one body fixate a point together, with hybrid gaze turning the head after them. A foveated-stereo example shows it.

Binocular gaze (isaaclab_fovi.mdp)

  • BinocularGazeActionCfg moves both eyes with three actions: the version, their shared line of sight (tilt, pan), and the vergence, the angle between their lines of sight. Each eye turns from the version by half the vergence, toward the other eye, in the plane that holds the version and the baseline, so the two lines of sight always meet; the farther the fixation, the smaller the vergence.
  • The version moves as a single camera's gaze does in "software", "physical" or "hybrid" gaze (Add physical, hybrid and dual gaze to isaaclab_fovi #6); the vergence always turns the retinas. Both are in field radii, and the vergence stays between zero (parallel) and vergence_limit.
  • binocular_gaze_state observes the version, the vergence and their velocities.
  • binocular_gaze_teacher_labels labels the actions that fixate a point with both eyes: the version bisects the eyes' lines of sight to it and the vergence is their angle. The decomposition is exact, since the two lines of sight are symmetric about their bisector.
  • The eyes need parallel optical axes, the same retina, and a renderer that turns their poses by the gaze (Newton or OVRTX). One Warp kernel steps every mode.

Stereo head (isaaclab_fovi.assets). PAN_TILT_STEREO_OFFSETS places two eyes 6.5 cm apart on the pan-tilt mount's tilting link.

Example. isaaclab example foveated-stereo steps both eyes with the teacher's labels between four objects 0.4 m to 3.6 m away, in hybrid gaze on MJWarp. The viewer shows the left eye; its camera menu switches to the right eye or an overview. Headless, both lines of sight end within 1 mm of every object, and the vergence follows the distance, from 1° at 3.6 m to 10° at 0.4 m.

Docs. A "Binocular gaze" section on the Foveated Camera page, with a figure of the example (below), and API entries. Like the foveated camera's, the example lives in examples/sensors and is documented on the experimental page, not the Demos page.

Binocular gaze

Top: both eyes' 128 × 128 images at the end of each fixation. The fixated object sits in both foveas, while nearer or farther objects fall in different places in the two eyes. Below: the version jumps to each object while the head turns after it, and the vergence follows the object's distance. Hybrid gaze holds the version's direction rather than a point, and turning the head moves the eyes, so for near objects the teacher keeps adjusting the version and vergence while the head turns.

Script cases. The foveated-stereo example is declared in Isaac Lab's standalone-script cases with its fixed MJWarp physics and the Newton viewer. isaac-sim#9074 does the same for foveated-camera.

Type of change

  • New feature (non-breaking change which adds functionality)

Validation

  • Simulator-free: 84 cases under source/isaaclab_fovi/test, 4 of them new. They check that the lines of sight stay in one plane with the baseline off the optical axis and meet at the vergence's angle, the vergence's limits, hybrid version with the head following, the teacher's labels for a point ahead and one behind, and the config checks.
  • One new Newton render case, test_binocular_gaze_fixates_a_near_point_with_both_eyes, steps the stereo head with the teacher's labels toward a point 0.4 m away and 15° to the left. It checks that both eyes' optical axes pass within 1 mm of the point, that the head carries the version and the vergence matches the point's distance, and that a reset restores parallel lines of sight. Flipping the vergence's direction in the kernel fails it and the vergence unit test. All render cases pass (the 3 OptiX cases skip here, as on Add isaaclab_fovi foveated camera sensors and active-gaze camera tasks isaac-sim/IsaacLab#9074).
  • The standalone-script smoke test launches both foveated examples through the isaaclab CLI.
  • The docs build passes with warnings as errors.

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

@nblauch
nblauch requested a review from ooctipus as a code owner November 20, 2026 01:08
@nblauch
nblauch force-pushed the feat/isaaclab-fovi-stereo-vergence branch from 350556e to d03a355 Compare November 20, 2026 01:10
@nblauch
nblauch added this pull request to stack #8 November 20, 2026 01:15
@nblauch
nblauch force-pushed the feat/isaaclab-fovi-stereo-vergence branch from d03a355 to 5cb9d26 Compare November 20, 2026 03:12
@nblauch
nblauch force-pushed the feat/isaaclab-fovi-stereo-vergence branch 2 times, most recently from 74f58a8 to 668b28b Compare November 23, 2026 22:27
@nblauch
nblauch force-pushed the feat/isaaclab-fovi-stereo-vergence branch from 668b28b to db82af1 Compare November 23, 2026 23:16
@nblauch nblauch changed the title Add binocular gaze with version and vergence, and a stereo demo Add binocular gaze with version and vergence, and a stereo example Nov 23, 2026
@nblauch
nblauch force-pushed the feat/isaaclab-fovi-stereo-vergence branch from db82af1 to 1a840c1 Compare November 24, 2026 00:49
BinocularGazeActionCfg moves two foveated cameras on one body with three
actions, as fovi-dex's stereo head does: the version, their shared line
of sight (tilt, pan), and the vergence, the angle between their lines of
sight. Each eye turns from the version by half the vergence toward the
other, in the plane of the version and the baseline, so the lines of
sight always meet. The version moves as a single camera's gaze does in
software, physical or hybrid gaze; the vergence always turns the retinas.
One Warp kernel steps every mode.

binocular_gaze_state observes the version, the vergence and their
velocities. binocular_gaze_teacher_labels labels the actions that fixate
a point with both eyes: the version bisects the eyes' lines of sight to
it and the vergence is their angle, an exact decomposition.

PAN_TILT_STEREO_OFFSETS places two eyes 6.5 cm apart on the pan-tilt
mount's tilting link. The foveated-stereo example (isaaclab example
foveated-stereo) steps them with the teacher's labels between objects
from 0.4 m to 3.6 m, in hybrid gaze on MJWarp; both lines of sight end
within a millimetre of each object.

The experimental Foveated Camera page gains a Binocular gaze section
with a figure of the example. The tests cover the vergence geometry,
hybrid version, the teacher and the config checks, and one Newton case
fixates a near point with both eyes through an environment.
@nblauch

nblauch commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Moved upstream as isaac-sim#9183 (stacked on isaac-sim#9181), rebased onto main after isaac-sim#9074 merged.

@nblauch nblauch closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant