Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ To upload images to a PR -- simply drag and drop an image while in edit mode and
## Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment `run-ci` on the pull request, or `run-ci ovstage` to include kitless OVStage rendering tests for that run.
Subsequent pushes and plain `run-ci` comments do not run OVStage tests unless you comment `run-ci ovstage` again.
comment `run-ci` on the pull request. Kitless OvStage rendering tests run with every activated build.
`run-ci ovstage` still works and is the same as `run-ci`.

- [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format`
Expand Down
22 changes: 12 additions & 10 deletions .github/actions/_lib/test_performance_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ def test_ci_activation_and_runner_selection() -> None:
paginated = [[{"event": "commented"}], [{"event": "labeled", "actor": None}, _labeled("isaaclab-bot[bot]")]]
ignored = [[_labeled("github-actions[bot]"), {"event": "commented", "actor": {"login": "human"}}]]
cases = [
("push", "push", "", "", [], True, True, False, True),
("actions bot", "pull_request", "synchronize", "", ignored, False, False, True, False),
("removed human label", "pull_request", "synchronize", "", [removed_label], False, True, True, False),
("paginated bot label", "pull_request", "synchronize", "", paginated, False, True, True, False),
("API error", "pull_request", "synchronize", "", [], True, False, True, False),
("explicit rerun", "pull_request", "labeled", "ci:run-docker", [], True, True, True, False),
("ovstage rerun", "pull_request", "labeled", "ci:run-ovstage", [], True, True, True, True),
("other label", "pull_request", "labeled", "triage", [], True, True, False, False),
("push", "push", "", "", [], True, True, False),
("actions bot", "pull_request", "synchronize", "", ignored, False, False, True),
("removed human label", "pull_request", "synchronize", "", [removed_label], False, True, True),
("paginated bot label", "pull_request", "synchronize", "", paginated, False, True, True),
("API error", "pull_request", "synchronize", "", [], True, False, True),
("explicit rerun", "pull_request", "labeled", "ci:run-docker", [], True, True, True),
("ovstage rerun", "pull_request", "labeled", "ci:run-ovstage", [], True, True, True),
("other label", "pull_request", "labeled", "triage", [], True, True, False),
]
data = {
"script": activation["with"]["script"],
Expand All @@ -58,7 +58,7 @@ def test_ci_activation_and_runner_selection() -> None:
const AsyncFunction = Object.getPrototypeOf(async function() {}).constructor;
(async () => {
for (const row of input.cases) {
const [name, eventName, action, label, pages, error, activated, expectedCancel, expectedOvstage] = row;
const [name, eventName, action, label, pages, error, activated, expectedCancel] = row;
const outputs = {};
const context = {eventName, payload: {action, pull_request: {number: 42}, label: {name: label}},
repo: {owner: 'owner', repo: 'lab'}};
Expand All @@ -84,8 +84,10 @@ def test_ci_activation_and_runner_selection() -> None:
evaluate(input.ovstage),
],
[activated ? ['self-hosted', 'gpu'] : ['ubuntu-latest'],
activated, !activated, expectedCancel, expectedOvstage],
activated, !activated, expectedCancel, true],
name);
needs.build.result = 'failure';
assert.equal(evaluate(input.ovstage), false, name + ': failed build');
}
})();
"""
Expand Down
12 changes: 0 additions & 12 deletions .github/test-subsets/postmerge-rendering.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ rendering-correctness = [
rendering-correctness-kitless-legacy = [
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_newton_warp.py::test_rendering[legacy-cartpole-newton-newton_warp]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_newton_warp.py::test_rendering_optix[legacy-rendering_scene-newton-newton_warp]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-cartpole-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_ovphysx_newton_warp.py::test_rendering[legacy-cartpole-ovphysx-newton_warp]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_ovphysx_ovrtx.py::test_rendering[legacy-cartpole-ovphysx-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_cloth-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_soft-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_cable-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-cartpole-newton-ovrtx-async]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_ovphysx_ovrtx.py::test_rendering[legacy-cartpole-ovphysx-ovrtx-async]",
]

rendering-correctness-kitless-ovstage = [
Expand All @@ -42,11 +35,6 @@ ovrtx-cache-warm = [
"source/isaaclab_tasks/test/contrib/test_contrib_environments_kitless.py::test_contrib_environments_kitless[IsaacContrib-Cartpole-Camera-Showcase-Direct]",
"source/_isaaclab_testing/test/rendering/test_rendering_kit.py::test_rendering[rendering_scene-newton-isaac_rtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kit.py::test_rendering[rendering_scene-physx-isaac_rtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-cartpole-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_ovphysx_ovrtx.py::test_rendering[legacy-cartpole-ovphysx-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_cloth-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_soft-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[legacy-franka_cable-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[ovstage-cartpole-newton-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_ovphysx_ovrtx.py::test_rendering[ovstage-cartpole-ovphysx-ovrtx]",
"source/_isaaclab_testing/test/rendering/test_rendering_kitless_newton_ovrtx.py::test_rendering[ovstage-franka_cloth-newton-ovrtx]",
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/arm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ jobs:
isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }}
isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }}
ci-marker: arm_ci
# ovstage rendering cases are post-merge only on x86 as well.
test-k-expr: not ovstage
test-jobs: "4"
extra-pip-packages: "${{ steps.ov_pins.outputs.ovrtx }} ${{ steps.ov_pins.outputs.ovphysx }}"
warp-cache: ${{ github.event_name == 'push' && 'save' || 'restore' }}
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ jobs:
container-name: isaac-lab-rendering-correctness-test
omni-github-test-type: rendering-correctness

# Separate jobs preserve the required legacy check name when skipped and let ovstage use its own trigger.
# Keep the existing required Newton-Warp check name; OVRTX runs in the OvStage job below.
test-rendering-correctness-kitless-legacy:
name: "rendering-correctness-kitless (legacy)"
runs-on: [self-hosted, gpu]
Expand Down Expand Up @@ -934,9 +934,7 @@ jobs:
wheelhouse-packages: ${{ env.USE_OVPHYSX_WHEELHOUSE == 'true' && 'ovphysx' || '' }}
include-files: >-
test_rendering_kitless_newton_newton_warp.py,
test_rendering_kitless_newton_ovrtx.py,
test_rendering_kitless_ovphysx_newton_warp.py,
test_rendering_kitless_ovphysx_ovrtx.py
test_rendering_kitless_ovphysx_newton_warp.py
test-k-expr: legacy
test-node-ids-file: ${{ github.event_name == 'push' && '.github/test-subsets/postmerge-rendering.toml' || '' }}
test-node-ids-key: ${{ github.event_name == 'push' && 'rendering-correctness-kitless-legacy' || '' }}
Expand All @@ -946,16 +944,14 @@ jobs:
container-name: "isaac-lab-rendering-correctness-kitless-legacy-test"
omni-github-test-type: "rendering-correctness-kitless-legacy"

# Post-merge by default; pull requests opt in per run with ``run-ci ovstage``.
# OvStage is the only OVRTX scene path and runs on every activated PR build.
test-rendering-correctness-kitless-ovstage:
name: "rendering-correctness-kitless (ovstage)"
runs-on: [self-hosted, gpu]
timeout-minutes: 120
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
needs: [build, config]
if: >-
(github.event_name != 'pull_request' || github.event.label.name == 'ci:run-ovstage') &&
needs.build.result == 'success'
if: needs.build.result == 'success'
env:
USE_OVPHYSX_WHEELHOUSE: ${{ needs.config.outputs.ovphysx_wheelhouse_image != '' && ((github.event_name == 'pull_request' && github.base_ref == github.event.repository.default_branch && github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch)) }}
steps:
Expand Down
19 changes: 9 additions & 10 deletions docs/source/api/lab_ov/isaaclab_ov.cloner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Clone contexts route assets to the representation that owns their copies:

* :class:`~isaaclab_ov.cloner.OvPhysxReplicateContext` prepares native physics replication.
* :class:`~isaaclab_ov.cloner.OvrtxReplicateContext` prepares copies for an OVRTX engine's internal scene.
* :class:`~isaaclab_ov.cloner.OvrtxReplicateContext` acquires the OVRTX engine and routes its copies to OvStage.
* :class:`~isaaclab_ov.cloner.OvstageReplicateContext` prepares copies for simulation-owned OVStage resources,
independently of their consumers. An OVRTX engine borrowing that stage does not clone it again.

Expand All @@ -15,16 +15,15 @@ Clone contexts route assets to the representation that owns their copies:
Clone routing
-------------

``OvrtxReplicateContext.prepare`` in ``isaaclab_ov/cloner/replicate.py`` selects the representation
before native resource initialization. Without environment overrides, OVRTX uses native cloning with
both OVPhysX and Newton. OVPhysX also retains native physics cloning.
``OvrtxReplicateContext.prepare`` in ``isaaclab_ov/cloner/replicate.py`` acquires a simulation-owned
OvStage before constructing its OVRTX borrower. OVRTX always uses OvStage for population, cloning,
queries, and attribute writes, with either Newton or OVPhysX physics. The renderer-owned scene API,
deprecated in OVRTX 0.4, is no longer used. ``ovrtx_replicate`` is deprecated; use
:func:`~isaaclab_ov.cloner.ovstage_replicate` for native rendering copies.

``ISAAC_LAB_OVRTX_USE_OVSTAGE=1`` selects independent OVStage rendering with either physics backend;
``0`` selects native OVRTX cloning. Set the flag before creating the simulation. Reset retains the
selected route. This flag alone never enables physics/rendering stage sharing.

To share one OVStage with OVPhysX and OVRTX, set ``ISAAC_LAB_SHARE_OVSTAGE=1``. Sharing requires
OVPhysX and selects OVStage rendering regardless of ``ISAAC_LAB_OVRTX_USE_OVSTAGE``.
``ISAAC_LAB_OVRTX_USE_OVSTAGE`` is ignored and warns when set; remove it from launch scripts.
To share one OvStage with OVPhysX and OVRTX, set ``ISAAC_LAB_SHARE_OVSTAGE=1`` before creating
the simulation. Sharing requires OVPhysX; otherwise rendering uses an independent OvStage.

Sharing remains experimental and opt-in. It retains native physics cloning and populates complete
original worlds in one stage before OVPhysX attaches. ``OvstageReplicateContext`` also receives the
Expand Down
53 changes: 10 additions & 43 deletions docs/source/concepts/renderers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -397,52 +397,19 @@ token per instance; markers without that ownership information remain shared.

.. _renderers-async-data-flow:

Asynchronous Rendering
----------------------
OvStage rendering and migration
-------------------------------

:attr:`~isaaclab_ov.renderers.OVRTXRendererCfg.async_rendering` returns a camera's previous capture
while rendering its next image. This allows rendering to overlap simulation and Python work.
The first capture, including after reset, waits for a fresh image. The ovstage path stays synchronous.
OVRTX renders synchronously through OvStage. Scene writes finish and the stage ordinal is sealed
before each render; camera outputs contain the current capture.

Latency is one capture, not necessarily one physics or control step. State observations remain
current, so enabling this option changes the policy's observation timing; training may need to
account for that delay. Physics and policy computation may also use the GPU.
The renderer-owned scene path, deprecated in OVRTX 0.4, and its asynchronous pipeline have been
removed. :attr:`~isaaclab_ov.renderers.OVRTXRendererCfg.async_rendering` is deprecated and has no
effect: setting it to ``True`` emits a :class:`FutureWarning` and still renders synchronously.
Remove this override from existing configurations. ``OVRTXRenderer.drain_pending_renders`` is deprecated
and does nothing; remove its calls. OVRTX no longer produces delayed-image ``capture`` metadata.
Use the camera's current pose and intrinsic fields with its rendered image.

For a camera capturing once per environment step, steady-state operation is:

.. code-block:: text

Synchronous: physics k -> submit image k -> wait/read image k -> policy
Asynchronous: physics k -> submit image k -> wait/read image k-1 -> policy
| |
+---- image k renders ------------+--> physics k+1

The first image is returned immediately after priming and repeated once on the next capture.

Each camera owns its pending observations. Reading camera A never changes camera B's pixels or
metadata, even when they share a native render submission. Reset discards that camera's pending
observations. A partial environment reset re-primes the whole tiled camera product, without
invalidating other cameras.

Live fields such as ``camera.data.pos_w`` and ``camera.data.intrinsic_matrices`` remain current.
Use the capture metadata when pairing delayed pixels with a pose or calibration, for example
when deprojecting depth:

.. code-block:: python

data = camera.data
depth = data.output["distance_to_image_plane"]
capture = data.info["distance_to_image_plane"]["capture"]
position, orientation = capture["pos_w"], capture["quat_w_world"]
intrinsics, frame = capture["intrinsic_matrices"], capture["frame"]

Capture metadata remains unchanged on later captures. Direct renderer callers use
:meth:`~isaaclab.renderers.BaseRenderer.prepare_capture` before submitting a capture and
:meth:`~isaaclab.renderers.BaseRenderer.read_output` to publish it.

SDP fills renderer-owned transform and geometry buffers, including deformable meshes, particles,
and cables. Two buffers alternate per write and are reused only after OVRTX consumes them.
Physics can therefore update its live arrays while the previous capture renders.

Architecture Overview
---------------------
Expand Down
5 changes: 1 addition & 4 deletions docs/source/concepts/sensors/camera.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,14 @@ capture renders every environment. The camera calls each processor with ``env_ma
environments due for the capture, whose frame and timestamp advance. Stateful processors (frame stacking, temporal
filters, video generation) use it to advance only those rows.

With asynchronous rendering, images may be delayed or repeated, and processors receive ``env_mask=None``.
Use synchronous rendering (``async_rendering=False``) for processors that advance frame history.

Post-render image signal processing
-----------------------------------

:attr:`~sensors.CameraCfg.tensor_processors` optionally computes outputs from the renderer's outputs.
The shipped processor is PPISP (Physically Plausible Image Signal Processing), which converts the
scene-linear ``rgb_hdr`` output through responsivity, exposure, vignetting, color correction, and a
camera response function into ``rgb`` and ``rgba``. The camera requests ``rgb_hdr`` from the renderer.
PPISP is stateless and supports asynchronous rendering with both ``PpispProcessorCfg`` and deprecated ``isp_cfg``.
PPISP is stateless.

:class:`~isaaclab_ppisp.PpispProcessorCfg` accepts :class:`~isaaclab_ppisp.PpispCfg` for explicit
coefficients or coefficients imported from a USD camera, or :class:`~isaaclab.sensors.camera.CameraISPMode` to
Expand Down
20 changes: 3 additions & 17 deletions docs/source/developer-tools/benchmarking/run_benchmarks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,9 @@ From a source installation, run:
--output_path ./benchmark_results \
physics=isaacsim_physx

OVRTX camera tasks can compare synchronous against asynchronous (pipelined) rendering through a
Hydra override on the camera's renderer configuration:

.. code-block:: bash

uv run --extra ovrtx isaaclab benchmark runtime \
--task Isaac-Cartpole-Camera-Direct \
--num_envs 256 \
--warmup_steps 30 \
--num_steps 200 \
--benchmark_formatter schema,omniperf \
--output_path ./results/ovrtx_async \
physics=newton_mjwarp renderer=ovrtx presets=rgb \
env.scene.tiled_camera.renderer_cfg.async_rendering=True

Only the OVRTX renderer implements asynchronous rendering.
See :ref:`renderers-async-data-flow` for how states, observations, and frames line up in each mode.
OVRTX camera tasks render synchronously through OvStage. The former
``env.scene.tiled_camera.renderer_cfg.async_rendering=True`` override no longer enables pipelining.
See :ref:`renderers-async-data-flow` for migration details.

Read the result
~~~~~~~~~~~~~~~
Expand Down
1 change: 0 additions & 1 deletion scripts/benchmarks/nsys_trace.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@
"OVRTXRenderer.render",
"OVRTXRenderer.render_batch",
"OVRTXRenderer.read_output",
{"module": "isaaclab_ov.cloner.replicate", "function": "ovrtx_replicate"},
{"module": "isaaclab_ov.stage", "function": "ovstage_replicate"},
{"module": "isaaclab_ov.stage", "function": "export_stage_to_string"}
]
Expand Down
Empty file.

This file was deleted.

This file was deleted.

Loading
Loading