2 using System.Collections.Generic;
10 namespace droid.Runtime.Prototyping.Sensors {
21 get {
return this._environment; }
22 set { this._environment = value; }
28 public abstract IEnumerable<float> FloatEnumerable {
get; }
33 public abstract void UpdateObservation();
45 protected sealed
override void Setup() {
47 this.UpdateObservation();
58 this.ParentEnvironment =
59 NeodroidUtilities.RegisterComponent(this.ParentEnvironment,
this);
70 if (Application.isPlaying) {
71 if (this.FloatEnumerable == null || !this.FloatEnumerable.Any()) {
74 Debug.LogWarning($
"FloatEnumerable of {this.Identifier} is empty! Maybe you forget an assignment to it when updating observations");
86 return this.FloatEnumerable.Any() ?
string.Join(
",", this.FloatEnumerable) :
"Empty FloatEnumerable";
91 [Header(
"References", order = 99)]
95 [Header(
"Normalisation", order = 100)]
97 bool _normalise_observation;
override void RegisterComponent()
override void UnRegisterComponent()
sealed override void Setup()
override string ToString()