concepts.benchmark.gridworld.minigrid.gym_minigrid.minigrid.Door#

class Door[source]#

Bases: WorldObj

Methods

can_contain()

Can this contain another object?

can_overlap()

The agent can only walk over this cell when the door is open

can_pickup()

Can the agent pick this up?

decode(type_idx, color_idx, state)

Create an object from a 3-tuple state description

encode()

Encode the a description of this object as a 3-tuple of integers

render(img)

Draw this object with the given renderer

see_behind()

Can the agent see behind this object?

toggle(env, pos)

Method to trigger/toggle an action this object performs

__init__(color, is_open=False, is_locked=False)[source]#
__new__(**kwargs)#
can_contain()#

Can this contain another object?

can_overlap()[source]#

The agent can only walk over this cell when the door is open

can_pickup()#

Can the agent pick this up?

static decode(type_idx, color_idx, state)#

Create an object from a 3-tuple state description

encode()[source]#

Encode the a description of this object as a 3-tuple of integers

render(img)[source]#

Draw this object with the given renderer

see_behind()[source]#

Can the agent see behind this object?

toggle(env, pos)[source]#

Method to trigger/toggle an action this object performs