Module moog.observers

Observers

The MOOG Environment class takes an observer keyword argument that is a dictionary of observer instances. These observers are called at every step to create an observation for the timestep (i.e. an observation of the environment to pass to the subject).

Observers must satisfy the API of AbstractObserver. This directory currently only contains two observers, a PIL-base renderer and an observer that returns the raw environment state. All other files are supporting file for those.

However, as with all other components in MOOG, you are welcome to implement your own custom observers in your configs (or in separate files that your configs import), just be sure to inherit from AbstractObserver.

Expand source code
""".. include:: README.md"""

from .abstract_observer import AbstractObserver
from .pil_renderer import PILRenderer
from .raw_state import RawState
from . import polygon_modifiers

Sub-modules

moog.observers.abstract_observer

Abstract observer.

moog.observers.color_maps

Functions to transform between color spaces for rendering.

moog.observers.pil_renderer

Python Image Library (PIL/Pillow) renderer.

moog.observers.polygon_modifiers

Polygon modifier classes …

moog.observers.raw_state

Raw state observer.