本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.setSimulateDoneCriterion()
方法的一些代码示例,展示了SimulationConstructionSet.setSimulateDoneCriterion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.setSimulateDoneCriterion()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:setSimulateDoneCriterion
暂无
代码示例来源:origin: us.ihmc/robot-environment-awareness-application
public void startSimulation() throws IOException
{
SimpleLidarRobot robot = new SimpleLidarRobot();
SimulationConstructionSetParameters parameters = new SimulationConstructionSetParameters(true, RealtimeTools.nextPowerOfTwo(200000));
SimulationConstructionSet scs = new SimulationConstructionSet(robot, parameters);
double simDT = 0.0001;
double controlDT = 0.01;
scs.setDT(simDT, 10);
scs.setSimulateDoneCriterion(() -> false);
Graphics3DAdapter graphics3dAdapter = scs.getGraphics3dAdapter();
YoGraphicsListRegistry yoGraphicsListRegistry = new YoGraphicsListRegistry();
SimpleLidarRobotController controller = new SimpleLidarRobotController(robot, controlDT, ros2Node, graphics3dAdapter,
yoGraphicsListRegistry);
robot.setController(controller, (int) (controlDT / simDT));
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry);
createGroundTypeListener(scs);
scs.setGroundVisible(false);
scs.startOnAThread();
scs.simulate();
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
simulationConstructionSet.setSimulateDoneCriterion(checkPelvisOrientationError);
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
simulationConstructionSet.setSimulateDoneCriterion(checkPelvisOrientationError);
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
simulationConstructionSet.setSimulateDoneCriterion(checkPelvisOrientationError);
代码示例来源:origin: us.ihmc/simulation-construction-set-test
scs.attachPlaybackListener(playbackListener);
scs.addSimulateDoneListener(simulationDoneListener);
scs.setSimulateDoneCriterion(simulationDoneCriterion);
scs.registerToggleKeyPointModeCommandListener(toggleKeyPointModeCommandListener);
内容来源于网络,如有侵权,请联系作者删除!