本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.setInPoint()
方法的一些代码示例,展示了SimulationConstructionSet.setInPoint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.setInPoint()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:setInPoint
暂无
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
@Override
public void connected()
{
synchronized(disconnectLock)
{
scs.setInPoint();
disconnectButton.setText(DISCONNECT_DISCONNECT);
disconnectButton.setEnabled(true);
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private void setInputPointInSCS(SimulationConstructionSet scs, int inputPointIndex)
{
scs.setIndex(inputPointIndex);
scs.setInPoint();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private void addOneToInPointIndexWithoutCrop(SimulationConstructionSet scs)
{
int currentInPoint = scs.getInPoint();
scs.setIndex(currentInPoint + 1);
scs.setInPoint();
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs)
{
scs.gotoInPointNow();
scs.tick(1);
scs.setInPoint();
scs.cropBuffer();
}
代码示例来源: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/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/simulation-construction-set-tools
public void cropInitialSimPoints(int numberOfDataPointsToCrop)
{
scs.cropBuffer();
scs.gotoInPointNow();
scs.stepForwardNow(numberOfDataPointsToCrop);
scs.setInPoint();
scs.cropBuffer();
}
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
private void seek(int newValue)
{
synchronized (seekLock)
{
if (!isSeeking && !scs.isSimulating())
{
if(newValue > 0)
{
newValue -= 1;
}
robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek.
try
{
scs.simulateOneRecordStepNow();
scs.setInPoint();
}
catch (UnreasonableAccelerationException e)
{
e.printStackTrace();
}
if (multiPlayer != null)
multiPlayer.indexChanged(0, 0);
}
}
}
代码示例来源:origin: us.ihmc/RobotDataCommunication
private void seek(int newValue)
{
synchronized (seekLock)
{
if (!isSeeking && !scs.isSimulating())
{
if(newValue > 0)
{
newValue -= 1;
}
robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek.
try
{
scs.simulateOneRecordStepNow();
scs.setInPoint();
}
catch (UnreasonableAccelerationException e)
{
e.printStackTrace();
}
if (multiPlayer != null)
multiPlayer.indexChanged(0, 0);
}
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
for (SimulationConstructionSet scs : scss)
scs.setInPoint();
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
private void seek(int newValue)
{
synchronized (seekLock)
{
if (!isSeeking && !scs.isSimulating())
{
if(newValue > 0)
{
newValue -= 1;
}
robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek.
try
{
scs.simulateOneRecordStepNow();
scs.setInPoint();
}
catch (UnreasonableAccelerationException e)
{
e.printStackTrace();
}
if (multiPlayer != null)
multiPlayer.notifyOfIndexChange(0);
}
}
}
代码示例来源: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/ihmc-avatar-interfaces-test
scs.setInPoint();
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
simulationConstructionSet.setInPoint();
break;
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
simulationConstructionSet.setInPoint();
break;
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
simulationConstructionSet.setInPoint();
break;
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
scs.setInPoint();
scs.cropBuffer();
scs.play();
内容来源于网络,如有侵权,请联系作者删除!