This commit is contained in:
gac-S_Changer
2018-08-10 09:56:46 +02:00
parent f268369797
commit 8ee20fa0ca
4 changed files with 56 additions and 16 deletions

View File

@@ -173,6 +173,18 @@ public class Controller {
}
}
public String getWorkingMode(){
try {
return String.valueOf(getMainFrame().eval("robot.working_mode", true));
} catch (Exception ex) {
return "Unknown";
}
}
public boolean isLocalMode(){
return getWorkingMode().equals("local");
}
public void imageDetectPucks() throws Context.ContextStateException {
imageDetectPucks(null, null, null);
}