本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.simulateOneTimeStep()
方法的一些代码示例,展示了SimulationConstructionSet.simulateOneTimeStep()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.simulateOneTimeStep()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:simulateOneTimeStep
暂无
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private void callSCSMethodSimulateOneTimeStep(SimulationConstructionSet scs)
{
try
{
scs.simulateOneTimeStep();
}
catch (UnreasonableAccelerationException e)
{
e.printStackTrace();
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private WholeBodyTrajectoryToolboxOutputStatus runToolboxController(int maxNumberOfIterations) throws UnreasonableAccelerationException
{
AtomicReference<WholeBodyTrajectoryToolboxOutputStatus> status = new AtomicReference<>(null);
statusOutputManager.attachStatusMessageListener(WholeBodyTrajectoryToolboxOutputStatus.class, status::set);
initializationSucceeded.set(false);
this.numberOfIterations.set(0);
if (visualize)
{
for (int i = 0; !toolboxController.isDone() && i < maxNumberOfIterations; i++)
scs.simulateOneTimeStep();
}
else
{
for (int i = 0; !toolboxController.isDone() && i < maxNumberOfIterations; i++)
toolboxUpdater.doControl();
}
return status.getAndSet(null);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
scs.simulateOneTimeStep();
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private void runKinematicsPlanningToolboxController(int numberOfIterations) throws SimulationExceededMaximumTimeException, UnreasonableAccelerationException
{
initializationSucceeded.set(false);
this.numberOfIterations.set(0);
if (visualize)
{
for (int i = 0; !toolboxController.isDone() && i < numberOfIterations; i++)
if (visualize)
scs.simulateOneTimeStep();
}
else
{
for (int i = 0; !toolboxController.isDone() && i < numberOfIterations; i++)
{
toolboxUpdater.doControl();
}
}
trackSolution();
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private void visualizeSolution(WholeBodyTrajectoryToolboxOutputStatus solution, double timeResolution) throws UnreasonableAccelerationException
{
hideRobot();
robot.getControllers().clear();
FullHumanoidRobotModel robotForViz = getRobotModel().createFullRobotModel();
FloatingJointBasics rootJoint = robotForViz.getRootJoint();
OneDoFJointBasics[] joints = FullRobotModelUtils.getAllJointsExcludingHands(robotForViz);
double trajectoryTime = solution.getTrajectoryTimes().get(solution.getTrajectoryTimes().size() - 1);
double t = 0.0;
while (t <= trajectoryTime)
{
t += timeResolution;
KinematicsToolboxOutputStatus frame = findFrameFromTime(solution, t);
MessageTools.unpackDesiredJointState(frame, rootJoint, joints);
robotForViz.updateFrames();
snapGhostToFullRobotModel(robotForViz);
scs.simulateOneTimeStep();
}
}
内容来源于网络,如有侵权,请联系作者删除!