Exemplo n.º 1
0
  @Override
  public boolean processShot(Shot shot) {
    if (rand.nextFloat() < prob) {
      if (useTTS) TrainingExerciseBase.playSound(new File("sounds/voice/shootoff-malfunction.wav"));
      return false;
    }

    return true;
  }
Exemplo n.º 2
0
  @BeforeClass
  public static void setUpBaseClass() {
    System.setProperty("shootoff.home", System.getProperty("user.dir"));
    Configuration.disableErrorReporting();
    TrainingExerciseBase.silence(true);

    nu.pattern.OpenCV.loadShared();

    Logger rootLogger = (Logger) LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
    rootLogger.detachAndStopAllAppenders();
  }