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