Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 2.13 KB

index.rst

File metadata and controls

76 lines (51 loc) · 2.13 KB

General Information

The minerl package includes several environments as follows. This page describes each of the included environments, provides usage samples, and describes the exact action and observation space provided by each environment!

Note

All environments offer a default no-op action via env.action_space.no_op() and a random action via env.action_space.sample().

Observation Space

Most environments use the same observation space (just an RGB image):

Dict(pov:Box(low=0, high=255, shape=(360, 640, 3)))

Action Space

Most environments use the same action space, which is a dictionary containing a multitude of different actions. Note that Discrete and Box are actions spaces defined by Gym.

from minerl.herobraine.env_specs.basalt_specs import FindCaveEnvSpec from minerl.utils.documentation import _format_dict

print(_format_dict(FindCaveEnvSpec().action_space))

Here is an example action:

{"ESC":0, "camera":[10, 45], "swapHands":1}

ESC

The ESC action may be used in some environments to end the episode (e.g., BASALT environments). Otherwise it does nothing.

inventory

The inventory opens the inventory GUI. This will yield an observation image something like the following:

image

camera

This action changes the orientation of the agent's heading by the corresponding number of degrees. The head changes its orientation pitch by the first component and its yaw by the second component. Both components are limited to [-180, 180] inclusive.

pickItem

When an agent looks at a block and executes this action, if that block type is in the agents inventory, it will be put it into the agent's main hand.

swapHands

Swaps the items in agent main hand and secondary slot.