本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getYawPitchRoll()
方法的一些代码示例,展示了YoFrameYawPitchRoll.getYawPitchRoll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameYawPitchRoll.getYawPitchRoll()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFrameYawPitchRoll
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!