Skip to content

Commit

Permalink
Update multi-agent wrapper in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Aug 25, 2024
1 parent a897480 commit 6c79d4a
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
39 changes: 38 additions & 1 deletion docs/source/api/envs/multi_agents_wrapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Wrapping (multi-agents)

This library works with a common API to interact with the following RL multi-agent environments:

* Farama `PettingZoo <https://pettingzoo.farama.org>`_ (parallel API)
* Farama `PettingZoo <https://pettingzoo.farama.org>`_ (parallel API) and `Shimmy <https://shimmy.farama.org/>`_
* NVIDIA `Isaac Lab <https://isaac-sim.github.io/IsaacLab/index.html>`_
* `Bi-DexHands <https://github.com/PKU-MARL/DexterousHands>`_

To operate with them and to support interoperability between these non-compatible interfaces, a **wrapping mechanism is provided** as shown in the diagram below
Expand Down Expand Up @@ -39,6 +40,24 @@ Usage

.. tabs::

.. tab:: Isaac Lab

.. tabs::

.. group-tab:: |_4| |pytorch| |_4|

.. literalinclude:: ../../snippets/wrapping.py
:language: python
:start-after: [pytorch-start-isaaclab-multi-agent]
:end-before: [pytorch-end-isaaclab-multi-agent]

.. group-tab:: |_4| |jax| |_4|

.. literalinclude:: ../../snippets/wrapping.py
:language: python
:start-after: [jax-start-isaaclab-multi-agent]
:end-before: [jax-end-isaaclab-multi-agent]

.. tab:: PettingZoo

.. tabs::
Expand All @@ -57,6 +76,24 @@ Usage
:start-after: [start-pettingzoo-jax]
:end-before: [end-pettingzoo-jax]

.. tab:: Shimmy

.. tabs::

.. group-tab:: |_4| |pytorch| |_4|

.. literalinclude:: ../../snippets/wrapping.py
:language: python
:start-after: [pytorch-start-shimmy-multi-agent]
:end-before: [pytorch-end-shimmy-multi-agent]

.. group-tab:: |_4| |jax| |_4|

.. literalinclude:: ../../snippets/wrapping.py
:language: python
:start-after: [jax-start-shimmy-multi-agent]
:end-before: [jax-end-shimmy-multi-agent]

.. tab:: Bi-DexHands

.. tabs::
Expand Down
36 changes: 36 additions & 0 deletions docs/source/intro/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,24 @@ Among the methods and properties defined in the wrapped environment, the state,

.. tabs::

.. tab:: Isaac Lab

.. tabs::

.. group-tab:: |_4| |pytorch| |_4|

.. literalinclude:: ../snippets/wrapping.py
:language: python
:start-after: [pytorch-start-isaaclab-multi-agent]
:end-before: [pytorch-end-isaaclab-multi-agent]

.. group-tab:: |_4| |jax| |_4|

.. literalinclude:: ../snippets/wrapping.py
:language: python
:start-after: [jax-start-isaaclab-multi-agent]
:end-before: [jax-end-isaaclab-multi-agent]

.. tab:: PettingZoo

.. tabs::
Expand All @@ -401,6 +419,24 @@ Among the methods and properties defined in the wrapped environment, the state,
:start-after: [start-pettingzoo-jax]
:end-before: [end-pettingzoo-jax]

.. tab:: Shimmy

.. tabs::

.. group-tab:: |_4| |pytorch| |_4|

.. literalinclude:: ../snippets/wrapping.py
:language: python
:start-after: [pytorch-start-shimmy-multi-agent]
:end-before: [pytorch-end-shimmy-multi-agent]

.. group-tab:: |_4| |jax| |_4|

.. literalinclude:: ../snippets/wrapping.py
:language: python
:start-after: [jax-start-shimmy-multi-agent]
:end-before: [jax-end-shimmy-multi-agent]

.. tab:: Bi-DexHands

.. tabs::
Expand Down

0 comments on commit 6c79d4a

Please sign in to comment.