gpt4 book ai didi

us.ihmc.robotics.testing.YoVariableTestGoal.timeInFuture()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 02:23:31 28 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.robotics.testing.YoVariableTestGoal.timeInFuture()方法的一些代码示例,展示了YoVariableTestGoal.timeInFuture()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariableTestGoal.timeInFuture()方法的具体详情如下:
包路径:us.ihmc.robotics.testing.YoVariableTestGoal
类名称:YoVariableTestGoal
方法名:timeInFuture

YoVariableTestGoal.timeInFuture介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test

public void addDurationGoal(YoDouble timeYoVariable, double durationFromNow)
{
 terminalGoals.add(YoVariableTestGoal.timeInFuture(timeYoVariable, durationFromNow));
}

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

private void testFlatGroundWalking(double endPhaseShift, double walkingSpeed)
{
 QuadrupedTestBehaviors.readyXGait(conductor, variables, stepTeleopManager);
 stepTeleopManager.getXGaitSettings().setEndPhaseShift(endPhaseShift);
 double walkTime = 6.0;
 stepTeleopManager.requestXGait();
 stepTeleopManager.setDesiredVelocity(walkingSpeed, 0.0, 0.0);
 conductor.addSustainGoal(QuadrupedTestGoals.notFallen(variables));
 conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), walkTime));
 double finalPositionX = walkTime * walkingSpeed * 0.7;
 if(walkingSpeed > 0.0)
 {
   conductor.addTerminalGoal(YoVariableTestGoal.doubleGreaterThan(variables.getRobotBodyX(), finalPositionX));
 }
 else
 {
   conductor.addTerminalGoal(YoVariableTestGoal.doubleLessThan(variables.getRobotBodyX(), finalPositionX));
 }
 conductor.simulate();
 stepTeleopManager.setDesiredVelocity(0.0, 0.0, 0.0);
 conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
 conductor.simulate();
 stepTeleopManager.requestStanding();
 conductor.addTerminalGoal(YoVariableTestGoal.enumEquals(variables.getSteppingState(), QuadrupedSteppingStateEnum.STAND));
 conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 0.5));
 conductor.simulate();
 QuadrupedTestBehaviors.sitDown(conductor, variables);
}

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

private void testFlatGroundPacing(double walkingSpeed)
{
 stepTeleopManager.getXGaitSettings().setStanceWidth(getPacingWidth());
 QuadrupedTestBehaviors.readyXGait(conductor, variables, stepTeleopManager);
 stepTeleopManager.getXGaitSettings().setEndPhaseShift(0.0);
 double walkTime = 5.0;
 stepTeleopManager.requestXGait();
 stepTeleopManager.setDesiredVelocity(walkingSpeed, 0.0, 0.0);
 conductor.addSustainGoal(QuadrupedTestGoals.notFallen(variables));
 conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), walkTime));
 double finalPositionX = walkTime * walkingSpeed * 0.7;
 if(walkingSpeed > 0.0)
 {
   conductor.addTerminalGoal(YoVariableTestGoal.doubleGreaterThan(variables.getRobotBodyX(), finalPositionX));
 }
 else
 {
   conductor.addTerminalGoal(YoVariableTestGoal.doubleLessThan(variables.getRobotBodyX(), finalPositionX));
 }
 conductor.simulate();
}

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

stepTeleopManager.setDesiredVelocity(walkingSpeed, 0.0, 0.0);
conductor.addSustainGoal(QuadrupedTestGoals.notFallen(variables));
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), walkTime));
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), initialWalkTime));
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), walkTime));

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();
conductor.addTerminalGoal(YoVariableTestGoal.timeInFuture(variables.getYoTime(), 1.0));
conductor.simulate();

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com