Environment Wrappers¶
- class xuance.environment.utils.wrapper.XuanCeAtariEnvWrapper(env, **kwargs)[源代码]¶
-
Wraps an Atari environment that can run in XuanCe.
- class xuance.environment.utils.wrapper.XuanCeEnvWrapper(env, **kwargs)[源代码]¶
基类:
objectWraps an environment for single-agent system that can run in XuanCe.
- property action_space¶
Returns the action space of the environment.
- property max_episode_steps: int¶
Returns the maximum of episode steps.
- property metadata: dict¶
Returns the environment metadata.
- property observation_space: gymnasium.spaces.Space¶
Returns the observation space of the environment.
- property render_mode: str | None¶
Returns the environment render_mode.
- property unwrapped¶
Returns the base environment of the wrapper.
- class xuance.environment.utils.wrapper.XuanCeMultiAgentEnvWrapper(env, **kwargs)[源代码]¶
-
Wraps an environment for multi-agent system that can run in XuanCe.
- property agent_mask¶
Returns mask variables to mark alive agents in multi-agent environment.
- property avail_actions¶
Returns mask variables to mark available actions for each agent.
- property env_info: dict | None¶
Returns the information of the environment.
- property state¶
Returns global states in the multi-agent environment.
- property state_space: gymnasium.spaces.Space¶
Returns the global state space of the environment.