gpt4 book ai didi

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

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

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

YoFrameYawPitchRoll.setYawPitchRoll介绍

暂无

代码示例

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

public void setYawPitchRoll(double yaw, double pitch, double roll)
{
 setYawPitchRoll(yaw, pitch, roll, true);
}

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

public void setYawPitchRoll(double yaw, double pitch, double roll)
{
 orientation.setYawPitchRoll(yaw, pitch, roll);
}

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

public void setSlipRotationYawPitchRoll(double[] yawPitchRoll) 
{
 this.slipRotation.setYawPitchRoll(yawPitchRoll[0], yawPitchRoll[1], yawPitchRoll[2]);
}

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

public void setRotationToSlipNextStep(double yaw, double pitch, double roll) 
{
 rotationToSlipNextStep.setYawPitchRoll(yaw, pitch, roll);
}

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

public void setYawPitchRoll(double[] yawPitchRoll)
{
 setYawPitchRoll(yawPitchRoll[0], yawPitchRoll[1], yawPitchRoll[2]);
}

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

public void setYawPitchRoll(double[] yawPitchRoll)
{
 orientation.setYawPitchRoll(yawPitchRoll[0], yawPitchRoll[1], yawPitchRoll[2]);
}

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

public void setSlipRotationYawPitchRoll(double yaw, double pitch, double roll)
{
 this.slipRotation.setYawPitchRoll(yaw, pitch, roll);
}

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

public void setRotationMagnitudeYawPitchRoll(double[] rotationYawPitchRoll)
{
 this.rotationMagnitude.setYawPitchRoll(rotationYawPitchRoll);
}

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

public void setRotationRangeToSlipNextStep(double[] slipYPRMin, double[] slipYPRMax)
{
 assertValidLimits(slipYPRMin, slipYPRMax);
 this.minRotationToSlipNextStep.setYawPitchRoll(slipYPRMin[0], slipYPRMin[1], slipYPRMin[2]);
 this.maxRotationToSlipNextStep.setYawPitchRoll(slipYPRMax[0], slipYPRMax[1], slipYPRMax[2]);
}

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

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

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

public void setYawPitchRoll(double yaw, double pitch, double roll)
{
 if (isUsingYawPitchRoll())
   yawPitchRoll.setYawPitchRoll(yaw, pitch, roll);
 else
   quaternion.setYawPitchRoll(yaw, pitch, roll);
}

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

public void setYawPitchRoll(double yaw, double pitch, double roll)
{
 if (isUsingYawPitchRoll())
   yoFrameYawPitchRoll.setYawPitchRoll(yaw, pitch, roll);
 else
   yoFrameQuaternion.setYawPitchRoll(yaw, pitch, roll);
}

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

public void setEulerAngles(Vector3DReadOnly eulerAngles)
{
 setYawPitchRoll(eulerAngles.getZ(), eulerAngles.getY(), eulerAngles.getX());
}

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

public void setTarget(FramePose2D targetPose2dInWorld, WalkingOrientation walkingOrientation)
{
 targetPose2dInWorld.checkReferenceFrameMatch(worldFrame);
 this.targetLocation.set(targetPose2dInWorld.getX(), targetPose2dInWorld.getY(), 0.0);
 this.targetOrientation.setYawPitchRoll(targetPose2dInWorld.getYaw(), 0.0, 0.0);
 ReferenceFrame initialRobotFrame = referenceFrames.getPelvisZUpFrame();
 ReferenceFrame targetRobotFrame = new Pose2dReferenceFrame("targetFrame", targetPose2dInWorld);
 double initialRobotOrientationRelativeToWalkingPath = computeFrameOrientationRelativeToWalkingPath(initialRobotFrame);
 double targetRobotOrientationRelativeToWalkingPath = computeFrameOrientationRelativeToWalkingPath(targetRobotFrame);
 switch (walkingOrientation)
 {
 case ALIGNED_WITH_PATH:
   setWalkingOrientationRelativeToPathDirection(0.0);
   break;
 case START_ORIENTATION:
   setWalkingOrientationRelativeToPathDirection(initialRobotOrientationRelativeToWalkingPath);
   break;
 case TARGET_ORIENTATION:
   setWalkingOrientationRelativeToPathDirection(targetRobotOrientationRelativeToWalkingPath);
   break;
 case START_TARGET_ORIENTATION_MEAN:
   setWalkingOrientationRelativeToPathDirection(0.5 * (initialRobotOrientationRelativeToWalkingPath + targetRobotOrientationRelativeToWalkingPath));
   break;
 default:
   break;
 }
 hasTargetBeenProvided.set(true);
 haveFootstepsBeenGenerated.set(false);
 hasInputBeenSet.set(true);
}

代码示例来源: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/simulation-construction-set-test

yoFramePolygonPosition.set(2.0, 1.0, 0.3);
final YoFrameYawPitchRoll yoFramePolygonOrientation = new YoFrameYawPitchRoll("yoPolygonOrientation", "", worldFrame, registry);
yoFramePolygonOrientation.setYawPitchRoll(1.2, 0.1, 0.4);
final YoGraphicPolygon yoGraphicYoFramePolygon = new YoGraphicPolygon("YoFramePolygon", yoFramePolygon,
                                   yoFramePolygonPosition, yoFramePolygonOrientation, 1.0, YoAppearance.DarkBlue());

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