@@ -56,40 +56,40 @@
## Description
-**gym-ignition** is a framework to create **reproducible robotics environments** for reinforcement learning research.
+**gym-gz** is a framework to create **reproducible robotics environments** for reinforcement learning research.
-It is based on the [ScenarIO](scenario/) project which provides the low-level APIs to interface with the Ignition Gazebo simulator.
+It is based on the [ScenarIO](scenario/) project which provides the low-level APIs to interface with the Gz sim simulator.
By default, RL environments share a lot of boilerplate code, e.g. for initializing the simulator or structuring the classes
to expose the `gym.Env` interface.
-Gym-ignition provides the [`Task`](python/gym_ignition/base/task.py) and [`Runtime`](python/gym_ignition/base/runtime.py)
+Gym-gz provides the [`Task`](python/gym_gz/base/task.py) and [`Runtime`](python/gym_gz/base/runtime.py)
abstractions that help you focusing on the development of the decision-making logic rather than engineering.
-It includes [randomizers](python/gym_ignition/randomizers) to simplify the implementation of domain randomization
+It includes [randomizers](python/gym_gz/randomizers) to simplify the implementation of domain randomization
of models, physics, and tasks.
-Gym-ignition also provides powerful dynamics algorithms compatible with both fixed-base and floating-based robots by
+Gym-gz also provides powerful dynamics algorithms compatible with both fixed-base and floating-based robots by
exploiting [robotology/idyntree](https://github.com/robotology/idyntree/) and exposing
-[high-level functionalities](python/gym_ignition/rbd/idyntree).
+[high-level functionalities](python/gym_gz/rbd/idyntree).
-Gym-ignition does not provide out-of-the-box environments ready to be used.
+Gym-gz does not provide out-of-the-box environments ready to be used.
Rather, its aim is simplifying and streamlining their development.
Nonetheless, for illustrative purpose, it includes canonical examples in the
-[`gym_ignition_environments`](python/gym_ignition_environments) package.
+[`gym_gz_environments`](python/gym_gz_environments) package.
Visit the [website][website] for more information about the project.
-[website]: https://robotology.github.io/gym-ignition
+[website]: https://robotology.github.io/gym-gz
## Installation
1. First, follow the installation instructions of [ScenarIO](scenario/).
-2. `pip install gym-ignition`, preferably in a [virtual environment](https://docs.python.org/3.8/tutorial/venv.html).
+2. `pip install gym-gz`, preferably in a [virtual environment](https://docs.python.org/3.8/tutorial/venv.html).
## Contributing
You can visit our community forum hosted in [GitHub Discussions](https://github.com/robotology/gym-ignition/discussions).
Even without coding skills, replying user's questions is a great way of contributing.
-If you use gym-ignition in your application and want to show it off, visit the
+If you use gym-gz in your application and want to show it off, visit the
[Show and tell](https://github.com/robotology/gym-ignition/discussions/categories/show-and-tell) section!
-You can advertise there your environments created with gym-ignition.
+You can advertise there your environments created with gym-gz.
Pull requests are welcome.
@@ -115,4 +115,4 @@ first to propose what you would like to change.
---
-**Disclaimer:** Gym-ignition is an independent project and is not related by any means to OpenAI and Open Robotics.
+**Disclaimer:** Gym-gz is an independent project and is not related by any means to OpenAI and Open Robotics.
diff --git a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.models.rst b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.models.rst
similarity index 77%
rename from docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.models.rst
rename to docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.models.rst
index 24df9c0e6..2f73ac88e 100644
--- a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.models.rst
+++ b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.models.rst
@@ -1,5 +1,5 @@
gym\_gz\_environments.models
-==================================
+============================
.. automodule:: gym_gz_environments.models
:members:
@@ -8,7 +8,7 @@ gym\_gz\_environments.models
gym\_gz\_environments.models.cartpole
--------------------------------------------
+-------------------------------------
.. automodule:: gym_gz_environments.models.cartpole
:members:
@@ -16,7 +16,7 @@ gym\_gz\_environments.models.cartpole
:show-inheritance:
gym\_gz\_environments.models.icub
----------------------------------------
+---------------------------------
.. automodule:: gym_gz_environments.models.icub
:members:
@@ -24,7 +24,7 @@ gym\_gz\_environments.models.icub
:show-inheritance:
gym\_gz\_environments.models.panda
-----------------------------------------
+----------------------------------
.. automodule:: gym_gz_environments.models.panda
:members:
@@ -32,7 +32,7 @@ gym\_gz\_environments.models.panda
:show-inheritance:
gym\_gz\_environments.models.pendulum
--------------------------------------------
+-------------------------------------
.. automodule:: gym_gz_environments.models.pendulum
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.randomizers.rst b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.randomizers.rst
similarity index 75%
rename from docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.randomizers.rst
rename to docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.randomizers.rst
index dcb12b423..027e9fd76 100644
--- a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.randomizers.rst
+++ b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.randomizers.rst
@@ -1,5 +1,5 @@
gym\_gz\_environments.randomizers
-=======================================
+=================================
.. automodule:: gym_gz_environments.randomizers
:members:
@@ -8,7 +8,7 @@ gym\_gz\_environments.randomizers
gym\_gz\_environments.randomizers.cartpole
-------------------------------------------------
+------------------------------------------
.. automodule:: gym_gz_environments.randomizers.cartpole
:members:
@@ -16,7 +16,7 @@ gym\_gz\_environments.randomizers.cartpole
:show-inheritance:
gym\_gz\_environments.randomizers.cartpole\_no\_rand
-----------------------------------------------------------
+----------------------------------------------------
.. automodule:: gym_gz_environments.randomizers.cartpole_no_rand
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.rst b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.rst
similarity index 89%
rename from docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.rst
rename to docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.rst
index 358406a65..fe617da77 100644
--- a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.rst
+++ b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.rst
@@ -1,5 +1,5 @@
gym\_gz\_environments
-===========================
+=====================
.. automodule:: gym_gz_environments
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.tasks.rst b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.tasks.rst
similarity index 75%
rename from docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.tasks.rst
rename to docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.tasks.rst
index e59913404..f49d2df01 100644
--- a/docs/sphinx/apidoc/gym-ignition-environments/gym_ignition_environments.tasks.rst
+++ b/docs/sphinx/apidoc/gym-gz-environments/gym_gz_environments.tasks.rst
@@ -1,5 +1,5 @@
gym\_gz\_environments.tasks
-=================================
+===========================
.. automodule:: gym_gz_environments.tasks
:members:
@@ -8,7 +8,7 @@ gym\_gz\_environments.tasks
gym\_gz\_environments.tasks.cartpole\_continuous\_balancing
------------------------------------------------------------------
+-----------------------------------------------------------
.. automodule:: gym_gz_environments.tasks.cartpole_continuous_balancing
:members:
@@ -16,7 +16,7 @@ gym\_gz\_environments.tasks.cartpole\_continuous\_balancing
:show-inheritance:
gym\_gz\_environments.tasks.cartpole\_continuous\_swingup
----------------------------------------------------------------
+---------------------------------------------------------
.. automodule:: gym_gz_environments.tasks.cartpole_continuous_swingup
:members:
@@ -24,7 +24,7 @@ gym\_gz\_environments.tasks.cartpole\_continuous\_swingup
:show-inheritance:
gym\_gz\_environments.tasks.cartpole\_discrete\_balancing
----------------------------------------------------------------
+---------------------------------------------------------
.. automodule:: gym_gz_environments.tasks.cartpole_discrete_balancing
:members:
@@ -32,7 +32,7 @@ gym\_gz\_environments.tasks.cartpole\_discrete\_balancing
:show-inheritance:
gym\_gz\_environments.tasks.pendulum\_swingup
----------------------------------------------------
+---------------------------------------------
.. automodule:: gym_gz_environments.tasks.pendulum_swingup
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.base.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.base.rst
similarity index 81%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.base.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.base.rst
index 927be5dc7..9507f9f5d 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.base.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.base.rst
@@ -1,5 +1,5 @@
gym\_gz.base
-==================
+============
.. automodule:: gym_gz.base
:members:
@@ -8,7 +8,7 @@ gym\_gz.base
gym\_gz.base.runtime
---------------------------
+--------------------
.. automodule:: gym_gz.base.runtime
:members:
@@ -16,7 +16,7 @@ gym\_gz.base.runtime
:show-inheritance:
gym\_gz.base.task
------------------------
+-----------------
.. automodule:: gym_gz.base.task
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.context.gazebo.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.context.gazebo.rst
similarity index 78%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.context.gazebo.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.context.gazebo.rst
index 377e12f70..f99cba328 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.context.gazebo.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.context.gazebo.rst
@@ -1,5 +1,5 @@
gym\_gz.context.gazebo
-============================
+======================
.. automodule:: gym_gz.context.gazebo
:members:
@@ -8,7 +8,7 @@ gym\_gz.context.gazebo
gym\_gz.context.gazebo.controllers
-----------------------------------------
+----------------------------------
.. automodule:: gym_gz.context.gazebo.controllers
:members:
@@ -16,7 +16,7 @@ gym\_gz.context.gazebo.controllers
:show-inheritance:
gym\_gz.context.gazebo.plugin
------------------------------------
+-----------------------------
.. automodule:: gym_gz.context.gazebo.plugin
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.context.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.context.rst
similarity index 87%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.context.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.context.rst
index 997601db5..6a7e5922c 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.context.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.context.rst
@@ -1,5 +1,5 @@
gym\_gz.context
-=====================
+===============
.. automodule:: gym_gz.context
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.model.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.model.rst
similarity index 78%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.model.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.model.rst
index ece3d7b36..4b1371ff2 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.model.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.model.rst
@@ -1,5 +1,5 @@
gym\_gz.randomizers.model
-===============================
+=========================
.. automodule:: gym_gz.randomizers.model
:members:
@@ -8,7 +8,7 @@ gym\_gz.randomizers.model
gym\_gz.randomizers.model.sdf
------------------------------------
+-----------------------------
.. automodule:: gym_gz.randomizers.model.sdf
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.physics.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.physics.rst
similarity index 78%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.physics.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.physics.rst
index b6f240bb0..265cb6fb8 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.physics.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.physics.rst
@@ -1,5 +1,5 @@
gym\_gz.randomizers.physics
-=================================
+===========================
.. automodule:: gym_gz.randomizers.physics
:members:
@@ -8,7 +8,7 @@ gym\_gz.randomizers.physics
gym\_gz.randomizers.physics.dart
---------------------------------------
+--------------------------------
.. automodule:: gym_gz.randomizers.physics.dart
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.rst
similarity index 81%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.rst
index 6ba046d56..53776955d 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.randomizers.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.randomizers.rst
@@ -1,5 +1,5 @@
gym\_gz.randomizers
-=========================
+===================
.. automodule:: gym_gz.randomizers
:members:
@@ -15,7 +15,7 @@ gym\_gz.randomizers
gym\_gz.randomizers.abc
------------------------------
+-----------------------
.. automodule:: gym_gz.randomizers.abc
:members:
@@ -23,7 +23,7 @@ gym\_gz.randomizers.abc
:show-inheritance:
gym\_gz.randomizers.gazebo\_env\_randomizer
--------------------------------------------------
+-------------------------------------------
.. automodule:: gym_gz.randomizers.gazebo_env_randomizer
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.idyntree.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.rbd.idyntree.rst
similarity index 83%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.idyntree.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.rbd.idyntree.rst
index bb3223cf3..5cb1e89ca 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.idyntree.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.rbd.idyntree.rst
@@ -1,5 +1,5 @@
gym\_gz.rbd.idyntree
-==========================
+====================
.. automodule:: gym_gz.rbd.idyntree
:members:
@@ -8,7 +8,7 @@ gym\_gz.rbd.idyntree
gym\_gz.rbd.idyntree.helpers
-----------------------------------
+----------------------------
.. automodule:: gym_gz.rbd.idyntree.helpers
:members:
@@ -16,7 +16,7 @@ gym\_gz.rbd.idyntree.helpers
:show-inheritance:
gym\_gz.rbd.idyntree.inverse\_kinematics\_nlp
----------------------------------------------------
+---------------------------------------------
.. automodule:: gym_gz.rbd.idyntree.inverse_kinematics_nlp
:members:
@@ -24,7 +24,7 @@ gym\_gz.rbd.idyntree.inverse\_kinematics\_nlp
:show-inheritance:
gym\_gz.rbd.idyntree.kindyncomputations
----------------------------------------------
+---------------------------------------
.. automodule:: gym_gz.rbd.idyntree.kindyncomputations
:members:
@@ -32,7 +32,7 @@ gym\_gz.rbd.idyntree.kindyncomputations
:show-inheritance:
gym\_gz.rbd.idyntree.numpy
---------------------------------
+--------------------------
.. automodule:: gym_gz.rbd.idyntree.numpy
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.rbd.rst
similarity index 89%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.rbd.rst
index 54a998b15..a3e5ac112 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rbd.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.rbd.rst
@@ -1,5 +1,5 @@
gym\_gz.rbd
-=================
+===========
.. automodule:: gym_gz.rbd
:members:
@@ -14,7 +14,7 @@ gym\_gz.rbd
gym\_gz.rbd.conversions
------------------------------
+-----------------------
.. automodule:: gym_gz.rbd.conversions
:members:
@@ -22,7 +22,7 @@ gym\_gz.rbd.conversions
:show-inheritance:
gym\_gz.rbd.utils
------------------------
+-----------------
.. automodule:: gym_gz.rbd.utils
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.rst
similarity index 94%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.rst
index 285a3ad21..8ee4bc049 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.rst
@@ -1,5 +1,5 @@
gym\_gz
-=============
+=======
.. automodule:: gym_gz
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.runtimes.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.runtimes.rst
similarity index 78%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.runtimes.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.runtimes.rst
index 5060bd38e..2ee6501a0 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.runtimes.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.runtimes.rst
@@ -1,5 +1,5 @@
gym\_gz.runtimes
-======================
+================
.. automodule:: gym_gz.runtimes
:members:
@@ -8,7 +8,7 @@ gym\_gz.runtimes
gym\_gz.runtimes.gazebo\_runtime
---------------------------------------
+--------------------------------
.. automodule:: gym_gz.runtimes.gazebo_runtime
:members:
@@ -16,7 +16,7 @@ gym\_gz.runtimes.gazebo\_runtime
:show-inheritance:
gym\_gz.runtimes.realtime\_runtime
-----------------------------------------
+----------------------------------
.. automodule:: gym_gz.runtimes.realtime_runtime
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.scenario.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.scenario.rst
similarity index 78%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.scenario.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.scenario.rst
index 873ddc34f..89a997f3a 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.scenario.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.scenario.rst
@@ -1,5 +1,5 @@
gym\_gz.scenario
-======================
+================
.. automodule:: gym_gz.scenario
:members:
@@ -8,7 +8,7 @@ gym\_gz.scenario
gym\_gz.scenario.model\_with\_file
-----------------------------------------
+----------------------------------
.. automodule:: gym_gz.scenario.model_with_file
:members:
@@ -16,7 +16,7 @@ gym\_gz.scenario.model\_with\_file
:show-inheritance:
gym\_gz.scenario.model\_wrapper
--------------------------------------
+-------------------------------
.. automodule:: gym_gz.scenario.model_wrapper
:members:
diff --git a/docs/sphinx/apidoc/gym-ignition/gym_ignition.utils.rst b/docs/sphinx/apidoc/gym-gz/gym_gz.utils.rst
similarity index 80%
rename from docs/sphinx/apidoc/gym-ignition/gym_ignition.utils.rst
rename to docs/sphinx/apidoc/gym-gz/gym_gz.utils.rst
index 2d7f1d25c..0411924d8 100644
--- a/docs/sphinx/apidoc/gym-ignition/gym_ignition.utils.rst
+++ b/docs/sphinx/apidoc/gym-gz/gym_gz.utils.rst
@@ -1,5 +1,5 @@
gym\_gz.utils
-===================
+=============
.. automodule:: gym_gz.utils
:members:
@@ -8,7 +8,7 @@ gym\_gz.utils
gym\_gz.utils.logger
---------------------------
+--------------------
.. automodule:: gym_gz.utils.logger
:members:
@@ -16,7 +16,7 @@ gym\_gz.utils.logger
:show-inheritance:
gym\_gz.utils.math
-------------------------
+------------------
.. automodule:: gym_gz.utils.math
:members:
@@ -24,7 +24,7 @@ gym\_gz.utils.math
:show-inheritance:
gym\_gz.utils.misc
-------------------------
+------------------
.. automodule:: gym_gz.utils.misc
:members:
@@ -32,7 +32,7 @@ gym\_gz.utils.misc
:show-inheritance:
gym\_gz.utils.resource\_finder
-------------------------------------
+------------------------------
.. automodule:: gym_gz.utils.resource_finder
:members:
@@ -40,7 +40,7 @@ gym\_gz.utils.resource\_finder
:show-inheritance:
gym\_gz.utils.scenario
-----------------------------
+----------------------
.. automodule:: gym_gz.utils.scenario
:members:
@@ -48,7 +48,7 @@ gym\_gz.utils.scenario
:show-inheritance:
gym\_gz.utils.typing
---------------------------
+--------------------
.. automodule:: gym_gz.utils.typing
:members:
diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py
index 5874bf254..7443730e8 100644
--- a/docs/sphinx/conf.py
+++ b/docs/sphinx/conf.py
@@ -67,7 +67,7 @@
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
- "repository_url": "https://github.com/robotology/gym-ignition",
+ "repository_url": "https://github.com/andreaostuni/gym-gz",
"use_repository_button": True,
"use_issues_button": True,
"use_edit_page_button": True,
@@ -75,7 +75,7 @@
"home_page_in_toc": True,
"use_download_button": False,
"use_fullscreen_button": True,
- "single_page": False,
+
}
# Add any paths that contain custom static files (such as style sheets) here,
@@ -119,6 +119,6 @@
# -- Options for extlinks extension ----------------------------------
extlinks = {
- "issue": ("https://github.com/robotology/gym-ignition/issues/%s", "#"),
- "pr": ("https://github.com/robotology/gym-ignition/pull/%s", "#"),
+ "issue": ("https://github.com/andreaostuni/gym-gz/issues/%s", "#"),
+ "pr": ("https://github.com/andreaostuni/gym-gz/pull/%s", "#"),
}
diff --git a/docs/sphinx/getting_started/gym-gz.rst b/docs/sphinx/getting_started/gym-gz.rst
new file mode 100644
index 000000000..83e76ba8a
--- /dev/null
+++ b/docs/sphinx/getting_started/gym-gz.rst
@@ -0,0 +1,55 @@
+.. _getting_started_gym_gz:
+
+gym-gz
+************
+
+The previous sections reported the usage of ScenarIO to perform rigid-body simulations of any kind.
+The :py:mod:`gym_gz` Python package provides boilerplate code that use ScenarIO to create environments
+for reinforcement learning research compatible with OpenAI Gym.
+
+Beyond the abstractions provided by ScenarIO, gym-gz introduces the following:
+
+- :py:class:`~gym_gz.base.runtime.Runtime`: Base class to abstract the runtime of an environment.
+ It provides the code that steps the simulator for simulated environments or deals with real-time execution for
+ environments running on real robots.
+ The implementation for Gz sim is :py:class:`~gym_gz.runtimes.gazebo_runtime.GazeboRuntime`.
+
+- :py:class:`~gym_gz.base.task.Task`: Base class providing the structure of the decision-making logic.
+ The code of the task must be independent from the runtime, and only the ScenarIO APIs should be used.
+ The active runtime will then execute the task on either simulated or real worlds.
+
+- :py:mod:`gym_gz.randomizers`: Utilities to develop ``gym.Wrapper`` classes that randomize the environment
+ every rollout.
+ The implementation for Gz sim is :py:class:`~gym_gz.randomizers.gazebo_env_randomizer.GazeboEnvRandomizer`.
+
+- :py:mod:`gym_gz.rbd`: Utilities commonly used in robotic environments, like inverse kinematics and rigid-body
+ dynamics algorithms.
+ Refer to :py:class:`~gym_gz.rbd.idyntree.inverse_kinematics_nlp.InverseKinematicsNLP` and
+ :py:class:`~gym_gz.rbd.idyntree.kindyncomputations.KinDynComputations` for more details.
+
+.. tip::
+
+ If you want to learn more about ``iDynTree``, the two classes we mainly use are ``iDynTree::KinDynComputations`` (`docs `__) and ``iDynTree::InverseKinematics`` (`docs `__).
+
+ The theory and notation is summarized in `Multibody dynamics notation `_.
+
+You can find demo environments created with ``gym-gz`` in the
+`gym_gz_environments `_ folder.
+These examples show how to structure a new standalone Python package containing the environment with your robots.
+
+For example, taking the cartpole balancing problem with discrete actions,
+the components you need to implement are the following:
+
+- A model :py:class:`~gym_gz_environments.models.cartpole.CartPole`
+ (`model/cartpole.py `_)
+
+- A task :py:class:`~gym_gz_environments.tasks.cartpole_discrete_balancing.CartPoleDiscreteBalancing`
+ (`cartpole_discrete_balancing.py `_)
+
+- A randomizer :py:class:`~gym_gz_environments.randomizers.cartpole.CartpoleEnvRandomizer`
+ (`randomizers/cartpole.py `_)
+
+- Environment registration as done in `__init__.py `_
+
+With all these resources in place, you can run a random policy of the environment as shown in
+`launch_cartpole.py `_.
diff --git a/docs/sphinx/getting_started/gym-ignition.rst b/docs/sphinx/getting_started/gym-ignition.rst
deleted file mode 100644
index 16be71795..000000000
--- a/docs/sphinx/getting_started/gym-ignition.rst
+++ /dev/null
@@ -1,55 +0,0 @@
-.. _getting_started_gym_ignition:
-
-gym-ignition
-************
-
-The previous sections reported the usage of ScenarIO to perform rigid-body simulations of any kind.
-The :py:mod:`gym_ignition` Python package provides boilerplate code that use ScenarIO to create environments
-for reinforcement learning research compatible with OpenAI Gym.
-
-Beyond the abstractions provided by ScenarIO, gym-ignition introduces the following:
-
-- :py:class:`~gym_ignition.base.runtime.Runtime`: Base class to abstract the runtime of an environment.
- It provides the code that steps the simulator for simulated environments or deals with real-time execution for
- environments running on real robots.
- The implementation for Ignition Gazebo is :py:class:`~gym_ignition.runtimes.gazebo_runtime.GazeboRuntime`.
-
-- :py:class:`~gym_ignition.base.task.Task`: Base class providing the structure of the decision-making logic.
- The code of the task must be independent from the runtime, and only the ScenarIO APIs should be used.
- The active runtime will then execute the task on either simulated or real worlds.
-
-- :py:mod:`gym_ignition.randomizers`: Utilities to develop ``gym.Wrapper`` classes that randomize the environment
- every rollout.
- The implementation for Ignition Gazebo is :py:class:`~gym_ignition.randomizers.gazebo_env_randomizer.GazeboEnvRandomizer`.
-
-- :py:mod:`gym_ignition.rbd`: Utilities commonly used in robotic environments, like inverse kinematics and rigid-body
- dynamics algorithms.
- Refer to :py:class:`~gym_ignition.rbd.idyntree.inverse_kinematics_nlp.InverseKinematicsNLP` and
- :py:class:`~gym_ignition.rbd.idyntree.kindyncomputations.KinDynComputations` for more details.
-
-.. tip::
-
- If you want to learn more about ``iDynTree``, the two classes we mainly use are ``iDynTree::KinDynComputations`` (`docs `__) and ``iDynTree::InverseKinematics`` (`docs `__).
-
- The theory and notation is summarized in `Multibody dynamics notation `_.
-
-You can find demo environments created with ``gym-ignition`` in the
-`gym_ignition_environments `_ folder.
-These examples show how to structure a new standalone Python package containing the environment with your robots.
-
-For example, taking the cartpole balancing problem with discrete actions,
-the components you need to implement are the following:
-
-- A model :py:class:`~gym_ignition_environments.models.cartpole.CartPole`
- (`model/cartpole.py `_)
-
-- A task :py:class:`~gym_ignition_environments.tasks.cartpole_discrete_balancing.CartPoleDiscreteBalancing`
- (`cartpole_discrete_balancing.py `_)
-
-- A randomizer :py:class:`~gym_ignition_environments.randomizers.cartpole.CartpoleEnvRandomizer`
- (`randomizers/cartpole.py `_)
-
-- Environment registration as done in `__init__.py `_
-
-With all these resources in place, you can run a random policy of the environment as shown in
-`launch_cartpole.py `_.
diff --git a/docs/sphinx/getting_started/manipulation.rst b/docs/sphinx/getting_started/manipulation.rst
index d4c0623a7..374731196 100644
--- a/docs/sphinx/getting_started/manipulation.rst
+++ b/docs/sphinx/getting_started/manipulation.rst
@@ -3,18 +3,18 @@
Manipulation example
********************
-This example provides a wider overview of the functionalities currently implemented in gym-ignition.
+This example provides a wider overview of the functionalities currently implemented in gym-gz.
The code reported below is taken from the example
-`panda_pick_and_place.py `_.
+`panda_pick_and_place.py `_.
It shows the following functionalities:
-- Download models from `Ignition Fuel `_.
+- Download models from `Gz Fuel `_.
- Insert and remove models during runtime.
-- Exploit the high-level :py:class:`~gym_ignition_environments.models.panda.Panda` helper class to insert the manipulator.
+- Exploit the high-level :py:class:`~gym_gz_environments.models.panda.Panda` helper class to insert the manipulator.
- Enable custom C++ controllers (:cpp:class:`scenario::controllers::ComputedTorqueFixedBase`).
- Detect contacts and read contact wrenches.
-- Exploit :py:class:`~gym_ignition.rbd.idyntree.inverse_kinematics_nlp.InverseKinematicsNLP`.
+- Exploit :py:class:`~gym_gz.rbd.idyntree.inverse_kinematics_nlp.InverseKinematicsNLP`.
.. figure:: https://user-images.githubusercontent.com/469199/99905096-f29a0f80-2cce-11eb-9f1c-002f6c887bc6.png
:align: center
@@ -22,7 +22,7 @@ It shows the following functionalities:
.. tip::
This example can be the starting point to develop manipulation environments for robot learning.
- Visit the :ref:`getting_started_gym_ignition` page for more information about how to wrap this code in the resources provided by ``gym_ignition``.
+ Visit the :ref:`getting_started_gym_gz` page for more information about how to wrap this code in the resources provided by ``gym_gz``.
.. note::
@@ -38,12 +38,12 @@ It shows the following functionalities:
from functools import partial
from typing import List
- import gym_ignition
- import gym_ignition_environments
+ import gym_gz
+ import gym_gz_environments
import numpy as np
- from gym_ignition.context.gazebo import controllers
- from gym_ignition.rbd import conversions
- from gym_ignition.rbd.idyntree import inverse_kinematics_nlp
+ from gym_gz.context.gazebo import controllers
+ from gym_gz.rbd import conversions
+ from gym_gz.rbd.idyntree import inverse_kinematics_nlp
from scipy.spatial.transform import Rotation as R
from scenario import core as scenario_core
@@ -57,7 +57,7 @@ It shows the following functionalities:
def add_panda_controller(
- panda: gym_ignition_environments.models.panda.Panda, controller_period: float
+ panda: gym_gz_environments.models.panda.Panda, controller_period: float
) -> None:
# Set the controller period
@@ -89,7 +89,7 @@ It shows the following functionalities:
def get_panda_ik(
- panda: gym_ignition_environments.models.panda.Panda, optimized_joints: List[str]
+ panda: gym_gz_environments.models.panda.Panda, optimized_joints: List[str]
) -> inverse_kinematics_nlp.InverseKinematicsNLP:
# Create IK
@@ -129,7 +129,7 @@ It shows the following functionalities:
def insert_bucket(world: scenario_gazebo.World) -> scenario_gazebo.Model:
# Insert objects from Fuel
- uri = lambda org, name: f"https://fuel.ignitionrobotics.org/{org}/models/{name}"
+ uri = lambda org, name: f"https://fuel.gazebosim.org/{org}/models/{name}"
# Download the cube SDF file
bucket_sdf = scenario_gazebo.get_model_file_from_fuel(
@@ -155,7 +155,7 @@ It shows the following functionalities:
def insert_table(world: scenario_gazebo.World) -> scenario_gazebo.Model:
# Insert objects from Fuel
- uri = lambda org, name: f"https://fuel.ignitionrobotics.org/{org}/models/{name}"
+ uri = lambda org, name: f"https://fuel.gazebosim.org/{org}/models/{name}"
# Download the cube SDF file
bucket_sdf = scenario_gazebo.get_model_file_from_fuel(
@@ -177,7 +177,7 @@ It shows the following functionalities:
) -> scenario_gazebo.Model:
# Insert objects from Fuel
- uri = lambda org, name: f"https://fuel.ignitionrobotics.org/{org}/models/{name}"
+ uri = lambda org, name: f"https://fuel.gazebosim.org/{org}/models/{name}"
# Download the cube SDF file
cube_sdf = scenario_gazebo.get_model_file_from_fuel(
@@ -188,7 +188,7 @@ It shows the following functionalities:
random_position = np.random.uniform(low=[0.2, -0.3, 1.01], high=[0.4, 0.3, 1.01])
# Get a unique name
- model_name = gym_ignition.utils.scenario.get_unique_model_name(
+ model_name = gym_gz.utils.scenario.get_unique_model_name(
world=world, model_name="cube"
)
@@ -250,7 +250,7 @@ It shows the following functionalities:
def move_fingers(
- panda: gym_ignition_environments.models.panda.Panda, action: FingersAction
+ panda: gym_gz_environments.models.panda.Panda, action: FingersAction
) -> None:
# Get the joints of the fingers
@@ -271,7 +271,7 @@ It shows the following functionalities:
# ====================
# Get the simulator and the world
- gazebo, world = gym_ignition.utils.scenario.init_gazebo_sim(
+ gazebo, world = gym_gz.utils.scenario.init_gazebo_sim(
step_size=0.001, real_time_factor=2.0, steps_per_run=1
)
@@ -281,7 +281,7 @@ It shows the following functionalities:
gazebo.run(paused=True)
# Insert the Panda manipulator
- panda = gym_ignition_environments.models.panda.Panda(
+ panda = gym_gz_environments.models.panda.Panda(
world=world, position=[-0.1, 0, 1.0]
)
diff --git a/docs/sphinx/getting_started/scenario.rst b/docs/sphinx/getting_started/scenario.rst
index e709081ad..8e5b56466 100644
--- a/docs/sphinx/getting_started/scenario.rst
+++ b/docs/sphinx/getting_started/scenario.rst
@@ -5,7 +5,7 @@ ScenarIO
In this getting started section we show how to use the Gazebo ScenarIO library to simulate a pendulum system.
We will use the models of the ground plane and the pendulum stored in the repository
-`gym_ignition_models `_.
+`gym_gz_models `_.
The final outcome of this section is shown in the following GIF:
@@ -13,7 +13,7 @@ The final outcome of this section is shown in the following GIF:
:align: center
.. tip::
- We fully support `Ignition Fuel `_, a constantly enlarging database of SDF models.
+ We fully support `Gz Fuel `_, a constantly enlarging database of SDF models.
You can use :py:meth:`~scenario.bindings.gazebo.get_model_file_from_fuel` to download any model of the database:
.. code-block:: python
@@ -23,7 +23,7 @@ The final outcome of this section is shown in the following GIF:
model_name = "Electrical Box"
model_file = scenario_gazebo.get_model_file_from_fuel(
- uri=f"https://fuel.ignitionrobotics.org/openrobotics/models/{model_name}")
+ uri=f"https://fuel.gazebosim.org/openrobotics/models/{model_name}")
.. _getting_started_scenario_python:
@@ -36,7 +36,7 @@ Python
.. code-block:: python
import time
- import gym_ignition_models
+ import gym_gz_models
from scenario import gazebo as scenario_gazebo
# Create the simulator
@@ -49,7 +49,7 @@ Python
# Get the default world and insert the ground plane
world = gazebo.get_world()
- world.insert_model(gym_ignition_models.get_model_file("ground_plane"))
+ world.insert_model(gym_gz_models.get_model_file("ground_plane"))
# Select the physics engine
world.set_physics_engine(scenario_gazebo.PhysicsEngine_dart)
@@ -60,7 +60,7 @@ Python
gazebo.run(paused=True)
# Insert a pendulum
- world.insert_model(gym_ignition_models.get_model_file("pendulum"))
+ world.insert_model(gym_gz_models.get_model_file("pendulum"))
gazebo.run(paused=True)
time.sleep(3)
diff --git a/docs/sphinx/index.html b/docs/sphinx/index.html
index 42fcf661c..c15f49865 100644
--- a/docs/sphinx/index.html
+++ b/docs/sphinx/index.html
@@ -4,6 +4,6 @@
Redirecting to master branch
-
+