us.ihmc.robotics.math.trajectories.providers.YoVariableDoubleProvider.getValue()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(98)

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

YoVariableDoubleProvider.getValue介绍

暂无

代码示例

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
  @Test(timeout = 30000)
  public void testConstructor2()
  {
   YoVariableDoubleProvider provider2 = new YoVariableDoubleProvider(yoValue);
   assertEquals(value1, provider2.getValue(), EPSILON);

   provider2.set(value2);
   assertEquals(value2, provider2.getValue(), EPSILON);
  }
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testConstructor1()
{
 YoVariableDoubleProvider provider1 = new YoVariableDoubleProvider("provider1", registry);
 assertEquals(0.0, provider1.getValue(), EPSILON);
 
 provider1.set(value2);
 assertEquals(value2, provider1.getValue(), EPSILON);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

private void computeDesiredsForFreeMotion()
{
 boolean blockToMaximumPitch = tempYawPitchRoll[1] > maximumToeOffAngleProvider.getValue();
 if (blockToMaximumPitch)
 {
   toeOffDesiredPitchAngle.set(maximumToeOffAngleProvider.getValue());
   toeOffDesiredPitchVelocity.set(0.0);
 }
 else
 {
   toeOffDesiredPitchAngle.set(desiredOrientation.getPitch());
   toeOffDesiredPitchVelocity.set(footTwist.getAngularPartY());
 }
 toeOffDesiredPitchAcceleration.set(0.0);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

@Override
  public void variableChanged(YoVariable<?> v)
  {
   offsetHeightAboveGroundChangedTime.set(yoTime.getDoubleValue());
   double previous = offsetHeightTrajectoryGenerator.getValue();
   offsetHeightTrajectoryGenerator.clear();
   offsetHeightTrajectoryGenerator.appendWaypoint(0.0, previous, 0.0);
   offsetHeightTrajectoryGenerator.appendWaypoint(offsetHeightAboveGroundTrajectoryTimeProvider.getValue(),
      offsetHeightAboveGround.getDoubleValue(), 0.0);
   offsetHeightTrajectoryGenerator.initialize();
  }
});

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

/**
* Request the swing trajectory to speed up using the given speed up factor.
* It is clamped w.r.t. to {@link WalkingControllerParameters#getMinimumSwingTimeForDisturbanceRecovery()}.
* @param speedUpFactor
* @return the current swing time remaining for the swing foot trajectory
*/
public double requestSwingSpeedUp(double speedUpFactor)
{
 if (isSwingSpeedUpEnabled.getBooleanValue() && (speedUpFactor > 1.1 && speedUpFactor > swingTimeSpeedUpFactor.getDoubleValue()))
 {
   speedUpFactor = MathTools.clipToMinMax(speedUpFactor, swingTimeSpeedUpFactor.getDoubleValue(), maxSwingTimeSpeedUpFactor.getDoubleValue());
   //         speedUpFactor = MathTools.clipToMinMax(speedUpFactor, 0.7, maxSwingTimeSpeedUpFactor.getDoubleValue());
   //         if (speedUpFactor < 1.0) speedUpFactor = 1.0 - 0.5 * (1.0 - speedUpFactor);
   swingTimeSpeedUpFactor.set(speedUpFactor);
   if (currentTimeWithSwingSpeedUp.isNaN())
    currentTimeWithSwingSpeedUp.set(currentTime.getDoubleValue());
 }
 computeSwingTimeRemaining();
 return swingTimeRemaining.getValue();
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

double z = splineOutput[0] + offsetHeightAboveGroundTrajectoryOutput.getValue();
double dzds = splineOutput[1];
double ddzdds = splineOutput[2];

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

timeRemainingProvider.set(stepTimeProvider.getValue() - tIntoStep);

相关文章