1 using System.Collections.Generic;
5 namespace droid.Runtime.Prototyping.Sensors.BoundingBox {
9 [AddComponentMenu(SensorComponentMenuPath._ComponentMenuPath
10 +
"Experimental/BoundingBox" 11 + SensorComponentMenuPath._Postfix)]
13 [RequireComponent(typeof(Utilities.GameObjects.BoundingBoxes.BoundingBox))]
19 public override string PrototypingTypeName {
get {
return "BoundingBox"; } }
21 Utilities.GameObjects.BoundingBoxes.BoundingBox _bounding_box;
22 [SerializeField]
string _observationValue;
28 this._bounding_box = this.GetComponent<Utilities.GameObjects.BoundingBoxes.BoundingBox>();
34 public override IEnumerable<float> FloatEnumerable {
get {
return new List<float>(); } }
40 this.ObservationValue = this._bounding_box.BoundingBoxCoordinatesWorldSpaceAsJson;
46 public string ObservationValue {
47 get {
return this._observationValue; }
48 set { this._observationValue = value; }
51 public override string ToString() {
return this.ObservationValue; }
override void UpdateObservation()
override string ToString()