Skip to content

Turn on each Run's cameras for camera video recording in the Experiment Runner - #1829

Open
xyao-nv wants to merge 3 commits into
mainfrom
xyao/fix/camera_video_without_cameras
Open

xyao-nv wants to merge 3 commits into
mainfrom
xyao/fix/camera_video_without_cameras

Conversation

@xyao-nv

@xyao-nv xyao-nv commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Turn on every Run's cameras when experiment_runner.py --record_camera_video is set. Replace the AttributeError from CameraObsVideoRecorder with a message that names the setting to change.

Why this change?

--record_camera_video turns on camera support in Isaac Sim, but not the cameras of each Run's environment. Without environment.enable_cameras: true, a Run has no camera_obs observation group, and CameraObsVideoRecorder fails in its constructor:

AttributeError: 'ObservationCfg' object has no attribute 'camera_obs'

The error names neither the Run nor the setting to change. The getting-started Experiment enables no cameras, so every Run of this command fails after Isaac Sim has started:

python isaaclab_arena/evaluation/experiment_runner.py --viz none \
  --experiment_config isaaclab_arena_environments/experiment_configs/getting_started_experiment.yaml \
  --output_base_dir "$OUT" --record_camera_video

OSMO Experiment submissions hit the same error by default, because ExperimentRunnerTaskCfg.record_camera_video defaults to True.

What changes?

  • With --record_camera_video, experiment_runner.py sets environment.enable_cameras: true on every Run before Isaac Sim starts, and prints the Runs whose cameras it turned on. policy_runner.py already does this for the same flag.
  • This includes a Run that sets enable_cameras: false. The OSMO task writes the built Experiment to YAML with every default, including enable_cameras: false, so the runner cannot tell that default from an author's choice.
  • CameraObsVideoRecorder asserts that the env has a camera_obs group. This catches cases the runner cannot see before startup, such as an embodiment without cameras. The message suggests environment.enable_cameras: true, --enable_cameras, or an embodiment with cameras, and the Experiment Runner prints it with the Run name.
  • Update the --record_camera_video help and the v0.4 migration guide.

Runs that did not use cameras now render them when camera video is recorded, which costs GPU time and memory. This includes OSMO submissions with the default settings.

Validation

  • Ran the command above with only the baseline Run, which leaves enable_cameras unset. It turned on the cameras, completed, and wrote the three DROID camera videos (external_camera_rgb, external_camera_2_rgb, wrist_camera_rgb).
  • Generated the default OSMO workflow for the getting-started Experiment with osmo/submit_arena_experiment.py --dry_run. Ran one task's Experiment YAML, which sets enable_cameras: false, with the task's runner flags. It turned on the cameras, completed, and wrote the three camera videos.

--record_camera_video turned on camera support in Isaac Sim but did not
enable each Run's environment cameras. A Run without
environment.enable_cameras: true has no camera_obs observation group, so
CameraObsVideoRecorder failed with an AttributeError that named neither
the Run nor the setting to change.

The Experiment Runner now checks each Run before Isaac Sim starts and
lists the Runs to change with the overrides that enable their cameras.
The recorder replaces the AttributeError with a message naming the
setting, for envs whose embodiment spawns no cameras.

Signed-off-by: Xinjie Yao <[email protected]>
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge.

Summary

The PR rejects camera-video requests before Isaac Sim starts when any Run lacks an explicit environment.enable_cameras: true.

  • Camera-video runs check each Run's camera setting before startup.
  • The camera recorder explains when an environment has no camera observations.

Intentional restriction acknowledged by xyao-nv: camera defaults outside the Experiment do not satisfy the check because typed configs are built after startup.

Review used source inspection; no tests were run.

Reviews (1) · Last reviewed commit: "Fail camera video before startup when a ..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

With this PR, experiment_runner.py --record_camera_video fails before Isaac Sim starts when a Run doesn't set environment.enable_cameras: true. It also replaces the bare AttributeError in CameraObsVideoRecorder with an assert that names the setting to change. The new error messages are clearer than before. My main question is whether the flag should turn on the Runs' cameras instead of failing, which is what policy_runner.py already does.

Design, Boundaries & Scope

policy_runner.py --record_camera_video spawns the environment's cameras. It does this at policy_runner.py:114-116, and dataclass_from_cli copies the value into the environment config. The Experiment Runner now rejects the same flag instead and asks for one override per Run. ExperimentRunnerTaskCfg.record_camera_video defaults to True, so OSMO submissions of Experiments without cameras still fail by default; they just fail sooner. Setting enable_cameras on each untyped Run when the flag is set would make the two runners behave the same and remove the new check and the caveats added to the docs. If recording should never change a Run's environment, a NOTE: explaining why would help. Details are in the inline comment.

Findings

🟡 Warning: isaaclab_arena/evaluation/experiment_runner.py:150: Could --record_camera_video turn on each Run's cameras, as policy_runner.py does, instead of failing? See above.
🔵 Improvement: isaaclab_arena/tests/test_experiment_runner.py:394: The new helper repeats the stubbed-startup setup from the --viz none viewport test in the same file. One helper that takes the Experiment YAML and the arguments could serve both tests.

CI for the head commit hadn't finished when I reviewed it: pre-commit and the uv check were still queued, so I couldn't confirm that the tests pass.

Verdict

Minor fixes needed

Address review: --record_camera_video now sets environment.enable_cameras
on every Run that leaves it unset, as policy_runner.py does, instead of
failing. A Run that turns its cameras off still fails before Isaac Sim
starts, naming the Run. The startup-stub tests share one helper.

Signed-off-by: Xinjie Yao <[email protected]>
@xyao-nv xyao-nv changed the title Fail camera video before startup when a Run has no cameras Turn on each Run's cameras for camera video in the Experiment Runner Dec 3, 2026
@xyao-nv xyao-nv changed the title Turn on each Run's cameras for camera video in the Experiment Runner Turn on each Run's cameras for camera video recording in the Experiment Runner Dec 3, 2026
An OSMO task writes the typed Experiment to YAML with every default,
including enable_cameras: false, and runs it with --record_camera_video,
which OSMO turns on by default. The Experiment Runner rejected every
such Run because it could not tell that default from an author's false.

--record_camera_video now turns on the cameras of every Run, also one
that sets enable_cameras: false, as policy_runner.py does, and prints
the Runs whose cameras it turned on.

Signed-off-by: Xinjie Yao <[email protected]>
xyao-nv added a commit that referenced this pull request Dec 3, 2026
Release-only adaptation of a3bb7a2 on #1829. An OSMO task writes the
typed Experiment to YAML with every default, including
enable_cameras: false, and runs it with --record_camera_video, which
OSMO turns on by default. The Experiment Runner rejected every such Run
because it could not tell that default from an author's false.

--record_camera_video now adds runs.<name>.environment.enable_cameras=true
for every Run of a YAML Experiment whose value is not true, as
policy_runner.py turns on its cameras, and prints those Runs.

Signed-off-by: Xinjie Yao <[email protected]>

This branch has not been deployed

No deployments
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