Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit f1c4dee

Browse files
committed
added roboy detect for cmd line, disabled face service call
1 parent bd1157f commit f1c4dee

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/roboy/io/CommandLineInput.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package roboy.io;
22

3+
import roboy.linguistics.Linguistics;
4+
import roboy.util.Maps;
5+
36
import java.util.Scanner;
47

58
/**
@@ -12,6 +15,9 @@ public class CommandLineInput implements InputDevice{
1215
@Override
1316
public Input listen() {
1417
String input = sc.nextLine();
18+
if ( input.contains("roboy") ){
19+
return new Input(input, Maps.stringObjectMap(Linguistics.ROBOYDETECTED,true));
20+
}
1521
return new Input(input);
1622
}
1723

src/main/java/roboy/io/EmotionOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private void ChangeFaceState(FaceAction action)
5050
System.out.println("Face state: " + action.getState());
5151

5252
ServiceRequest request = new ServiceRequest(params);
53-
FaceState.callServiceAndWait(request);
53+
// FaceState.callServiceAndWait(request);
5454
}
5555

5656
}

0 commit comments

Comments
 (0)