File size: 457 Bytes
a853d77
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from gymnasium.envs.registration import register
from warehouse_env import WarehouseEnv
# Example for the CartPole environment
register(
    # unique identifier for the env `name-version`
    id="WarehouseEnv",
    # path to the class for creating the env
    # Note: entry_point also accept a class as input (and not only a string)
    entry_point=WarehouseEnv,
    # Max number of steps per episode, using a `TimeLimitWrapper`
    max_episode_steps=500,
)