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
Two concrete implementations:
TotalObservation: Complete grid visibilityPartialObservation: Limited visibility range
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
Abstract base class defining the interface for observation strategies. |
|
|
Strategy that provides agents with a limited view around their position. |
|
Strategy that provides agents with a complete view of the entire grid. |