Skip to content

Add a camera renderer option for Newton Warp - #1707

Merged
xyao-nv merged 3 commits into
mainfrom
xyao/feature/camera-renderer-option
Nov 24, 2026
Merged

xyao-nv merged 3 commits into
mainfrom
xyao/feature/camera-renderer-option

Conversation

@xyao-nv

@xyao-nv xyao-nv commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Add ArenaEnvBuilderCfg.camera_renderer and --camera_renderer: isaac_rtx, the default, or newton_warp. With newton_warp, the embodiment cameras render with Newton's Warp ray tracer, which requires the Newton physics backend and tiled cameras.

Why this change?

Arena embodiment cameras always render through Isaac RTX, even when Newton simulates the scene. Isaac Lab 3.0 also provides NewtonWarpRendererCfg, which renders Newton's own model of the scene on the GPU. Arena had no way to select it.

Switching a camera's renderer_cfg alone is not enough. Newton Warp renders from the camera poses stored in the camera data. Isaac Lab refreshes those poses only when CameraCfg.update_latest_camera_pose is set, so the DROID wrist camera would stay where it started while the arm moves.

Upcoming Lab 3.1GA upgrade needs a kit-less codepath.

What changes?

  • CameraRenderer (isaaclab_arena/utils/camera_renderer.py) names the two renderers: ISAAC_RTX and NEWTON_WARP.
  • ArenaEnvBuilderCfg.camera_renderer selects the renderer; --camera_renderer sets it from the command line. In an Experiment Definition, set it under environment_builder by enum name, as for presets: camera_renderer: NEWTON_WARP.
  • ArenaEnvBuilder.build_env_cfg passes the choice to the embodiment camera rig with ArenaCameraCfg.set_renderer() before it reads the camera configuration. It asserts that Newton Warp runs with the Newton physics backend.
  • With Newton Warp, ArenaCameraCfg.get_cfg() gives every camera a NewtonWarpRendererCfg and sets update_latest_camera_pose = True. The camera keeps its segmentation and depth-clipping settings. Isaac RTX quality settings have no Newton Warp counterpart and are dropped. The source rig is unchanged, so a later build can select Isaac RTX again.
  • physics_backend_selection.rst documents the option.

Limitations:

  • Newton Warp renders tiled cameras only. The camera intrinsics variation makes a rig untiled, so it needs Isaac RTX; get_cfg() asserts with a message that says so.
  • Only the embodiment camera rig switches renderer.

Usage example

Before (embodiment cameras render with Isaac RTX):

python isaaclab_arena/evaluation/policy_runner.py --enable_cameras --presets newton ...

After:

python isaaclab_arena/evaluation/policy_runner.py --enable_cameras --presets newton \
    --camera_renderer newton_warp ...
environment_builder:
  presets: NEWTON
  camera_renderer: NEWTON_WARP

Validation

  • Ran test_gear_insertion_newton_warp_cameras_follow_the_arm locally on an RTX 6000 Ada. With the update_latest_camera_pose line removed, it fails and the wrist camera does not move, so the test catches a camera left at its start pose.
  • The Experiment YAML loader accepts camera_renderer: NEWTON_WARP and rejects newton_warp.
newton_warp_vs_isaac_rtx

Add ArenaEnvBuilderCfg.camera_renderer and --camera_renderer: isaac_rtx,
the default, or newton_warp. The builder passes the choice to the
embodiment camera rig, whose get_cfg() then renders every camera with
NewtonWarpRendererCfg and updates each camera pose from its link: Newton
Warp renders from the poses in the camera data, so a camera on a moving
link would otherwise stay where it started.

Newton Warp renders Newton's model of the scene, so it requires the
Newton physics backend, and it renders tiled cameras only.

Signed-off-by: Xinjie Yao <[email protected]>
Run the camera renderer tests inside a SimulationApp. The renderer configs
import Kit modules, so the tests failed when run on their own and passed
only after another test had started Isaac Sim.

Keep each camera's segmentation and depth-clipping settings when switching
it to Newton Warp, and name the camera intrinsics variation in the error
for untiled cameras. Document the Experiment Definition spelling,
camera_renderer: NEWTON_WARP.

Signed-off-by: Xinjie Yao <[email protected]>
@xyao-nv
xyao-nv marked this pull request as ready for review November 24, 2026 15:58
@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds a selectable renderer for embodiment cameras while keeping Isaac RTX as the default.

  • Arena runs can choose Newton Warp for embodiment cameras.

