congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AutomatedDiagnosticAnalysisController
Code IndexAdd Tabnine to your IDE (free)

How to use
AutomatedDiagnosticAnalysisController
in
us.ihmc.wholeBodyController.diagnostics

Best Java code snippets using us.ihmc.wholeBodyController.diagnostics.AutomatedDiagnosticAnalysisController (Showing top 20 results out of 315)

origin: us.ihmc/IHMCAvatarInterfaces

public void addWait(double timeToWait)
{
 diagnosticController.submitDiagnostic(new WaitDiagnosticTask(timeToWait));
}
origin: us.ihmc/ihmc-whole-body-controller

  @Override
  public String getDescription()
  {
   return getName();
  }
}
origin: us.ihmc/valkyrie

  diagnosticController.setRobotIsAlive(false);
  diagnosticController.setRobotIsAlive(true);
  diagnosticController.initialize();
  firstDiagnosticControlTick = false;
diagnosticController.doControl();
sensorReader.writeCommandsToRobot();
origin: us.ihmc/DarpaRoboticsChallenge

@Override
public void doControl()
{
 long startTime = System.nanoTime();
 sensorReader.read();
 humanoidReferenceFrames.updateFrames();
 if (firstControlTick)
 {
   stateEstimator.initialize();
   automatedDiagnosticAnalysisController.initialize();
   firstControlTick = false;
 }
 else
 {
   stateEstimator.doControl();
   automatedDiagnosticAnalysisController.doControl();
 }
 outputWriter.writeAfterController(0);
 long endTime = System.nanoTime();
 controllerTime.set(TimeTools.nanoSecondstoSeconds(endTime - startTime));
 averageControllerTime.update();
}
origin: us.ihmc/IHMCWholeBodyController

  initialize();
  return;
  initialize();
  if (doIdleControl.getBooleanValue())
   doIdleControl();
  return;
  currentTask.getDataReporterToRun(dataReportersToExecute);
handleDataReporters();
origin: us.ihmc/IHMCAvatarInterfaces

public AutomatedDiagnosticConfiguration createDiagnosticController(boolean startWithRobotAlive)
{
 simulatedRobot = robotModel.createHumanoidFloatingRootJointRobot(false);
 DiagnosticLoggerConfiguration.setupLogging(simulatedRobot.getYoTime(), getClass(), robotModel.getSimpleRobotName());
 if (robotInitialSetup == null)
   robotInitialSetup = robotModel.getDefaultRobotInitialSetup(0.0, 0.0);
 robotInitialSetup.initializeRobot(simulatedRobot, robotModel.getJointMap());
 FullHumanoidRobotModel fullRobotModel = robotModel.createFullRobotModel();
 WalkingControllerParameters walkingControllerParameters = robotModel.getWalkingControllerParameters();
 DoubleYoVariable yoTime = simulatedRobot.getYoTime();
 double dt = robotModel.getEstimatorDT();
 StateEstimatorParameters stateEstimatorParameters = robotModel.getStateEstimatorParameters();
 if (diagnosticParameters == null)
   diagnosticParameters = new DiagnosticParameters(DiagnosticEnvironment.RUNTIME_CONTROLLER, false);
 DiagnosticSensorProcessingConfiguration sensorProcessingConfiguration = new DiagnosticSensorProcessingConfiguration(diagnosticParameters, stateEstimatorParameters);
 SensorOutputMapReadOnly sensorOutputMap = createStateEstimator(fullRobotModel, stateEstimatorParameters, sensorProcessingConfiguration);
 DiagnosticControllerToolbox diagnosticControllerToolbox = new DiagnosticControllerToolbox(fullRobotModel, sensorOutputMap, diagnosticParameters, walkingControllerParameters, yoTime, dt,
    sensorProcessingConfiguration, simulationRegistry);
 automatedDiagnosticAnalysisController = new AutomatedDiagnosticAnalysisController(diagnosticControllerToolbox, gainStream, setpointStream,
    simulationRegistry);
 automatedDiagnosticAnalysisController.setRobotIsAlive(startWithRobotAlive);
 automatedDiagnosticConfiguration = new AutomatedDiagnosticConfiguration(diagnosticControllerToolbox, automatedDiagnosticAnalysisController);
 outputWriter = new DRCSimulationOutputWriter(simulatedRobot);
 outputWriter.setFullRobotModel(fullRobotModel, null);
 int simulationTicksPerControlTick = (int) (robotModel.getEstimatorDT() / robotModel.getSimulateDT());
 simulatedRobot.setController(this, simulationTicksPerControlTick);
 return automatedDiagnosticConfiguration;
}
origin: us.ihmc/IHMCWholeBodyController

submitDiagnostic(new WaitDiagnosticTask(trajectoryTimeProvider.getValue()));
setupJointControllers(gainStream, setpointStream);
  setupForLogging();
origin: us.ihmc/valkyrie

