Repository navigation
Conversation
--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]>
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryThe PR rejects camera-video requests before Isaac Sim starts when any Run lacks an explicit
Intentional restriction acknowledged by Review used source inspection; no tests were run. Reviews (1) · Last reviewed commit: "Fail camera video before startup when a ..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryWith this PR, Design, Boundaries & Scope
Findings🟡 Warning: isaaclab_arena/evaluation/experiment_runner.py:150: Could 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. VerdictMinor 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]>
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]>
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]>
Turn on every Run's cameras when
experiment_runner.py --record_camera_videois set. Replace theAttributeErrorfromCameraObsVideoRecorderwith a message that names the setting to change.Why this change?
--record_camera_videoturns on camera support in Isaac Sim, but not the cameras of each Run's environment. Withoutenvironment.enable_cameras: true, a Run has nocamera_obsobservation group, andCameraObsVideoRecorderfails in its constructor: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_videoOSMO Experiment submissions hit the same error by default, because
ExperimentRunnerTaskCfg.record_camera_videodefaults toTrue.What changes?
--record_camera_video,experiment_runner.pysetsenvironment.enable_cameras: trueon every Run before Isaac Sim starts, and prints the Runs whose cameras it turned on.policy_runner.pyalready does this for the same flag.enable_cameras: false. The OSMO task writes the built Experiment to YAML with every default, includingenable_cameras: false, so the runner cannot tell that default from an author's choice.CameraObsVideoRecorderasserts that the env has acamera_obsgroup. This catches cases the runner cannot see before startup, such as an embodiment without cameras. The message suggestsenvironment.enable_cameras: true,--enable_cameras, or an embodiment with cameras, and the Experiment Runner prints it with the Run name.--record_camera_videohelp 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
baselineRun, which leavesenable_camerasunset. It turned on the cameras, completed, and wrote the three DROID camera videos (external_camera_rgb,external_camera_2_rgb,wrist_camera_rgb).osmo/submit_arena_experiment.py --dry_run. Ran one task's Experiment YAML, which setsenable_cameras: false, with the task's runner flags. It turned on the cameras, completed, and wrote the three camera videos.