ethicalgardeners.observationΒΆ

The Observation module defines how agents perceive the environment in the Ethical Gardeners simulation.

This module implements different observation strategies to control what information agents can access about the environment. It provides:

1. ObservationStrategy: An abstract strategy interface for implementing custom observation methods

  1. Two concrete implementations:

Observations are formatted as numpy arrays compatible with Gymnasium environments.

Custom observation strategies can be implemented by extending the ObservationStrategy class and implementing the required methods.

members:

Classes

ObservationStrategy()

Abstract base class defining the interface for observation strategies.

PartialObservation([obs_range])

Strategy that provides agents with a limited view around their position.

TotalObservation(grid_world)

Strategy that provides agents with a complete view of the entire grid.