gpt4 book ai didi

us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getYawPitchRoll()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 03:56:40 27 4
gpt4 key购买 nike

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

YoFrameYawPitchRoll.getYawPitchRoll介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void getYawPitchRoll(double[] yawPitchRollToPack)
{
 if (isUsingYawPitchRoll())
   yawPitchRoll.getYawPitchRoll(yawPitchRollToPack);
 else
   quaternion.getYawPitchRoll(yawPitchRollToPack);
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

private void startSlipping(RobotSide robotSide)
{
 GroundContactPointsSlipper groundContactPointsSlipper = groundContactPointsSlippers.get(robotSide);
 generateRandomSlipParamters();
 groundContactPointsSlipper.setGroundContactPoints(groundContactPointsMap.get(robotSide));
 groundContactPointsSlipper.setPercentToSlipPerTick(nextSlipPercentSlipPerTick.getDoubleValue());
 groundContactPointsSlipper.setDoSlip(true);
 groundContactPointsSlipper.setSlipTranslation(nextTranslationToSlip);
 groundContactPointsSlipper.setSlipRotationYawPitchRoll(nextRotationToSlip.getYawPitchRoll());
 //      System.out.println("Slip of " + robotSide.getLowerCaseName() + " foot with amount" + nextTranslationToSlip.getVector3dCopy().toString()
 //                         + " with rotation amount " + nextRotationToSlip.getFrameOrientationCopy().toStringAsYawPitchRoll()
 //                         + " with slippercentage per tick " + nextSlipPercentSlipPerTick.getDoubleValue() + ", " + nextSlipAfterTimeDelta.getDoubleValue()
 //                         + " [s] after touchdown.");
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

private void generateRandomSlipParamters()
{
 double randomSlipTranslateX = pseudoRandomRealNumberWithinRange(minTranslationToSlipNextStep.getX(), maxTranslationToSlipNextStep.getX());
 double randomSlipTranslateY = pseudoRandomRealNumberWithinRange(minTranslationToSlipNextStep.getY(), maxTranslationToSlipNextStep.getY());
 double randomSlipTranslateZ = pseudoRandomRealNumberWithinRange(minTranslationToSlipNextStep.getZ(), maxTranslationToSlipNextStep.getZ());
 nextTranslationToSlip.set(randomSlipTranslateX, randomSlipTranslateY, randomSlipTranslateZ);
 nextRotationToSlip.setYawPitchRoll(pseudoRandomRealNumberWithinRange(minRotationToSlipNextStep.getYawPitchRoll(),
    maxRotationToSlipNextStep.getYawPitchRoll()));
 double randomSlipAfterTimeDelta = pseudoRandomPositiveNumberWithinRange(minSlipAfterTimeDelta.getDoubleValue(), maxSlipAfterTimeDelta.getDoubleValue());
 double randomPercentToSlipPerTick = pseudoRandomPositiveNumberWithinRange(minSlipPercentSlipPerTick.getDoubleValue(),
    maxSlipPercentSlipPerTick.getDoubleValue());
 nextSlipAfterTimeDelta.set(randomSlipAfterTimeDelta);
 nextSlipPercentSlipPerTick.set(randomPercentToSlipPerTick);
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
  @Test(timeout = 30000)
  public void testConstructor_Get()
  {
   YoOrientationProvider yoOrientationProvider = new YoOrientationProvider(yoFrameOrientation);
   yoOrientationProvider.getOrientation(frameOrientationToPack);
   
   double[] yawPitchRollToPack = new double[3];
   yoFrameOrientation.getYawPitchRoll(yawPitchRollToPack);
   
   double[] yawPitchRollToPack2 = new double[3];
   frameOrientationToPack.getYawPitchRoll(yawPitchRollToPack2);
   
   for(int i = 0; i < yawPitchRollToPack.length; i++)
   {
     assertEquals(yawPitchRollToPack[i], yawPitchRollToPack2[i], EPSILON);
   }
   
   assertSame(yoFrameOrientation.getReferenceFrame(), frameOrientationToPack.getReferenceFrame());
  }
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

startSlipping(amountToSlipNextStep, rotationToSlipNextStep.getYawPitchRoll());

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