File tree 6 files changed +13
-1
lines changed 6 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ public void UpdateWithIsarInfo(IsarTask isarTask)
129
129
IsarTaskType . TakeThermalImage => InspectionType . ThermalImage ,
130
130
IsarTaskType . TakeVideo => InspectionType . Video ,
131
131
IsarTaskType . TakeThermalVideo => InspectionType . ThermalVideo ,
132
+ IsarTaskType . TakeGasMeasurement => InspectionType . GasMeasurement ,
132
133
_ => throw new ArgumentException (
133
134
$ "ISAR task type '{ isarTask . TaskType } ' not supported for inspections"
134
135
) ,
@@ -168,6 +169,9 @@ public bool IsSupportedInspectionType(IList<RobotCapabilitiesEnum> capabilities)
168
169
InspectionType . ThermalVideo => capabilities . Contains (
169
170
RobotCapabilitiesEnum . take_thermal_video
170
171
) ,
172
+ InspectionType . GasMeasurement => capabilities . Contains (
173
+ RobotCapabilitiesEnum . take_gas_measurement
174
+ ) ,
171
175
InspectionType . Audio => capabilities . Contains ( RobotCapabilitiesEnum . record_audio ) ,
172
176
_ => false ,
173
177
} ;
@@ -190,6 +194,7 @@ public enum InspectionType
190
194
Video ,
191
195
ThermalVideo ,
192
196
Audio ,
197
+ GasMeasurement ,
193
198
}
194
199
195
200
public enum AnalysisType
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ public enum RobotCapabilitiesEnum
192
192
take_image ,
193
193
take_video ,
194
194
take_thermal_video ,
195
+ take_gas_measurement ,
195
196
record_audio ,
196
197
localize ,
197
198
auto_localize ,
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public MissionTaskType GetMissionTaskTypeFromIsarTask(string isarTaskType)
37
37
"take_thermal_image" => MissionTaskType . Inspection ,
38
38
"take_thermal_video" => MissionTaskType . Inspection ,
39
39
"return_to_home" => MissionTaskType . ReturnHome ,
40
+ "take_gas_measurement" => MissionTaskType . Inspection ,
40
41
41
42
_ => throw new ArgumentException ( $ "ISAR Task type '{ isarTaskType } ' not supported") ,
42
43
} ;
Original file line number Diff line number Diff line change @@ -333,7 +333,9 @@ public async Task<IList<MissionTask>> MissionTasksFromEchoTag(EchoTag echoTag)
333
333
{
334
334
var inspections = echoTag
335
335
. Inspections . Select ( inspection => new Inspection (
336
- inspectionType : inspection . InspectionType ,
336
+ inspectionType : inspection . InspectionType != InspectionType . Audio
337
+ ? inspection . InspectionType
338
+ : InspectionType . GasMeasurement ,
337
339
videoDuration : inspection . TimeInSeconds ,
338
340
inspectionTarget : inspection . InspectionPoint ,
339
341
inspectionTargetName : inspection . InspectionPointName ,
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public static IsarTaskType TaskTypeFromString(string isarClassName)
36
36
"take_video" => IsarTaskType . TakeVideo ,
37
37
"take_thermal_image" => IsarTaskType . TakeThermalImage ,
38
38
"take_thermal_video" => IsarTaskType . TakeThermalVideo ,
39
+ "take_gas_measurement" => IsarTaskType . TakeGasMeasurement ,
39
40
"return_to_home" => IsarTaskType . ReturnToHome ,
40
41
"move_arm" => IsarTaskType . MoveArm ,
41
42
_ => throw new ArgumentException (
@@ -63,6 +64,7 @@ public enum IsarTaskType
63
64
TakeVideo ,
64
65
TakeThermalImage ,
65
66
TakeThermalVideo ,
67
+ TakeGasMeasurement ,
66
68
RecordAudio ,
67
69
MoveArm ,
68
70
}
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ export enum RobotCapabilitiesEnum {
58
58
take_image = 'take_image' ,
59
59
take_video = 'take_video' ,
60
60
take_thermal_video = 'take_thermal_video' ,
61
+ take_gas_measurement = 'take_gas_measurement' ,
61
62
record_audio = 'record_audio' ,
62
63
localize = 'localize' ,
63
64
auto_localize = 'auto_localize' ,
You can’t perform that action at this time.
0 commit comments