gpt4 book ai didi

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

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

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

YoFrameYawPitchRoll.getEulerAngles介绍

暂无

代码示例

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

public boolean isDoneSlipping()
{
 boolean translationalSlipDone = slipAmount.lengthSquared() < 0.0001 * 0.0001;
 
 Vector3D eulerAngles = new Vector3D();
 slipRotation.getEulerAngles(eulerAngles);
 boolean rotationalSlipDone = eulerAngles.lengthSquared() < 0.001 * 0.001;
 
 return translationalSlipDone & rotationalSlipDone;
}

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

@Override
protected void computeRotationTranslation(AffineTransform transform3D)
{
 transform3D.setIdentity();
 if (isUsingYawPitchRoll())
 {
   yoFrameYawPitchRoll.getEulerAngles(rotationEulerVector);
   transform3D.setRotationEuler(rotationEulerVector);
 }
 else
 {
   transform3D.setRotation(yoFrameQuaternion);
 }
 transform3D.setTranslation(yoFramePoint);
 transform3D.setScale(scale);
}

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

rotationMagnitude.getEulerAngles(nextRotationToSlipEulerAngles);
nextRotationToSlipEulerAngles.setX(nextRotationToSlipEulerAngles.getX() * (2.0 * Math.PI * rotationFreqHzYawPitchRoll[2] * Math.sin(rotationPhaseEuler.getX()) * deltaT));
nextRotationToSlipEulerAngles.setY(nextRotationToSlipEulerAngles.getY() * (2.0 * Math.PI * rotationFreqHzYawPitchRoll[1] * Math.sin(rotationPhaseEuler.getY()) * deltaT));

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

@Override
public void run()
{
 int i = 0;
 while (i++ < 20)
 {
   quickPause();
   ConvexPolygon2D newPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(secondPointList));
   yoPolygon.set(newPolygon);
   ConvexPolygon2D newYoPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(pointList));
   yoFramePolygon.set(newYoPolygon);
   yoGraphicYoFramePolygon.update();
   Vector3D eulerAngles = new Vector3D();
   yoFramePolygonOrientation.getEulerAngles(eulerAngles);
   eulerAngles.setY(eulerAngles.getY() + 0.1);
   yoFramePolygonOrientation.setEulerAngles(eulerAngles);
   yoGraphicText.setText("Hello");
   yoGraphicText.update();
   scs.tickAndUpdate();
   quickPause();
   newPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(pointList));
   yoPolygon.set(newPolygon);
   yoGraphicYoFramePolygon.update();
   newYoPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(secondPointList));
   yoFramePolygon.set(newYoPolygon);
   yoGraphicText.setText("GoodBye");
   yoGraphicText.update();
   scs.tickAndUpdate();
 }
}

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