@Override public void buttonPressed(boolean status) { PrintTools.info("Button " + buttonIndex + " pushed: " + status); } }, button);
private String assertTrue(String datasetName, String message, boolean condition) { if (VISUALIZE || DEBUG) { if (!condition) PrintTools.error(datasetName + ": " + message); } return !condition ? "\n" + message : ""; }
@Override public void createAndSetContactControllerToARobot() { PrintTools.warn(this, "Contact points currently unimplemented for this class"); }
public void setSlider(int channel, String name, YoVariableHolder holder, double min, double max, double exponent) { if (!holder.hasUniqueVariable(name)) { PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + name); } YoVariable<?> variable = holder.getVariable(name); if (variable == null) { PrintTools.error("Ahhhhhhhhh, yoVariable name " + name + " was not found in the registry. It's not getting added to the sliderboard"); return; } setSlider(channel, variable, min, max, exponent); }
public void writeData() throws IOException { PrintTools.debug(DEBUG, this, "writeData()"); tcpYoWhiteBoard.writeData(); }
public void setSlider(int channel, String varName, String sliderName, YoVariableHolder holder, double min, double max, double exponent) { if (!holder.hasUniqueVariable(varName)) { PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + varName); } YoVariable<?> variable = holder.getVariable(varName); if (variable == null) { PrintTools.error("Ahhhhhhhhh, yoVariable name " + varName + " was not found in the registry. It's not getting added to the sliderboard"); return; } setSlider(channel, holder.getVariable(varName), sliderName, min, max, exponent); }
public void readData() throws IOException { PrintTools.debug(DEBUG, this, "readData()"); tcpYoWhiteBoard.readData(); }
@Override public void connected() { PrintTools.info("Connected to Valve Detector."); }
private String assertTrue(String datasetName, String message, boolean condition) { if (VISUALIZE || DEBUG) { if (!condition) PrintTools.error(datasetName + ": " + message); } return !condition ? "\n" + message : ""; }
@Override public void addContactPoints(List<? extends ExternalForcePoint> externalForcePoints) { PrintTools.warn(this, "Contact points currently unimplemented for this class"); }
public void wakeUp() { if (debug) PrintTools.debug(this, "Waking up"); initialize.set(true); }
private String assertTrue(String datasetName, String message, boolean condition) { if (VISUALIZE || DEBUG) { if (!condition) PrintTools.error(datasetName + ": " + message); } return !condition ? "\n" + message : ""; }
@Override public List<? extends Robot> getEnvironmentRobots() { PrintTools.warn(this, "Environment robots currently unimplemented for this class"); return null; }
public void setInput(HandDesiredConfigurationMessage handDesiredConfigurationMessage) { this.outgoingHandDesiredConfigurationMessage = handDesiredConfigurationMessage; hasInputBeenSet.set(true); if (DEBUG) PrintTools.debug(this, "Input has been set: " + outgoingHandDesiredConfigurationMessage); }
public static List<VisibilityGraphsUnitTestDataset> loadAllDatasets(Class<?> loadingClass) { List<String> childDirectories = PlanarRegionFileTools.listResourceDirectoryContents(loadingClass, TEST_DATA_URL); List<VisibilityGraphsUnitTestDataset> datasets = new ArrayList<>(); for (int i = 0; i < childDirectories.size(); i++) { PrintTools.info("trying to load:"); PrintTools.info(TEST_DATA_URL + "/" + childDirectories.get(i)); datasets.add(loadDataset(loadingClass, TEST_DATA_URL + "/" + childDirectories.get(i))); } return datasets; }
public static Path getRunAllTestSuitesPath(Map<String, AgileTestingClassPath> nameToPathMap) { AgileTestingClassPath runAllFastTestSuitesPath = nameToPathMap.get(RUN_ALL_FAST_TEST_SUITES_CLASS_NAME); if (runAllFastTestSuitesPath == null) { PrintTools.error(SourceTools.class, "Please create a file RunAllFastTestSuites.java in RunAllBambooTestSuites"); return null; } return runAllFastTestSuitesPath.getPath().getParent(); } }
private static void print(String output) { PrintTools.warn("Skully says he discovered something mysterious:\n " + output.replace("\n", "\n ")); } }
@Override public void initialize() { PrintTools.debug(this, "CutforceSimulator initialized"); doControl(); }
public RigidBodyTransform detectChessboard(BufferedImage image, boolean attemptExtremePitchDetection) { if (!intrinsicSet) { PrintTools.info("Intrinsic parameters not set"); return null; } return detector.detect(image, attemptExtremePitchDetection); } }