-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Orbit-related source code and docs to Isaac Lab (#159)
* Rename Isaac Orbit loaders and wrappers files to Isaac Lab * Rename Orbit wrapper to Isaac Lab * Rename Orbit examples to Isaac Lab * Update the Isaac Lab environment loader * Rename Orbit environment loader to Isaac Lab * Improve auto wrapper detection implementation * Replace Orbit by Isaac Lab in docs * Rename Orbit files to Isaac Lab in docs * Update README * Update CHANGELOG
- Loading branch information
Showing
43 changed files
with
385 additions
and
398 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
File renamed without changes
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Isaac Lab environments | ||
====================== | ||
|
||
.. image:: ../../_static/imgs/example_isaaclab.png | ||
:width: 100% | ||
:align: center | ||
:alt: Isaac Lab environments | ||
|
||
.. raw:: html | ||
|
||
<br><br><hr> | ||
|
||
Environments | ||
------------ | ||
|
||
The repository https://github.com/isaac-sim/IsaacLab provides the example reinforcement learning environments for Isaac Lab (Orbit and Omniverse Isaac Gym unification). | ||
|
||
These environments can be easily loaded and configured by calling a single function provided with this library. This function also makes it possible to configure the environment from the command line arguments (see Isaac Lab's `Training with an RL Agent <https://isaac-sim.github.io/IsaacLab/source/tutorials/03_envs/run_rl_training.html>`_) or from its parameters (:literal:`task_name`, :literal:`num_envs`, :literal:`headless`, and :literal:`cli_args`). | ||
|
||
.. note:: | ||
|
||
The command line arguments has priority over the function parameters. | ||
|
||
.. note:: | ||
|
||
Isaac Lab environments implement a functionality to get their configuration from the command line. Setting the :literal:`headless` option from the trainer configuration will not work. In this case, it is necessary to set the load function's :literal:`headless` argument to True or to invoke the scripts as follows: :literal:`isaaclab -p script.py --headless`. | ||
|
||
.. raw:: html | ||
|
||
<br> | ||
|
||
Usage | ||
^^^^^ | ||
|
||
.. tabs:: | ||
|
||
.. tab:: Function parameters | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: |_4| |pytorch| |_4| | ||
|
||
.. literalinclude:: ../../snippets/loaders.py | ||
:language: python | ||
:emphasize-lines: 2, 5 | ||
:start-after: [start-isaaclab-envs-parameters-torch] | ||
:end-before: [end-isaaclab-envs-parameters-torch] | ||
|
||
.. group-tab:: |_4| |jax| |_4| | ||
|
||
.. literalinclude:: ../../snippets/loaders.py | ||
:language: python | ||
:emphasize-lines: 2, 5 | ||
:start-after: [start-isaaclab-envs-parameters-jax] | ||
:end-before: [end-isaaclab-envs-parameters-jax] | ||
|
||
.. tab:: Command line arguments (priority) | ||
|
||
.. tabs:: | ||
|
||
.. group-tab:: |_4| |pytorch| |_4| | ||
|
||
.. literalinclude:: ../../snippets/loaders.py | ||
:language: python | ||
:emphasize-lines: 2, 5 | ||
:start-after: [start-isaaclab-envs-cli-torch] | ||
:end-before: [end-isaaclab-envs-cli-torch] | ||
|
||
.. group-tab:: |_4| |jax| |_4| | ||
|
||
.. literalinclude:: ../../snippets/loaders.py | ||
:language: python | ||
:emphasize-lines: 2, 5 | ||
:start-after: [start-isaaclab-envs-cli-jax] | ||
:end-before: [end-isaaclab-envs-cli-jax] | ||
|
||
Run the main script passing the configuration as command line arguments. For example: | ||
|
||
.. code-block:: | ||
isaaclab -p main.py --task Isaac-Cartpole-v0 | ||
.. raw:: html | ||
|
||
<br> | ||
|
||
API | ||
^^^ | ||
|
||
.. autofunction:: skrl.envs.loaders.torch.load_isaaclab_env |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.