diagnosticController = new AutomatedDiagnosticAnalysisController(toolbox, gainStream, setpointStream, registry);
AutomatedDiagnosticConfiguration automatedDiagnosticConfiguration = new AutomatedDiagnosticConfiguration(toolbox, diagnosticController);
automatedDiagnosticConfiguration.addWait(1.0);
origin: us.ihmc/IHMCAvatarInterfaces

@Override
public void doControl()
{
 long startTime = System.nanoTime();
 sensorReader.read();
 humanoidReferenceFrames.updateFrames();
 if (firstControlTick)
 {
   stateEstimator.initialize();
   automatedDiagnosticAnalysisController.initialize();
   firstControlTick = false;
 }
 else
 {
   stateEstimator.doControl();
   automatedDiagnosticAnalysisController.doControl();
 }
 outputWriter.writeAfterController(0);
 long endTime = System.nanoTime();
 controllerTime.set(TimeTools.nanoSecondstoSeconds(endTime - startTime));
 averageControllerTime.update();
}
origin: us.ihmc/ihmc-whole-body-controller

  initialize();
  return;
  initialize();
  if (doIdleControl.getBooleanValue())
   doIdleControl();
  return;
  currentTask.getDataReporterToRun(dataReportersToExecute);
handleDataReporters();
origin: us.ihmc/DarpaRoboticsChallenge

public AutomatedDiagnosticConfiguration createDiagnosticController(boolean startWithRobotAlive)
{
 simulatedRobot = robotModel.createHumanoidFloatingRootJointRobot(false);
 DiagnosticLoggerConfiguration.setupLogging(simulatedRobot.getYoTime(), getClass(), robotModel.getSimpleRobotName());
 if (robotInitialSetup == null)
   robotInitialSetup = robotModel.getDefaultRobotInitialSetup(0.0, 0.0);
 robotInitialSetup.initializeRobot(simulatedRobot, robotModel.getJointMap());
 FullHumanoidRobotModel fullRobotModel = robotModel.createFullRobotModel();
 WalkingControllerParameters walkingControllerParameters = robotModel.getWalkingControllerParameters();
 DoubleYoVariable yoTime = simulatedRobot.getYoTime();
 double dt = robotModel.getEstimatorDT();
 StateEstimatorParameters stateEstimatorParameters = robotModel.getStateEstimatorParameters();
 if (diagnosticParameters == null)
   diagnosticParameters = new DiagnosticParameters(DiagnosticEnvironment.RUNTIME_CONTROLLER, false);
 DiagnosticSensorProcessingConfiguration sensorProcessingConfiguration = new DiagnosticSensorProcessingConfiguration(diagnosticParameters, stateEstimatorParameters);
 SensorOutputMapReadOnly sensorOutputMap = createStateEstimator(fullRobotModel, stateEstimatorParameters, sensorProcessingConfiguration);
 DiagnosticControllerToolbox diagnosticControllerToolbox = new DiagnosticControllerToolbox(fullRobotModel, sensorOutputMap, diagnosticParameters, walkingControllerParameters, yoTime, dt,
    sensorProcessingConfiguration, simulationRegistry);
 automatedDiagnosticAnalysisController = new AutomatedDiagnosticAnalysisController(diagnosticControllerToolbox, gainStream, setpointStream,
    simulationRegistry);
 automatedDiagnosticAnalysisController.setRobotIsAlive(startWithRobotAlive);
 automatedDiagnosticConfiguration = new AutomatedDiagnosticConfiguration(diagnosticControllerToolbox, automatedDiagnosticAnalysisController);
 outputWriter = new DRCSimulationOutputWriter(simulatedRobot);
 outputWriter.setFullRobotModel(fullRobotModel, null);
 int simulationTicksPerControlTick = (int) (robotModel.getEstimatorDT() / robotModel.getSimulateDT());
 simulatedRobot.setController(this, simulationTicksPerControlTick);
 return automatedDiagnosticConfiguration;
}
origin: us.ihmc/ihmc-whole-body-controller

submitDiagnostic(new WaitDiagnosticTask(trajectoryTimeProvider.getValue()));
setupJointControllers(gainStream, setpointStream);
  setupForLogging();
origin: us.ihmc/ihmc-avatar-interfaces

@Override
public void doControl()
{
 long startTime = System.nanoTime();
 lowLevelOutputWriter.writeBefore(startTime);
 sensorReader.read();
 humanoidReferenceFrames.updateFrames();
 if (firstControlTick)
 {
   stateEstimator.initialize();
   forceSensorStateUpdater.initialize();
   automatedDiagnosticAnalysisController.initialize();
   firstControlTick = false;
 }
 else
 {
   stateEstimator.doControl();
   forceSensorStateUpdater.updateForceSensorState();
   automatedDiagnosticAnalysisController.doControl();
 }
 lowLevelOutputWriter.writeAfter();
 long endTime = System.nanoTime();
 controllerTime.set(Conversions.nanosecondsToSeconds(endTime - startTime));
 averageControllerTime.update();
}
origin: us.ihmc/ihmc-avatar-interfaces

