concepts.benchmark.gridworld.crafting_world.crafting_world_env.CraftingWorldRenderer#

class CraftingWorldRenderer[source]#

Bases: object

Methods

render(simulator)

Render the current state of the simulator.

__init__(map_w, map_h, max_inventory)[source]#
Parameters:
  • map_w (int)

  • map_h (int)

  • max_inventory (int)

__new__(**kwargs)#
render(simulator)[source]#

Render the current state of the simulator.

Parameters:

simulator (CraftingWorldSimulator) – the simulator. The function will read out the current state of the simulator.

Returns:

the rendered image.

Return type:

ndarray