isaaclab_experimental.deprecated.envs#
Warp manager-based and direct environments, which --frontend warp builds from stable task definitions.
Additional Public Classes#
The following classes are part of the public isaaclab_experimental.deprecated.envs API.
The superclass for the direct workflow to design environments. |
|
The base environment for the manager-based workflow (experimental fork). |
|
The superclass for the manager-based workflow reinforcement learning-based environments. |
- class isaaclab_experimental.deprecated.envs.DirectRLEnvWarp[source]#
Bases:
DirectRLEnvThe superclass for the direct workflow to design environments.
This class implements the core functionality for reinforcement learning (RL) environments. It is designed to be used with any RL library. The class is designed to be used with vectorized environments, i.e., the environment is expected to be run in parallel with multiple sub-environments.
While the environment itself is implemented as a vectorized environment, we do not inherit from
gym.vector.VectorEnv. This is mainly because the class adds various methods (for wait and asynchronous updates) which are not required. Additionally, each RL library typically has its own definition for a vectorized environment. Thus, to reduce complexity, we directly use thegym.Envover here and leave it up to library-defined wrappers to take care of wrapping this environment for their agents.Note
For vectorized environments, it is recommended to only call the
reset()method once before the first call tostep(), i.e. after the environment is created. After that, thestep()function handles the reset of terminated sub-environments. in a vectorized environment.Methods:
- __init__(cfg: DirectRLEnvCfg, render_mode: str | None = None, **kwargs)[source]#
Initialize the environment.
- Parameters:
- Raises:
RuntimeError – If a simulation context already exists. The environment must always create one since it configures the simulation context and controls the simulation.
- static __new__(cls, *args: Any, **kwargs: Any) Any#
- class isaaclab_experimental.deprecated.envs.ManagerBasedEnvWarp[source]#
Bases:
objectThe base environment for the manager-based workflow (experimental fork).
The implementation mirrors
isaaclab.envs.ManagerBasedEnvto provide an isolated base class for experimental Warp-based workflows.Methods:
- __init__(cfg: ManagerBasedEnvCfg)[source]#
Initialize the environment.
- Parameters:
cfg¶ – The configuration object for the environment.
- Raises:
RuntimeError – If a simulation context already exists. The environment must always create one since it configures the simulation context and controls the simulation.
- classmethod __new__(*args, **kwargs)#
- class isaaclab_experimental.deprecated.envs.ManagerBasedRLEnvWarp[source]#
Bases:
ManagerBasedEnvWarp,EnvThe superclass for the manager-based workflow reinforcement learning-based environments.
This class inherits from
ManagerBasedEnvWarpand implements the core functionality for reinforcement learning-based environments. It is designed to be used with any RL library. The class is designed to be used with vectorized environments, i.e., the environment is expected to be run in parallel with multiple sub-environments. The number of sub-environments is specified using thenum_envs.Each observation from the environment is a batch of observations for each sub- environments. The method
step()is also expected to receive a batch of actions for each sub-environment.While the environment itself is implemented as a vectorized environment, we do not inherit from
gym.vector.VectorEnv. This is mainly because the class adds various methods (for wait and asynchronous updates) which are not required. Additionally, each RL library typically has its own definition for a vectorized environment. Thus, to reduce complexity, we directly use thegym.Envover here and leave it up to library-defined wrappers to take care of wrapping this environment for their agents.Note
For vectorized environments, it is recommended to only call the
reset()method once before the first call tostep(), i.e. after the environment is created. After that, thestep()function handles the reset of terminated sub-environments. This is because the simulator does not support resetting individual sub-environments in a vectorized environment.Methods:
- __init__(cfg: ManagerBasedRLEnvCfg, render_mode: str | None = None, **kwargs)[source]#
Initialize the environment.
- static __new__(cls, *args: Any, **kwargs: Any) Any#