unreal.FloatObservation
¶
- class unreal.FloatObservation(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LearningAgentsObservation
A simple float observation. Used as a catch-all for situations where a more type-specific observation does not exist yet.
C++ Source:
Plugin: LearningAgents
Module: LearningAgents
File: LearningAgentsObservations.h
Editor Properties: (see get_editor_property/set_editor_property)
interactor
(LearningAgentsInteractor): [Read-Only] Reference to the Interactor this observation is associated with.
- classmethod add_float_observation(interactor, name='None', scale=1.000000) FloatObservation ¶
Adds a new float observation to the given agent interactor. Call during ULearningAgentsInteractor::SetupObservations event.
- Parameters:
interactor (LearningAgentsInteractor) – The agent interactor to add this observation to.
name (Name) – The name of this new observation. Used for debugging.
scale (float) – Used to normalize the data for the observation.
- Returns:
The newly created observation.
- Return type: