gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFrameOrientation.setYawPitchRoll()方法的使用及代码示例

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

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

YoFrameOrientation.setYawPitchRoll介绍

暂无

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@Override
  public void variableChanged(YoVariable<?> v)
  {
   if (userDesiredChestGoToHomeOrientation.getBooleanValue())
   {
     userDesiredChestOrientation.setYawPitchRoll(0.0, 0.0, 0.0);
     userDoChestOrientation.set(true, true);
     userDesiredChestGoToHomeOrientation.set(false);
   }
  }
});

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

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

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

public void setTransformToWorld(RigidBodyTransform transformToWorld)
{
 Vector3d translationToWorld = new Vector3d();
 transformToWorld.getTranslation(translationToWorld);
 this.yoFramePoint.set(translationToWorld);
 FrameOrientation orientation = new FrameOrientation(ReferenceFrame.getWorldFrame(), transformToWorld);
 double[] yawPitchRoll = orientation.getYawPitchRoll();
 yoFrameOrientation.setYawPitchRoll(yawPitchRoll[0], yawPitchRoll[1], yawPitchRoll[2]);
}

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

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);
}

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