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

Commit

Permalink
added roboy detect for cmd line, disabled face service call
Browse files Browse the repository at this point in the history
  • Loading branch information
missxa committed Apr 26, 2017
1 parent bd1157f commit f1c4dee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/roboy/io/CommandLineInput.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package roboy.io;

import roboy.linguistics.Linguistics;
import roboy.util.Maps;

import java.util.Scanner;

/**
Expand All @@ -12,6 +15,9 @@ public class CommandLineInput implements InputDevice{
@Override
public Input listen() {
String input = sc.nextLine();
if ( input.contains("roboy") ){
return new Input(input, Maps.stringObjectMap(Linguistics.ROBOYDETECTED,true));
}
return new Input(input);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/roboy/io/EmotionOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void ChangeFaceState(FaceAction action)
System.out.println("Face state: " + action.getState());

ServiceRequest request = new ServiceRequest(params);
FaceState.callServiceAndWait(request);
// FaceState.callServiceAndWait(request);
}

}

0 comments on commit f1c4dee

Please sign in to comment.