本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.setFastSimulate()
方法的一些代码示例,展示了SimulationConstructionSet.setFastSimulate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.setFastSimulate()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:setFastSimulate
暂无
代码示例来源:origin: us.ihmc/RobotDataCommunication
public void updateGraphsLessFrequently(boolean enable, int numberOfTicksBeforeUpdatingGraphs)
{
scs.setFastSimulate(enable, numberOfTicksBeforeUpdatingGraphs);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public void updateGraphsLessFrequently(boolean enable, int numberOfTicksBeforeUpdatingGraphs)
{
scs.setFastSimulate(enable, numberOfTicksBeforeUpdatingGraphs);
}
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
public void updateGraphsLessFrequently(boolean enable, int numberOfTicksBeforeUpdatingGraphs)
{
scs.setFastSimulate(enable, numberOfTicksBeforeUpdatingGraphs);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public LogVisualizer(int bufferSize, boolean showOverheadView,
File logFile) throws IOException
{
if (logFile == null)
{
logFile = FileSelectionDialog.loadDirectoryWithFileNamed(YoVariableLoggerListener.propertyFile);
}
if (logFile != null)
{
System.out.println("loading log from folder:" + logFile);
SimulationConstructionSetParameters parameters = new SimulationConstructionSetParameters();
parameters.setCreateGUI(true);
parameters.setDataBufferSize(bufferSize);
scs = new SimulationConstructionSet(parameters);
scs.setFastSimulate(true, 50);
readLogFile(logFile, showOverheadView);
if (PRINT_OUT_YOVARIABLE_NAMES) printOutYoVariableNames();
}
else
{
scs = null;
}
}
代码示例来源:origin: us.ihmc/RobotDataCommunication
public LogVisualizer(int bufferSize, boolean showOverheadView,
File logFile) throws IOException
{
if (logFile == null)
{
logFile = FileSelectionDialog.loadDirectoryWithFileNamed(YoVariableLoggerListener.propertyFile);
}
if (logFile != null)
{
System.out.println("loading log from folder:" + logFile);
SimulationConstructionSetParameters parameters = new SimulationConstructionSetParameters();
parameters.setCreateGUI(true);
parameters.setDataBufferSize(bufferSize);
scs = new SimulationConstructionSet(parameters);
scs.setFastSimulate(true, 50);
readLogFile(logFile, showOverheadView);
if (PRINT_OUT_YOVARIABLE_NAMES) printOutYoVariableNames();
}
else
{
scs = null;
}
}
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
public LogVisualizer(int bufferSize, boolean showOverheadView,
File logFile) throws IOException
{
if (logFile == null)
{
logFile = FileSelectionDialog.loadDirectoryWithFileNamed(YoVariableLoggerListener.propertyFile);
}
if (logFile != null)
{
System.out.println("loading log from folder:" + logFile);
SimulationConstructionSetParameters parameters = new SimulationConstructionSetParameters();
parameters.setCreateGUI(true);
parameters.setDataBufferSize(bufferSize);
scs = new SimulationConstructionSet(parameters);
scs.setFastSimulate(true, 50);
readLogFile(logFile, showOverheadView);
if (PRINT_OUT_YOVARIABLE_NAMES) printOutYoVariableNames();
}
else
{
scs = null;
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
assertTrue(isPlayingFromSCS);
scs.setFastSimulate(true);
boolean isFastSimulateFromSCS = scs.isFastSimulateEnabled();
assertTrue(isFastSimulateFromSCS);
scs.setFastSimulate(false);
boolean isFastSimulateFromSCS2 = scs.isFastSimulateEnabled();
assertFalse(isFastSimulateFromSCS2);
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
boolean isFastSimulateFromSCS3 = scs.isFastSimulateEnabled();
int numberOfTicksBeforeUpdatingGraphsFromSCS = scs.getNumberOfTicksBeforeUpdatingGraphs();
assertEquals(numberOfTicksBeforeUpdatingGraphs, numberOfTicksBeforeUpdatingGraphsFromSCS);
scs.setFastSimulate(false, numberOfTicksBeforeUpdatingGraphs2);
boolean isFastSimulateFromSCS4 = scs.isFastSimulateEnabled();
int numberOfTicksBeforeUpdatingGraphsFromSCS2 = scs.getNumberOfTicksBeforeUpdatingGraphs();
内容来源于网络,如有侵权,请联系作者删除!