arlbench.core.environments.xland_env

XLand environment adapter.

Classes

XLandEnv(env_name, n_envs[, env_kwargs, ...])

A xland-based RL environment.

class arlbench.core.environments.xland_env.XLandEnv(env_name, n_envs, env_kwargs=None, cnn_policy=False)[source]

Bases: Environment

A xland-based RL environment.

property action_space

Action space of the environment.

property observation_space

Observation space of the environment.

reset(rng)[source]

Resets the environment.

sample_action(rng)[source]

Samples a random action from the action space.

step(env_state, action, rng)[source]

Steps the environment forward by one step.