Repository navigation
Conversation
Arena plugins load an external environment in every runner, in Experiments, and in Isaac Lab scripts, so the class-path flag is a second way to do the same thing. - Remove the flag from the Arena CLI, the environment CLI, and the Isaac Lab registration callback, along with import_external_environment_factory. - Run the external environment tests through a plugin: the Policy Runner test declares the example as a plugin with test-only metadata, shared with the spec tests in tests/utils/arena_plugins.py. - Docs run the example by name, and the v0.5 migration guide shows the replacement. Signed-off-by: Xinjie Yao <[email protected]>
Without the flag, argparse took the class path that followed it as the environment name and failed with "invalid choice". A hidden flag now stops with a pointer to Arena plugins, in the Arena runners and in the Isaac Lab registration callback. Signed-off-by: Xinjie Yao <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove
--external_environment_class_path. An external environment now runs by its name, like a built-in one, once its package declares the module that registers it as an Arena plugin.Why this change?
#1804 let an installed package declare
isaaclab_arena.pluginsentry points. Arena imports those modules when it registers assets, so every runner, Experiment and environment graph YAML finds the package's environments, tasks and assets by name.That leaves two ways to run an external environment.
--external_environment_class_pathimports one factory class from a dotted path, and only the Policy Runner and Isaac Lab scripts act on it. Plugins cover the same case in every runner, so the flag is a second route to document and test.What changes?
--external_environment_class_pathis removed fromget_isaaclab_arena_cli_parserand fromenvironment_registration_callback, which registers environments for Isaac Lab scripts.import_external_environment_factorygoes with it.invalid choice. The flag is hidden from--helpand has a TODO to delete it one release after v0.5.tests/utils/arena_plugins.pywrites test-only package metadata (a.dist-infofolder withentry_points.txt) and puts it on a child process'sPYTHONPATH. The Policy Runner test intest_external_environment.pyfindsfranka_tableonly through that metadata. The plugin tests intest_arena_env_graph_spec.pyshare the helper. The four flag tests intest_environment_cfgs.pyare removed.franka_tableby name, the Docker example drops the flag, and the v0.5 migration guide has a before/after entry. The "Choosing a runner" note and therun-experimentskill no longer send external environments to the Policy Runner.Breaking changes:
PYTHONPATHmust be installed, because Arena reads plugins from installed package metadata.@register_environment. The flag registered the class it imported; a plugin only imports the module.isaaclab_arena_examples/external_environments/franka_table_environment.py, is not installed as a plugin, so the docs no longer show a command that runs it from an Arena checkout.release/0.4.0keeps the flag.Usage example
Before:
After, with the module declared as a plugin in the package's
pyproject.toml:Validation
policy_runner.pywith the old flag: it exits with code 2 and prints the plugin message.test_arena_env_graph_spec.pycover plugin loading itself.