Source code for palaestrai.environment.environment_baseline
"""Defines the initial state (baseline) of an initialized ::`Environment`."""from__future__importannotationsimportdataclassesfromtypingimportTYPE_CHECKING,Listfrompalaestrai.typesimportSimTimeifTYPE_CHECKING:frompalaestrai.agentimportSensorInformation,ActuatorInformation
[docs]@dataclasses.dataclassclassEnvironmentBaseline:"""An :class:`~Environment`'s baseline after initializing This data class contains data about an environment after it has been started, but no actor has acted yet. It contains the sensors/actuator available, initial values for sensors, as well as the starting time in the environment. Attributes ---------- sensors_available : List[SensorInformation] Sensors available in the environment, along with initial readings actuators_available : List[ActuatorInformation] Actuators available simtime: palaestrai.types.SimTime (default: SimTime(simtime_ticks=1)) Environment starting time """sensors_available:List[SensorInformation]actuators_available:List[ActuatorInformation]simtime:SimTime=dataclasses.field(default_factory=lambda:SimTime(simtime_ticks=1,simtime_timestamp=None))