- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll
类的一些代码示例,展示了YoFrameYawPitchRoll
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameYawPitchRoll
类的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFrameYawPitchRoll
类名称:YoFrameYawPitchRoll
[英]Defines a 3D representation as YoFrameQuaternion but using the Euler angles.
[中]将三维表示定义为四元数,但使用Euler角度。
代码示例来源:origin: us.ihmc/ihmc-yovariables
public YoFramePoseUsingYawPitchRoll(String prefix, String suffix, ReferenceFrame frame, YoVariableRegistry registry)
{
position = new YoFramePoint3D(prefix, suffix, frame, registry);
orientation = new YoFrameYawPitchRoll(prefix, suffix, frame, registry);
}
代码示例来源: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 add(YoFrameYawPitchRoll orientation)
{
yaw.add(orientation.getYaw());
pitch.add(orientation.getPitch());
roll.add(orientation.getRoll());
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void interpolate(YoFrameYawPitchRoll orientationOne, YoFrameYawPitchRoll orientationTwo, double alpha)
{
orientationOne.putYoValuesIntoFrameOrientation();
orientationTwo.putYoValuesIntoFrameOrientation();
tempFrameOrientation.setToZero(getReferenceFrame());
tempFrameOrientation.interpolate(orientationOne.tempFrameOrientation, orientationTwo.tempFrameOrientation, alpha);
this.set(tempFrameOrientation);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void set(RotationMatrixReadOnly rotation)
{
tempFrameOrientation.setIncludingFrame(getReferenceFrame(), rotation);
set(tempFrameOrientation);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void set(FrameQuaternionReadOnly orientation)
{
set(orientation, true);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
YoFramePoint3D yoFramePolygonPosition = new YoFramePoint3D("yoPolygonPosition", "", worldFrame, registry);
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());
double boxSize = 0.3;
boxPosition.set(boxSize / 2.0, boxSize / 2.0, boxSize / 2.0);
YoFrameYawPitchRoll boxOrientation = new YoFrameYawPitchRoll("boxOrientation", worldFrame, registry);
YoGraphicShape yoGraphicBoxGhost = new YoGraphicShape("boxGhost", boxGhostGraphics, boxPosition, boxOrientation, boxSize);
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Creates a copy of {@code this} by finding the duplicated {@code YoVariable}s in the given
* {@link YoVariableRegistry}.
* <p>
* This method does not duplicate {@code YoVariable}s. Assuming the given registry is a duplicate
* of the registry that was used to create {@code this}, this method searches for the duplicated
* {@code YoVariable}s and use them to duplicate {@code this}.
* </p>
*
* @param newRegistry YoVariableRegistry to duplicate {@code this} to.
* @return the duplicate of {@code this}.
*/
public YoFrameYawPitchRoll duplicate(YoVariableRegistry newRegistry)
{
YoDouble yaw = (YoDouble) newRegistry.getVariable(this.yaw.getFullNameWithNameSpace());
YoDouble pitch = (YoDouble) newRegistry.getVariable(this.pitch.getFullNameWithNameSpace());
YoDouble roll = (YoDouble) newRegistry.getVariable(this.roll.getFullNameWithNameSpace());
return new YoFrameYawPitchRoll(yaw, pitch, roll, getReferenceFrame());
}
代码示例来源:origin: us.ihmc/robot-environment-awareness-application
lidarRange.set(30.0);
final YoFrameYawPitchRoll lidarYawPitchRoll = new YoFrameYawPitchRoll("lidar", null, registry);
lidarYawPitchRoll.attachVariableChangedListener(new VariableChangedListener()
代码示例来源: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-yovariables
public YoDouble getYoYaw()
{
return getOrientation().getYaw();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void applyRotationalSlip(double percentOfDelta)
{
FrameQuaternion identity = new FrameQuaternion(ReferenceFrame.getWorldFrame());
FrameQuaternion desired = slipRotation.getFrameOrientationCopy();
FrameQuaternion delta = new FrameQuaternion();
delta.interpolate(identity, desired, percentOfDelta);
desired.interpolate(identity, desired, 1.0-percentOfDelta);
slipRotation.set(desired);
Point3D touchdownCoM = computeTouchdownCoM();
RotationMatrix deltaRotation = new RotationMatrix(delta);
Point3D touchdownLocation = new Point3D();
for (int i = 0; i < groundContactPointsToSlip.size(); i++)
{
GroundContactPoint groundContactPointToSlip = groundContactPointsToSlip.get(i);
boolean touchedDown = (groundContactPointToSlip.isInContact());
if (touchedDown)
{
groundContactPointToSlip.getTouchdownLocation(touchdownLocation);
touchdownLocation.sub(touchdownCoM);
deltaRotation.transform(touchdownLocation);
touchdownLocation.add(touchdownCoM);
groundContactPointToSlip.setTouchdownLocation(touchdownLocation);
}
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public YoDouble getYoRoll()
{
return getOrientation().getRoll();
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public YoDouble getYoPitch()
{
return getOrientation().getPitch();
}
代码示例来源: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/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();
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void setOrientation(QuaternionReadOnly quaternion)
{
orientation.set(quaternion);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void set(QuaternionReadOnly quaternion, boolean notifyListeners)
{
tempFrameOrientation.setIncludingFrame(getReferenceFrame(), quaternion);
set(tempFrameOrientation, notifyListeners);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public double getYaw()
{
return getOrientation().getYaw().getDoubleValue();
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
public double getRoll()
{
return getOrientation().getRoll().getDoubleValue();
}
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getReferenceFrame()方法的一些代码示例,展示了YoFrameYa
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.setYawPitchRoll()方法的一些代码示例,展示了YoFrameYawP
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getYaw()方法的一些代码示例,展示了YoFrameYawPitchRoll.
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.duplicate()方法的一些代码示例,展示了YoFrameYawPitchRo
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.set()方法的一些代码示例,展示了YoFrameYawPitchRoll.set
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.()方法的一些代码示例,展示了YoFrameYawPitchRoll.()的具体用
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.setToNaN()方法的一些代码示例,展示了YoFrameYawPitchRol
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getQuaternion()方法的一些代码示例,展示了YoFrameYawPit
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getPitch()方法的一些代码示例,展示了YoFrameYawPitchRol
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.containsNaN()方法的一些代码示例,展示了YoFrameYawPitch
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getYawPitchRoll()方法的一些代码示例,展示了YoFrameYawP
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getEulerAngles()方法的一些代码示例,展示了YoFrameYawPi
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.checkReferenceFrameMatch()方法的一些代码示例,展示了Yo
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getFrameOrientationIncludingFrame()方法的一些代
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getFrameOrientation()方法的一些代码示例,展示了YoFrame
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getRoll()方法的一些代码示例,展示了YoFrameYawPitchRoll
我是一名优秀的程序员,十分优秀!