Repository navigation
Remove handling of environments registered without a config - #1781
Conversation
PR 1594 made EnvironmentRegistry.get_environment_cfg_types() skip environments without a config, because external environments were registered without one. Since PR 1729, the command-line flag and the Isaac Lab callback register external environments with their config, like @register_environment does. The filter never skips anything, and the assert in _registered_environment_cfg_type can't fail, so both go, together with the test that registered environments without a config by hand. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
[Medium impact] This PR appears safe to merge. SummaryThis PR builds environment selectors directly from registered config types and removes the extra check in the CLI lookup.
Reviews (1) · Last reviewed commit: "Remove handling of environments register..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR removes the handling for environments that were registered without a config. #1729 routed Findings🔵 Improvement: isaaclab_arena_environments/cli.py:50: The config lookup now depends on every registered environment having a config. Today that holds only because no caller uses the public VerdictShip it |
Remove the handling of environments registered without a config. Since #1729, every environment is registered together with its config, so typed Experiments no longer need to skip any.
Why this change?
#1594 made
EnvironmentRegistry.get_environment_cfg_types()skip environments without a config, because--external_environment_class_pathand the Isaac Lab callback registered external environments without one. #1729 changed both to go throughimport_external_environment_factory, which registers the factory with its config, the same way@register_environmentdoes for built-in environments. So the filter never skips anything, and the assert in_registered_environment_cfg_typecan't fail.test_typed_experiment_ignores_unconfigured_external_environmentonly covers states that the test itself creates with plainregister()calls.What changes?
EnvironmentRegistry.get_environment_cfg_types()returns the config type of every registered environment, keyed by name._registered_environment_cfg_typeinisaaclab_arena_environments/cli.pyreads the config type directly.test_typed_experiment_ignores_unconfigured_external_environmentis removed.