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.

DirectRLEnvWarp

The superclass for the direct workflow to design environments.

ManagerBasedEnvWarp

The base environment for the manager-based workflow (experimental fork).

ManagerBasedRLEnvWarp

The superclass for the manager-based workflow reinforcement learning-based environments.

class isaaclab_experimental.deprecated.envs.DirectRLEnvWarp[source]#

Bases: DirectRLEnv

The 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 the gym.Env over 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 to step(), i.e. after the environment is created. After that, the step() function handles the reset of terminated sub-environments. in a vectorized environment.

Methods:

__init__(cfg[, render_mode])

Initialize the environment.

__new__(cls, *args, **kwargs)

__init__(cfg: DirectRLEnvCfg, render_mode: str | None = None, **kwargs)[source]#

Initialize the environment.

Parameters:
  • cfg – The configuration object for the environment.

  • render_mode – The render mode for the environment. Defaults to None, which is similar to "human".

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: object

The base environment for the manager-based workflow (experimental fork).

The implementation mirrors isaaclab.envs.ManagerBasedEnv to provide an isolated base class for experimental Warp-based workflows.

Methods:

__init__(cfg)

Initialize the environment.

__new__(*args, **kwargs)

__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, Env

The superclass for the manager-based workflow reinforcement learning-based environments.

This class inherits from ManagerBasedEnvWarp and 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 the num_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 the gym.Env over 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 to step(), i.e. after the environment is created. After that, the step() 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[, render_mode])

Initialize the environment.

__new__(cls, *args, **kwargs)

__init__(cfg: ManagerBasedRLEnvCfg, render_mode: str | None = None, **kwargs)[source]#

Initialize the environment.

Parameters:
  • cfg – The configuration for the environment.

  • render_mode – The render mode for the environment. Defaults to None, which is similar to "human".

static __new__(cls, *args: Any, **kwargs: Any) → Any#