gpt4 book ai didi

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

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

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

YoFrameVector3D.setToZero介绍

暂无

代码示例

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

@Override
public void setLinearVelocityToZero()
{
 linearVelocity.setToZero();
}

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

@Override
public void setAngularVelocityToZero()
{
 angularVelocity.setToZero();
}

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

public void setFinalVelocityToZero()
{
 finalAngularVelocity.setToZero();
}

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

@Override
public void setLinearVelocityToZero()
{
 linearVelocity.setToZero();
}

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

@Override
public void setLinearVelocityToZero()
{
 linearVelocity.setToZero();
}

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

public void setInitialVelocityToZero()
{
 initialAngularVelocity.setToZero();
}

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

@Override
public void setAngularVelocityToZero()
{
 angularVelocity.setToZero();
}

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

@Override
public void setAngularVelocityToZero()
{
 angularVelocity.setToZero();
}

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

@Override
public void setAngularVelocityToZero()
{
 angularVelocity.setToZero();
}

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

@Override
public void setLinearVelocityToZero()
{
 linearVelocity.setToZero();
}

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

public void resetIntegrator()
{
 rotationErrorCumulated.setToZero();
}

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

public void setFinalVelocityToZero()
{
 finalAngularVelocity.setToZero();
}

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

public void setInitialVelocityToZero()
{
 initialAngularVelocity.setToZero();
}

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

public void resetIntegrator()
{
 positionErrorCumulated.setToZero();
}

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

private void stopSlipping(RobotSide robotSide)
{
  YoFrameVector3D translationPhase = translationPhases.get(robotSide);
  translationPhase.setToZero();
    YoFrameVector3D rotationPhaseEuler = rotationPhasesEuler.get(robotSide);
  rotationPhaseEuler.setToZero();
}

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

@Override
public void initialize()
{
 currentTime.set(0.0);
 MathTools.checkIntervalContains(trajectoryTime.getDoubleValue(), 0.0, Double.POSITIVE_INFINITY);
 parameterPolynomial.setQuintic(0.0, trajectoryTime.getDoubleValue(), 0.0, 0.0, 0.0, 1.0, 0.0, 0.0);
 currentOrientation.set(initialOrientation);
 currentAngularVelocity.setToZero();
 currentAngularAcceleration.setToZero();
}

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

private void initialize(Vector3DReadOnly acceleration, Vector3DReadOnly magneticVector)
{
 boolean success = computeOrientationError(estimatedOrientation, acceleration, magneticVector, quaternionUpdate);
 if (!success)
   return;
 estimatedOrientation.multiply(quaternionUpdate);
 yoIntegralTerm.setToZero();
 hasBeenInitialized.set(true);
}

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

public void initialize()
{
 double trajectoryTime = trajectoryTimeProvider.getValue();
 MathTools.checkIntervalContains(trajectoryTime, 0.0, Double.POSITIVE_INFINITY);
 this.trajectoryTime.set(trajectoryTime);
 currentTime.set(0.0);
 parameterPolynomial.setQuintic(0.0, trajectoryTime, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0);
 
 updateInitialOrientation();
 updateFinalOrientation();
 desiredOrientation.set(initialOrientation);
 desiredAngularVelocity.setToZero();
 desiredAngularAcceleration.setToZero();
}

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

@Override
public void initialize()
{
 currentTime.set(0.0);
 double tIntermediate = trajectoryTime.getDoubleValue() / 2.0;
 xPolynomial.setQuadraticWithFinalVelocityConstraint(0.0,trajectoryTime.getDoubleValue(), initialPosition.getX(), finalPosition.getX(), finalVelocity.getX());
 yPolynomial.setQuadraticWithFinalVelocityConstraint(0.0,trajectoryTime.getDoubleValue(), initialPosition.getY(), finalPosition.getY(), finalVelocity.getY());
 zPolynomial.setCubicWithIntermediatePositionAndFinalVelocityConstraint(0.0,  tIntermediate, trajectoryTime.getDoubleValue(), initialPosition.getZ(), intermediateZPosition.getDoubleValue(), finalPosition.getZ(), finalVelocity.getZ());
 currentPosition.set(initialPosition);
 currentAcceleration.setToZero();
}

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

@Override
public void initialize()
{
 currentTime.set(0.0);
 initialAngularVelocityMagnitude.set(initialAngularVelocity.length());
 finalAngularVelocityMagnitude.set(finalAngularVelocity.length());
 maxAngularVelocityMagnitudeAtLimits.set(PI / trajectoryTime.getDoubleValue());
 initialDriftSaturated.set(initialAngularVelocityMagnitude.getDoubleValue() > maxAngularVelocityMagnitudeAtLimits.getDoubleValue());
 finalDriftSaturated.set(finalAngularVelocityMagnitude.getDoubleValue() > maxAngularVelocityMagnitudeAtLimits.getDoubleValue());
 parameterPolynomial.setQuintic(0, trajectoryTime.getDoubleValue(), 0.0, 0.0, 0.0, 1.0, 0.0, 0.0);
 if (initialOrientation.dot(finalOrientation) < 0.0)
   finalOrientation.negate();
 currentOrientation.set(initialOrientation);
 currentAngularVelocity.set(initialAngularVelocity);
 currentAngularAcceleration.setToZero();
}

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