-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Exp] Cherry-pick direct warp envs from dev/newton #4905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AntoineRichard
merged 4 commits into
isaac-sim:develop
from
hujc7:jichuanh/direct-warp-envs
Mar 13, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c5259f7
Add experimental warp envs and infrastructure from dev/newton
hujc7 1769bbe
Merge branch 'develop' into jichuanh/direct-warp-envs
AntoineRichard 7eaaa3f
Update source/isaaclab_experimental/setup.py
AntoineRichard 2ed1ac9
Merge branch 'develop' into jichuanh/direct-warp-envs
AntoineRichard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [package] | ||
|
|
||
| # Note: Semantic Versioning is used: https://semver.org/ | ||
| version = "0.0.1" | ||
|
|
||
| # Description | ||
| title = "Experimental playground for upcoming IsaacLab features" | ||
| description="Provides early access to future features that are not yet `production-ready`." | ||
| readme = "docs/README.md" | ||
| repository = "https://github.com/isaac-sim/IsaacLab" | ||
| category = "robotics" | ||
| keywords = ["robotics", "simulation", "experimental"] | ||
|
|
||
| [dependencies] | ||
| "isaaclab" = {} | ||
|
|
||
| [core] | ||
| reloadable = false | ||
|
|
||
| [[python.module]] | ||
| name = "isaaclab_experimental" |
20 changes: 20 additions & 0 deletions
20
source/isaaclab_experimental/isaaclab_experimental/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| """Package containing the core framework.""" | ||
|
|
||
| import os | ||
| import toml | ||
| from enum import IntEnum | ||
|
|
||
| # Conveniences to other module directories via relative paths | ||
| ISAACLAB_EXPERIMENTAL_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../")) | ||
| """Path to the extension source directory.""" | ||
|
|
||
| ISAACLAB_EXPERIMENTAL_METADATA = toml.load(os.path.join(ISAACLAB_EXPERIMENTAL_EXT_DIR, "config", "extension.toml")) | ||
| """Extension metadata dictionary parsed from the extension.toml file.""" | ||
|
|
||
| # Configure the module-level variables | ||
| __version__ = ISAACLAB_EXPERIMENTAL_METADATA["package"]["version"] |
51 changes: 51 additions & 0 deletions
51
source/isaaclab_experimental/isaaclab_experimental/envs/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| """Sub-package for environment definitions. | ||
|
|
||
| Environments define the interface between the agent and the simulation. | ||
| In the simplest case, the environment provides the agent with the current | ||
| observations and executes the actions provided by the agent. However, the | ||
| environment can also provide additional information such as the current | ||
| reward, done flag, and information about the current episode. | ||
|
|
||
| There are two types of environment designing workflows: | ||
|
|
||
| * **Manager-based**: The environment is decomposed into individual components (or managers) | ||
| for different aspects (such as computing observations, applying actions, and applying | ||
| randomization. The users mainly configure the managers and the environment coordinates the | ||
| managers and calls their functions. | ||
| * **Direct**: The user implements all the necessary functionality directly into a single class | ||
| directly without the need for additional managers. | ||
|
|
||
| Based on these workflows, there are the following environment classes for single and multi-agent RL: | ||
|
|
||
| **Single-Agent RL:** | ||
|
|
||
| * :class:`ManagerBasedEnv`: The manager-based workflow base environment which only provides the | ||
| agent with the current observations and executes the actions provided by the agent. | ||
| * :class:`ManagerBasedRLEnv`: The manager-based workflow RL task environment which besides the | ||
| functionality of the base environment also provides additional Markov Decision Process (MDP) | ||
| related information such as the current reward, done flag, and information. | ||
| * :class:`DirectRLEnv`: The direct workflow RL task environment which provides implementations for | ||
| implementing scene setup, computing dones, performing resets, and computing reward and observation. | ||
|
|
||
| **Multi-Agent RL (MARL):** | ||
|
|
||
| * :class:`DirectMARLEnv`: The direct workflow MARL task environment which provides implementations for | ||
| implementing scene setup, computing dones, performing resets, and computing reward and observation. | ||
|
|
||
| For more information about the workflow design patterns, see the `Task Design Workflows`_ section. | ||
|
|
||
| .. _`Task Design Workflows`: https://isaac-sim.github.io/IsaacLab/source/features/task_workflows.html | ||
| """ | ||
|
|
||
| from .direct_rl_env_warp import DirectRLEnvWarp # noqa: F401 | ||
| from .interactive_scene_warp import InteractiveSceneWarp # noqa: F401 | ||
|
|
||
| __all__ = [ | ||
| "DirectRLEnvWarp", | ||
| "InteractiveSceneWarp", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes — this triggers gym registration for experimental tasks (
Isaac-Cartpole-Direct-Warp-v0, etc.). Thecontextlib.suppress(ImportError)makes it optional so users withoutisaaclab_tasks_experimentalinstalled are unaffected.