Skip to content

Commit ae324b9

Browse files
fix: handle plan failure
1 parent 66fde9d commit ae324b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/agt/luminosityControl.asl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,17 @@
6464
makeArtifact(ResultString, "artifact.environment.roomartifact.AmbientLight", [RoomId], AmbientLightId);
6565
setIntensity(Value) [aid(AmbientLightId)];
6666
disposeArtifact(AmbientLightId).
67+
-!setAmbientLight(RoomId, Value)
68+
<- true.
6769

6870
// Surgical light set goal
6971
+!setSurgicalLight(RoomId, Value)
7072
<- .concat(RoomId, "-surgicallight", ResultString);
7173
makeArtifact(ResultString, "artifact.environment.roomartifact.SurgicalLight", [RoomId], SurgicalLightId);
7274
setIntensity(Value) [aid(SurgicalLightId)];
7375
disposeArtifact(SurgicalLightId).
76+
-!setSurgicalLight(RoomId, Value)
77+
<- true.
7478

7579
// Obtain the operating block observer
7680
+?obtainObserver(OperatingBlockObserverId)

0 commit comments

Comments
 (0)