本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.setPlaybackRealTimeRate()
方法的一些代码示例,展示了SimulationConstructionSet.setPlaybackRealTimeRate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.setPlaybackRealTimeRate()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:setPlaybackRealTimeRate
暂无
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
private void startSCS()
{
scs.addYoVariableRegistry(registry);
scs.addYoGraphicsListRegistry(graphicsListRegistry);
scs.setPlaybackRealTimeRate(0.025);
Graphics3DObject linkGraphics = new Graphics3DObject();
linkGraphics.addCoordinateSystem(0.3);
scs.addStaticLinkGraphics(linkGraphics);
scs.setCameraFix(0.0, 0.0, 0.5);
scs.setCameraPosition(-0.5, 0.0, 1.0);
SimulationOverheadPlotterFactory simulationOverheadPlotterFactory = scs.createSimulationOverheadPlotterFactory();
simulationOverheadPlotterFactory.addYoGraphicsListRegistries(graphicsListRegistry);
simulationOverheadPlotterFactory.createOverheadPlotter();
scs.startOnAThread();
}
代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test
scs.setPlaybackRealTimeRate(playbackRate);
scs.setMaxBufferSize(64000);
scs.setCameraFix(0.0, 0.0, 0.0);
代码示例来源:origin: us.ihmc/ihmc-path-planning-test
scs.setPlaybackRealTimeRate(0.001);
scs.play();
ThreadTools.sleepForever();
代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test
scs.setPlaybackRealTimeRate(0.001);
scs.play();
scs.startOnAThread();
代码示例来源:origin: us.ihmc/simulation-construction-set-test
@Test// timeout = 30000
public void testTimingMethods() throws AWTException
{
scs.setDT(simulateDT, recordFrequency);
double simulateDTFromSCS = scs.getDT();
assertEquals(simulateDT, simulateDTFromSCS, epsilon);
scs.setRecordDT(recordDT);
double recordFreqFromSCS = scs.getRecordFreq();
assertEquals(recordFreq, recordFreqFromSCS, epsilon);
scs.setPlaybackRealTimeRate(realTimeRate);
double realTimeRateFromSCS = scs.getPlaybackRealTimeRate();
assertEquals(realTimeRate, realTimeRateFromSCS, epsilon);
scs.setPlaybackDesiredFrameRate(frameRate);
double frameRateFromSCS = scs.getPlaybackFrameRate();
assertEquals(recomputedSecondsPerFrameRate, frameRateFromSCS, epsilon);
int ticksPerCycle = computeTicksPerPlayCycle(simulateDT, recordFreq, realTimeRate, frameRate);
double ticksPerCycleFromSCS = scs.getTicksPerPlayCycle();
assertEquals(ticksPerCycle, ticksPerCycleFromSCS, epsilon);
scs.setTime(Math.PI);
double timeFromSCS = scs.getTime();
assertEquals(Math.PI, timeFromSCS, epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
scs.addYoVariableRegistry(registry);
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry);
scs.setPlaybackRealTimeRate(0.025);
内容来源于网络,如有侵权,请联系作者删除!