Repository navigation
Add a camera renderer option for Newton Warp - #1707
Conversation
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]>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds a selectable renderer for embodiment cameras while keeping Isaac RTX as the default.
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
Reviews (1) · Last reviewed commit: "Address review of the Newton Warp camera..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds Design, Boundaries & Scope🟡 The PR treats Newton Warp as Newton-only in several places: the builder assert, the CLI help, the Findings🔵 Improvement: isaaclab_arena/utils/cameras.py:141: 🔵 Improvement: isaaclab_arena/utils/cameras.py:53: nothing uses the new 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. VerdictMinor fixes needed |
peterd-NV
left a comment
There was a problem hiding this comment.
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]>
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]>
Add
ArenaEnvBuilderCfg.camera_rendererand--camera_renderer:isaac_rtx, the default, ornewton_warp. Withnewton_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_cfgalone is not enough. Newton Warp renders from the camera poses stored in the camera data. Isaac Lab refreshes those poses only whenCameraCfg.update_latest_camera_poseis 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_RTXandNEWTON_WARP.ArenaEnvBuilderCfg.camera_rendererselects the renderer;--camera_renderersets it from the command line. In an Experiment Definition, set it underenvironment_builderby enum name, as forpresets:camera_renderer: NEWTON_WARP.ArenaEnvBuilder.build_env_cfgpasses the choice to the embodiment camera rig withArenaCameraCfg.set_renderer()before it reads the camera configuration. It asserts that Newton Warp runs with the Newton physics backend.ArenaCameraCfg.get_cfg()gives every camera aNewtonWarpRendererCfgand setsupdate_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.rstdocuments the option.Limitations:
get_cfg()asserts with a message that says so.Usage example
Before (embodiment cameras render with Isaac RTX):
After:
python isaaclab_arena/evaluation/policy_runner.py --enable_cameras --presets newton \ --camera_renderer newton_warp ...Validation
test_gear_insertion_newton_warp_cameras_follow_the_armlocally on an RTX 6000 Ada. With theupdate_latest_camera_poseline removed, it fails and the wrist camera does not move, so the test catches a camera left at its start pose.camera_renderer: NEWTON_WARPand rejectsnewton_warp.