Tests were not run during this review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[CLI or Experiment configuration] --> B[ArenaEnvBuilderCfg.camera_renderer]
    B --> C{Newton Warp selected?}
    C -->|No| D[Keep Isaac RTX camera settings]
    C -->|Yes| E[Require Newton physics]
    E --> F[Require tiled cameras]
    F --> G[Copy camera settings to Newton Warp]
    G --> H[Enable latest camera poses]
    D --> I[Build embodiment scene]
    H --> I
Loading

Reviews (1) · Last reviewed commit: "Address review of the Newton Warp camera..." · Reviewed by Greptile

Comment thread isaaclab_arena/utils/cameras.py Resolved
Comment thread isaaclab_arena/utils/cameras.py Resolved
@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR adds ArenaEnvBuilderCfg.camera_renderer and --camera_renderer, so the embodiment cameras can render with Newton Warp instead of Isaac RTX. ArenaCameraCfg.get_cfg() swaps each camera's renderer config and sets update_latest_camera_pose, so cameras mounted on a link follow it. The change is small and well tested. My main question is whether Newton Warp really needs Newton physics.

Design, Boundaries & Scope

🟡 The PR treats Newton Warp as Newton-only in several places: the builder assert, the CLI help, the CameraRenderer.NEWTON_WARP and ArenaEnvBuilderCfg.camera_renderer docstrings, and the new docs section. Isaac Lab treats physics and renderer as separate choices and tests PhysX with Newton Warp. If that combination works in Arena too, this blocks it and documents a requirement that doesn't exist. Details are in the inline comment on arena_env_builder.py:163.

Findings

🔵 Improvement: isaaclab_arena/utils/cameras.py:141: _to_newton_warp_renderer_cfg copies five known settings with a hasattr/getattr/setattr loop. If a setting is missing, the loop skips it without any error. Asserting that the source is an IsaacRtxRendererCfg and passing the fields directly would make that impossible.

🔵 Improvement: isaaclab_arena/utils/cameras.py:53: nothing uses the new renderer property or its setter, so set_renderer alone would do.

The CI test jobs for this commit show as skipped or queued, so the new tests haven't run in CI on this head. I did not run the simulation tests myself.

Verdict

Minor fixes needed

@peterd-NV peterd-NV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Lab supports newton renderer with physx backend so we can probably relax that here too. Otherwise looks good.

Isaac Lab pairs Newton Warp with PhysX as well, so "renders Newton's model
of the scene, so it requires Newton physics" was wrong. Keep the assert but
give the Arena reason: with PhysX, Newton Warp leaves cameras on robot links
at their start pose and does not draw the DROID gripper.

Assert that a camera starts from IsaacRtxRendererCfg and pass its output
settings to NewtonWarpRendererCfg directly, instead of copying whichever
settings the source happens to have. Drop the unused renderer property;
set_renderer now takes a CameraRenderer and rejects plain strings.

Signed-off-by: Xinjie Yao <[email protected]>
@xyao-nv
xyao-nv merged commit 0942242 into main Nov 24, 2026
10 checks passed
cvolkcvolk added a commit that referenced this pull request Nov 26, 2026
Run the concept-page examples with `experiment_runner.py` and checked-in
Experiment YAMLs instead of `policy_runner.py`. Where these pages named
runner flags, name the matching `environment_builder` and `policy`
fields of a Run instead.

## Why this change?

Evaluation is moving from `policy_runner.py` to `experiment_runner.py`,
which reads each evaluation from an Experiment YAML file. The concept
pages still showed `policy_runner.py` commands with flags such as
`--num_envs`, `--placement_seed`, `--presets`, and
`--additional_table_objects`. `experiment_runner.py` accepts the shared
builder flags because it uses the Arena argument parser, but it ignores
them: each Run reads these values from its `environment_builder`
section. A reader who passes them to the Experiment Runner gets no error
and no effect.

Each page now includes the YAML file it runs with `literalinclude`, so
the page and the file cannot drift apart.

## What changes?

New Experiments under
`isaaclab_arena_environments/experiment_configs/concepts/`:

- `maple_table_additional_objects_experiment.yaml`
(`concept_object_and_robot_placement.rst`). The page shows a
`runs.additional_objects.environment.additional_table_objects=[...]`
override to try other objects.
- `maple_table_seeds_experiment.yaml` (`env_builder.rst` and
`pooled_placement.rst`). Its comments describe the seeds as main now
uses them: since #1467 the environment seed also fixes build-time and
run-time variation values. `pooled_placement.rst` now uses placement
seed 7 instead of 42; the value is arbitrary on that page.
- `droid_table_multi_object_placement_experiment.yaml`
(`homogeneous_and_heterogeneous_placement.rst`). The heterogeneous
example is the override
`runs.multi_object_placement.environment.mode=heterogeneous`.
- `kitchen_bench_robot_placement_experiment.yaml` (`solver.rst`), which
selects the graph spec
`kitchen_bench/kitchen_bench_lightwheel_pick_and_place.yaml` by its path
in `environment.type`.

`variations.rst` now lists, enables, and tunes variations with
`droid_pnp_variations_experiment.yaml`, which the variations quickstart
already uses. The separate "Configuring variations in an experiment
config" section goes away. Tuned control parameters are added with
`+runs.variations_demo.variations.<path>=<value>` overrides. The page
also says that a command-line override can't change an entry the YAML
writes as a dotted key, such as `light.hdr_image.enabled`: the plain
override fails with "Could not override", and the `+` form loses to the
YAML's dotted key in `overrides_from_dict`. The `--list_variations`
sample keeps main's `pick_up_object` listing and adds the per-Run header
that `experiment_runner.py` prints.

Other pages:

- `env_builder.rst`, `pooled_placement.rst`, and `variations.rst` name
`environment_builder.seed`, `placement_seed`, `solve_relations`, and
`resolve_on_reset` instead of the runner flags.
- The physics pages name `environment_builder.presets` (`PHYSX` or
`NEWTON`). `physics_backend_selection.rst` says the Environment Runner
supports only PhysX, because `environment_runner.py` rejects `--presets
newton` and Newton environments.
- The Camera renderer section that #1707 added to
`physics_backend_selection.rst` names
`ArenaEnvBuilderCfg.camera_renderer` and keeps its Experiment YAML,
without the `policy_runner.py` command.
- `policy/index.rst` describes how `policy.type` selects a policy by
registered name or class path. It still says that `policy_runner.py`
turns each configuration field into a flag, and that `device` and
`num_envs` defaults must match its shared flags. That rule does not
apply to `experiment_runner.py`, which does not pass those flags to the
policy config.
- `in_process_policies.rst` shows the `replay` policy as a Run's
`policy` section. A Run with `replay` can leave out `rollout_limit`,
because the Experiment Runner uses the policy's episode length. A Run
with `zero_action` must set it.

`isaaclab_arena/tests/test_concept_experiment_configs.py` loads every
Experiment under `experiment_configs/concepts/`, and loads each one
again with the override its page documents. It also loads
`droid_pnp_variations_experiment.yaml` with the tuned variation
overrides, and checks that the YAML enables the HDR image and
wrist-camera variations that those overrides tune. It runs without Isaac
Sim. It does not check variation paths, registered object names, or
whether the graph spec builds, because those are resolved only when the
environment is built.

## Validation

Rebased onto main at `9226352302` (2026-11-26):
`test_concept_experiment_configs.py` passes (9 tests) in the Arena
Docker container, and the docs build with `-W` passes.

Earlier rounds:

In the Arena Docker container, with the branch rebased onto main at
`c36daa6bb2`:

- Every Experiment the changed pages show composes with
`load_arena_experiment_from_config_file`, with and without each
documented override. So does a Run with the `replay` policy section from
`in_process_policies.rst` and no `rollout_limit`.
- `runs.variations_demo.variations.light.hdr_image.enabled=false` fails
with "Could not override", and the `+` form of it leaves
`light.hdr_image.enabled=true` as the last variation override.

Before the rebase, on base `7050ecbc9b`, every Experiment ran end to end
with `experiment_runner.py` and a 2-step limit, including heterogeneous
mode, `placement_seed=null`, and tuned variations on the earlier
variations YAML. The Lightwheel kitchen Experiment downloaded its
background through the Lightwheel SDK. I did not rerun them after the
rebase, and the tuned overrides on
`droid_pnp_variations_experiment.yaml` have not run end to end.

---------

Signed-off-by: Clemens Volk <[email protected]>
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.

2 participants