public void addWait(double timeToWait)
{
 diagnosticController.submitDiagnostic(new WaitDiagnosticTask(timeToWait));
}
origin: us.ihmc/ihmc-avatar-interfaces

public AutomatedDiagnosticConfiguration createDiagnosticController(boolean startWithRobotAlive)
{
 simulatedRobot = robotModel.createHumanoidFloatingRootJointRobot(false);
 DiagnosticLoggerConfiguration.setupLogging(simulatedRobot.getYoTime(), getClass(), robotModel.getSimpleRobotName());
 if (robotInitialSetup == null)
   robotInitialSetup = robotModel.getDefaultRobotInitialSetup(0.0, 0.0);
 robotInitialSetup.initializeRobot(simulatedRobot, robotModel.getJointMap());
 FullHumanoidRobotModel fullRobotModel = robotModel.createFullRobotModel();
 WalkingControllerParameters walkingControllerParameters = robotModel.getWalkingControllerParameters();
 YoDouble yoTime = simulatedRobot.getYoTime();
 double dt = robotModel.getEstimatorDT();
 StateEstimatorParameters stateEstimatorParameters = robotModel.getStateEstimatorParameters();
 if (diagnosticParameters == null)
   diagnosticParameters = new DiagnosticParameters(DiagnosticEnvironment.RUNTIME_CONTROLLER, false);
 JointDesiredOutputList lowLevelOutput = new JointDesiredOutputList(fullRobotModel.getOneDoFJoints());
 DiagnosticSensorProcessingConfiguration sensorProcessingConfiguration = new DiagnosticSensorProcessingConfiguration(diagnosticParameters, stateEstimatorParameters, lowLevelOutput);
 SensorOutputMapReadOnly sensorOutputMap = createStateEstimator(fullRobotModel, stateEstimatorParameters, sensorProcessingConfiguration);
 DiagnosticControllerToolbox diagnosticControllerToolbox = new DiagnosticControllerToolbox(fullRobotModel, lowLevelOutput, sensorOutputMap, diagnosticParameters, walkingControllerParameters, yoTime, dt,
    sensorProcessingConfiguration, simulationRegistry);
 automatedDiagnosticAnalysisController = new AutomatedDiagnosticAnalysisController(diagnosticControllerToolbox, gainStream, setpointStream,
    simulationRegistry);
 automatedDiagnosticAnalysisController.setRobotIsAlive(startWithRobotAlive);
 automatedDiagnosticConfiguration = new AutomatedDiagnosticConfiguration(diagnosticControllerToolbox, automatedDiagnosticAnalysisController);
 lowLevelOutputWriter = new SimulatedLowLevelOutputWriter(simulatedRobot, false);
 lowLevelOutputWriter.setJointDesiredOutputList(lowLevelOutput);
 int simulationTicksPerControlTick = (int) (robotModel.getEstimatorDT() / robotModel.getSimulateDT());
 simulatedRobot.setController(this, simulationTicksPerControlTick);
 return automatedDiagnosticConfiguration;
}
origin: us.ihmc/IHMCWholeBodyController

  @Override
  public String getDescription()
  {
   return getName();
  }
}
origin: us.ihmc/DarpaRoboticsChallenge

public void addWait(double timeToWait)
{
 diagnosticController.submitDiagnostic(new WaitDiagnosticTask(timeToWait));
}
origin: us.ihmc/ihmc-whole-body-controller

public void setupForLogging()
{
 logger = Logger.getLogger(getName());
}
origin: us.ihmc/DarpaRoboticsChallenge

  public void addPelvisIMUCheckUpDiagnostic()
  {
   DiagnosticParameters diagnosticParameters = toolbox.getDiagnosticParameters();
   String pelvisIMUName = diagnosticParameters.getPelvisIMUName();
   if (pelvisIMUName == null || pelvisIMUName.isEmpty())
   {
     System.err.println(getClass().getSimpleName() + ": Cannot create the pelvis IMU check up diagnostic without a pelvisIMUName to look for.");
     return;
   }

   PelvisIMUCheckUpDiagnosticTask checkUp = new PelvisIMUCheckUpDiagnosticTask(pelvisIMUName, toolbox);
   if (enableLogging)
     checkUp.setupForLogging();
   diagnosticController.submitDiagnostic(checkUp);
  }
}
origin: us.ihmc/IHMCWholeBodyController

public void setupForLogging()
{
 logger = Logger.getLogger(getName());
}
us.ihmc.wholeBodyController.diagnosticsAutomatedDiagnosticAnalysisController

Most used methods

  • initialize
  • submitDiagnostic
  • <init>
  • doControl
  • setRobotIsAlive
  • doIdleControl
  • getName
  • handleDataReporters
  • setupForLogging
  • setupJointControllers

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now