us.ihmc.simulationconstructionset.SimulationConstructionSet.gotoInPointNow()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.gotoInPointNow()方法的一些代码示例,展示了SimulationConstructionSet.gotoInPointNow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.gotoInPointNow()方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:gotoInPointNow

SimulationConstructionSet.gotoInPointNow介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge

private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs)
{
 scs.gotoInPointNow();
 scs.tick(1);
 scs.setInPoint();
 scs.cropBuffer();
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs)
{
 scs.gotoInPointNow();
 scs.tick(1);
 scs.setInPoint();
 scs.cropBuffer();
 scs.gotoOutPointNow();
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void cropFirstPoint()
{
 scs.cropBuffer();
 scs.gotoInPointNow();
 scs.stepForwardNow(1);
 scs.setInPoint();
 scs.cropBuffer();
}

代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit

private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs)
{
 scs.gotoInPointNow();
 scs.tick(1);
 scs.setInPoint();
 scs.cropBuffer();
 scs.gotoOutPointNow();
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void cropFirstPoint()
{
 scs.cropBuffer();
 scs.gotoInPointNow();
 scs.stepForwardNow(1);
 scs.setInPoint();
 scs.cropBuffer();
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void cropInitialSimPoints(int numberOfDataPointsToCrop)
{
 scs.cropBuffer();
 scs.gotoInPointNow();
 scs.stepForwardNow(numberOfDataPointsToCrop);
 scs.setInPoint();
 scs.cropBuffer();
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

scss.get(0).gotoInPointNow();
scss.get(0).simulate(1);
BlockingSimulationRunner.waitForSimulationToFinish(scss.get(0), maximumClockRunTimeInSeconds, true);

代码示例来源:origin: us.ihmc/simulation-construction-set-test

if (createVideo)
 scs.gotoInPointNow();

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

public static void testRewindabilityNumberOfTicks(SimulationConstructionSet scs, int nTicks, List<String> namesToSkipOver)
      throws SimulationExceededMaximumTimeException
  {
   // create state files
   int nStateFiles = 2;
   ArrayList<File> stateFiles = createStateFiles(nStateFiles);

//      System.out.println("Simulation created");

   // run, write state file, rewind, repeat
   for (int i = 0; i < nStateFiles; i++)
   {
     scs.simulate(nTicks);
     BlockingSimulationRunner.waitForSimulationToFinish(scs, 120.0, true);
     scs.writeState(stateFiles.get(i));
//         System.out.println("Run " + i + " done.");
     scs.gotoInPointNow();
     assertEquals(scs.getIndex(), 0);
   }

   compare(stateFiles, scs, namesToSkipOver);
  }

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

/**
  * Simple rewindability test.
  * run, write state file, rewind, run, write state file.
  * @throws SimulationExceededMaximumTimeException
  */
  public static void testRewindabilitySimple(SimulationConstructionSet scs, double simulationTime, ArrayList<String> namesToSkipOver)
      throws SimulationExceededMaximumTimeException
  {
   // create state files
   int nStateFiles = 2;
   ArrayList<File> stateFiles = createStateFiles(nStateFiles);

//      System.out.println("Simulation created");

   // run, write state file, rewind, repeat
   for (int i = 0; i < nStateFiles; i++)
   {
     scs.simulate(simulationTime);
     BlockingSimulationRunner.waitForSimulationToFinish(scs, 120.0, true);
     scs.writeState(stateFiles.get(i));
//         System.out.println("Run " + i + " done.");
     scs.gotoInPointNow();
     assertEquals(scs.getIndex(), 0);
   }

   // compare
   compare(stateFiles, scs, namesToSkipOver);
  }

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

scs.gotoInPointNow();
scs.simulate(nTicksFinal);
waitForSimulationToFinish(scs);

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

@Override
public void doFinalAction(SimulationConstructionSet scs0, SimulationConstructionSet scs1)
{
 SimulationConstructionSet[] scss = {scs0, scs1};
 for (SimulationConstructionSet scs : scss)
 {
   scs.setInPoint();
   scs.simulate(nTicksCompare);
 }
 for (SimulationConstructionSet scs : scss)
 {
   waitForSimulationToFinish(scs);
 }
 File stateFile = new File("stateFile");
 scs0.writeState(stateFile);
 scs0.gotoInPointNow();
 scs0.simulate(1);
 scs0.writeState(stateFile);
 stateFile.delete();
 for (SimulationConstructionSet scs : scss)
 {
   scs.simulate(nTicksFinal);
 }
 for (SimulationConstructionSet scs : scss)
 {
   waitForSimulationToFinish(scs);
 }
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

private void cropSCSBuffer(SimulationConstructionSet scs, SimulationTestingParameters simulationTestingParameters)
{
 if (scs != null)
 {
   scs.gotoInPointNow();
   scs.tick(2);
   ThreadTools.sleep(100L);
   scs.setInPoint();
   ThreadTools.sleep(100L);
   scs.cropBuffer();
   if (simulationTestingParameters.getKeepSCSUp())
   {
    ThreadTools.sleepForever();
   }
 }
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

scs.gotoInPointNow();

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

YoDouble t = (YoDouble) scs.getVariable("t");
scs.gotoInPointNow();
while(Math.abs(desiredICPX.getDoubleValue()) < 1e-4)

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces

simulationConstructionSet.gotoInPointNow();

代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces

simulationConstructionSet.gotoInPointNow();

代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge

simulationConstructionSet.gotoInPointNow();

代码示例来源:origin: us.ihmc/simulation-construction-set-test

scs.gotoInPointNow();
scs.tick(500);

代码示例来源:origin: us.ihmc/simulation-construction-set-test

assertEquals(100, scs.getIndex());
scs.gotoInPointNow();
assertEquals(2, simulationRewoundListener.getCount());
assertEquals(0, scs.getIndex());

相关文章

SimulationConstructionSet类方法