@Override public void buttonPressed(boolean status) { PrintTools.info("Button " + buttonIndex + " pushed: " + status); } }, button);
@Override public void sliderMoved(double sliderPercentage) { PrintTools.info("Slider " + sliderIndex + " moved to: " + sliderPercentage); } }, slider);
@Override public void connected() { PrintTools.info("Connected to Valve Detector."); }
@Override public void disconnected() { PrintTools.info("Disconnected from Valve Detector."); }
public RigidBodyTransform detectChessboard(BufferedImage image, boolean attemptExtremePitchDetection) { if (!intrinsicSet) { PrintTools.info("Intrinsic parameters not set"); return null; } return detector.detect(image, attemptExtremePitchDetection); } }
@Override public void cancelPlanning() { if (debug) PrintTools.info("Cancel has been requested."); abortPlanning.set(true); }
public static Path getEraseableDirectoryWithMostRecentBambooDataAndVideos() { String rootDirectory = determineEraseableBambooDataAndVideosRootDirectoryToUse(); PrintTools.info(rootDirectory); return getDirectoryWithMostRecentBambooDataAndVideos(Paths.get(rootDirectory)); }
public static void main(String[] args) { PrintTools.info("Starting " + ExampleServer.class.getSimpleName()); ExampleServer exampleServer = new ExampleServer(); exampleServer.start(); } }
@Override public void receivedPacket(UIConnectedPacket packet) { sendDeviceSettingToUI(dynamicReconfigureClient.getParameters()); PrintTools.info(this, "UIConnected - send parameters"); } });
private void processFootstepPlanningOutputStatus(FootstepPlanningToolboxOutputStatus packet) { if (DEBUG) PrintTools.info("Processed an output from a remote planner."); plannerResultReference.set(FootstepPlanningResult.fromByte(packet.getFootstepPlanningResult())); plannerPlanReference.set(convertToFootstepPlan(packet.getFootstepDataList())); plannerReceivedPlan.set(true); plannerReceivedResult.set(true); }
@Override public void run() { PrintTools.info(description.getNameAsString() + " came online"); model.addRow(new Object[] { name, hostname, sessionId }); } });
public void generateAllTestSuites() { double totalDuration = 0.0; for (AgileTestingProject bambooEnabledProject : nameToProjectMap.values()) { bambooEnabledProject.generateAllTestSuites(); totalDuration += bambooEnabledProject.getFastTotalDuration(); } PrintTools.info(this, "Fast total duration: " + new DecimalFormat("0.0").format(Conversions.secondsToMinutes(totalDuration)) + " minutes."); workspace.buildMaps(); }
public void printOutTopTwoPercentHighestDurationTestClasses() { ArrayList<AgileTestingTestClass> allTestClassesSortedByDuration = workspace.getAllTestClassesSortedByDuration(); System.out.println("\n-- LONGEST RUNNING CLASSES --"); for (int i = 0; i < ((double) allTestClassesSortedByDuration.size() * 0.02); i++) { AgileTestingTestClass bambooTestClass = allTestClassesSortedByDuration.get(i); String durationMessage = "(" + MathTools.roundToSignificantFigures(Conversions.secondsToMinutes(bambooTestClass.getTotalDurationForAllPlans()), 2) + " min) "; PrintTools.info(this, "Class in top 2% longest: " + durationMessage + bambooTestClass.getTestClassSimpleName()); } }
public void performAnalyticsAndGenerateAnnotations(Result result) { Map<String, AgileTestingClassPath> nameToPathMap = AgileTestingTools.mapAllClassNamesToClassPaths(SourceTools.getProjectPath()); for (AtomicTestRun atomicTestRun : runs) { AgileTestingTestMethodAnnotationWriter.writeAnnotationsForTestRun(atomicTestRun, nameToPathMap, nameToPathMap.get(atomicTestRun.getClassName())); } PrintTools.info(this, "Total run time: " + new DecimalFormat("0.0").format(((double) result.getRunTime()) / 1000.0) + " s"); } }
public void performAnalyticsAndGenerateAnnotations(Result result) { Map<String, AgileTestingClassPath> nameToPathMap = AgileTestingTools.mapAllClassNamesToClassPaths(SourceTools.getProjectPath()); for (AtomicTestRun atomicTestRun : runs) { AgileTestingTestMethodAnnotationWriter.writeAnnotationsForTestRun(atomicTestRun, nameToPathMap, nameToPathMap.get(atomicTestRun.getClassName())); } PrintTools.info(this, "Total run time: " + new DecimalFormat("0.0").format(((double) result.getRunTime()) / 1000.0) + " s"); } }
public void start() { yoVariableServer.start(); PrintTools.info("Starting to loop."); while (true) { updateVariables(); yoVariableServer.update(timestamp++); ThreadTools.sleepSeconds(dt); } }
public void printListOfConnectedJoysticks() { Controller[] controllers = ControllerEnvironment.getDefaultEnvironment().getControllers(); for (Controller controller : controllers) { if (isValidControllerType(controller)) { PrintTools.info(this, "Found: " + controller.getName()); } } }
public static void main(String[] args) throws IOException { new LoggerConfigurationLoader(); LoggerConfiguration config = new LoggerConfiguration(); LoggerConfigurationPubSubType type = new LoggerConfigurationPubSubType(); PropertiesSerializer<LoggerConfiguration> ser = new PropertiesSerializer<>(type); PrintTools.info(ser.serializeToString(config)); } }
public LidarScanPublisher(String lidarName, FullHumanoidRobotModelFactory modelFactory, Ros2Node ros2Node, String robotConfigurationDataTopicName) { robotName = modelFactory.getRobotDescription().getName(); PrintTools.info(robotName); fullRobotModel = modelFactory.createFullRobotModel(); lidarBaseFrame = fullRobotModel.getLidarBaseFrame(lidarName); RigidBodyTransform transformToLidarBaseFrame = fullRobotModel.getLidarBaseToSensorTransform(lidarName); lidarSensorFrame = ReferenceFrame.constructFrameWithUnchangingTransformToParent("lidarSensorFrame", lidarBaseFrame, transformToLidarBaseFrame); ROS2Tools.createCallbackSubscription(ros2Node, RobotConfigurationData.class, robotConfigurationDataTopicName, s -> robotConfigurationDataBuffer.receivedPacket(s.takeNextData())); lidarScanPublisher = ROS2Tools.createPublisher(ros2Node, LidarScanMessage.class, ROS2Tools.getDefaultTopicNameGenerator()); }