File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ internal struct EventObservationSpec
97
97
public string SensorName ;
98
98
public string CompressionType ;
99
99
public int BuiltInSensorType ;
100
+ public int ObservationType ;
100
101
public EventObservationDimensionInfo [ ] DimensionInfos ;
101
102
102
103
public static EventObservationSpec FromSensor ( ISensor sensor )
@@ -119,6 +120,7 @@ public static EventObservationSpec FromSensor(ISensor sensor)
119
120
SensorName = sensor . GetName ( ) ,
120
121
CompressionType = sensor . GetCompressionSpec ( ) . SensorCompressionType . ToString ( ) ,
121
122
BuiltInSensorType = ( int ) builtInSensorType ,
123
+ ObservationType = ( int ) obsSpec . ObservationType ,
122
124
DimensionInfos = dimInfos ,
123
125
} ;
124
126
}
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ public void TestModelEvent()
65
65
Assert . AreEqual ( 2 , continuousEvent . ObservationSpecs . Count ) ;
66
66
Assert . AreEqual ( 3 , continuousEvent . ObservationSpecs [ 0 ] . DimensionInfos . Length ) ;
67
67
Assert . AreEqual ( 20 , continuousEvent . ObservationSpecs [ 0 ] . DimensionInfos [ 0 ] . Size ) ;
68
+ Assert . AreEqual ( 0 , continuousEvent . ObservationSpecs [ 0 ] . ObservationType ) ;
68
69
Assert . AreEqual ( ( int ) DimensionProperty . TranslationalEquivariance , continuousEvent . ObservationSpecs [ 0 ] . DimensionInfos [ 0 ] . Flags ) ;
69
70
Assert . AreEqual ( ( int ) DimensionProperty . None , continuousEvent . ObservationSpecs [ 0 ] . DimensionInfos [ 2 ] . Flags ) ;
70
71
Assert . AreEqual ( "None" , continuousEvent . ObservationSpecs [ 0 ] . CompressionType ) ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public void TestRemotePolicyEvent()
41
41
Assert . AreEqual ( 2 , remotePolicyEvent . ObservationSpecs . Count ) ;
42
42
Assert . AreEqual ( 3 , remotePolicyEvent . ObservationSpecs [ 0 ] . DimensionInfos . Length ) ;
43
43
Assert . AreEqual ( 20 , remotePolicyEvent . ObservationSpecs [ 0 ] . DimensionInfos [ 0 ] . Size ) ;
44
+ Assert . AreEqual ( 0 , remotePolicyEvent . ObservationSpecs [ 0 ] . ObservationType ) ;
44
45
Assert . AreEqual ( "None" , remotePolicyEvent . ObservationSpecs [ 0 ] . CompressionType ) ;
45
46
Assert . AreEqual ( Test3DSensor . k_BuiltInSensorType , remotePolicyEvent . ObservationSpecs [ 0 ] . BuiltInSensorType ) ;
46
47
You can’t perform that action at this time.
0 commit comments