gpt4 book ai didi

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

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

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

YoDouble.set介绍

[英]Calls #set(double,boolean) with value and true.
[中]使用value和true调用#set(double,boolean)。

代码示例

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

@Override
public void setX(double x)
{
 this.x.set(x);
}

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

@Override
public void setY(double y)
{
 this.y.set(y);
}

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

@Override
public void setDerivativeGain(double derivativeGain)
{
 maxDerivativeGain.set(derivativeGain);
}

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

public void setThresholds(double firstThreshold, double secondThreshold)
{
 firstSingularValueThreshold.set(firstThreshold);
 secondSingularValueThreshold.set(secondThreshold);
}

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

@Override
public void setMaxDerivativeError(double maxDerivativeError)
{
 this.maxDerivativeError.set(maxDerivativeError);
}

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

public void reset()
{
 kdParallelMaxReductionRatio.set(1.0);
 dampingParallelToMotionDeadband.set(Double.POSITIVE_INFINITY);
 dampingParallelToMotionDeadband.set(Double.POSITIVE_INFINITY);
}

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

public void resetToZero()
{
 differentiationMode.set(DifferentiationMode.USING_DT);
 previousDerivative.set(0.0);
 previousSignal.set(0.0);
 timeAtLastSignalChange.set(0.0);
 previousTime.set(0.0);
 lastSignalChange.set(0.0);
}

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

@Override
public void setIntegralGains(double integralGainX, double integralGainY, double integralGainZ, double maxIntegralError)
{
 if (!usingIntegrator)
 {
   return;
 }
 kiMap.get(Axis.X).set(integralGainX);
 kiMap.get(Axis.Y).set(integralGainY);
 kiMap.get(Axis.Z).set(integralGainZ);
 this.maxIntegralError.set(maxIntegralError);
}

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

public void updateOutput(double actual, double desired)
{
 this.desired.set(desired);
 this.actual.set(actual);
 updateOutput();
}

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

public void reset()
{
 this.hasBeenInitialized.set(false);
 smoothedRate.set(0.0);
 smoothedAcceleration.set(0.0);
}

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

private static DoubleProvider createMaxRateYoDouble(String namePrefix, String nameSuffix, double initialValue, YoVariableRegistry registry)
{
 YoDouble maxRate = new YoDouble(namePrefix + "MaxRate" + nameSuffix, registry);
 maxRate.set(initialValue);
 return maxRate;
}

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

public void setGaussianNoise(double standardDeviation)
{
 this.noiseType.set(NoiseType.GAUSSIAN);
 this.standardDeviation.set(standardDeviation);
}

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

public void set(YoPIDGains other)
{
 super.set(other);
 ki.set(other.ki.getDoubleValue());
 maxIntegralError.set(other.maxIntegralError.getDoubleValue());
 integralLeakRatio.set(other.integralLeakRatio.getDoubleValue());
}

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

public static void storeInYoVariablesSymmetric(DenseMatrix64F m, List<List<YoDouble>> yoM)
{
 int size = m.getNumRows();
 for (int i = 0; i < size; i++)
 {
   List<YoDouble> row = yoM.get(i);
   for (int j = 0; j <= i; j++)
   {
    row.get(j).set(m.get(i, j));
   }
 }
}

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

public void enableMax()
{
 max = new YoDouble(variable.getName() + "Max", registry);
 max.set(Double.MIN_VALUE);
}

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

public static void storeInYoVariablesMatrix(DenseMatrix64F m, List<List<YoDouble>> yoM)
{
 for (int i = 0; i < m.getNumRows(); i++)
 {
   List<YoDouble> row = yoM.get(i);
   for (int j = 0; j < m.getNumCols(); j++)
   {
    row.get(j).set(m.get(i, j));
   }
 }
}

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

private void performModeChangeAction(double time)
{
 modeChanged = true;
 timeModeChanged.set(time);
 timeInCurrentMode.set(time - timeModeChanged.getDoubleValue());
 signalDerivative.initialize(DifferentiationMode.USING_DT, value.getDoubleValue(), timeInCurrentMode.getDoubleValue(), valueDot.getDoubleValue());
}

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

public RateLimitedYoVariable(String name, YoVariableRegistry registry, double maxRate, YoDouble positionVariable, double dt)
{
 super(name, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.limited = new YoBoolean(name + "Limited", registry);
 position = positionVariable;
 YoDouble maxRateVariable = new YoDouble(name + "MaxRate", registry);
 maxRateVariable.set(maxRate);
 this.maxRateVariable = maxRateVariable;
 
 this.dt = dt;
 reset();
}

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

public void update(double input)
{
 int nUpdatesOld = nUpdates.getIntegerValue();
 nUpdates.increment();
 int nUpdatesNew = nUpdates.getIntegerValue();
 double ratio = ((double) nUpdatesOld) / ((double) nUpdatesNew);
 average.set(average.getDoubleValue() * ratio + input / nUpdates.getIntegerValue());
}

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

public void update(double input)
{
 if (!hasBeenInitialized.getBooleanValue())
   initialize(input);
 double positionError = input - this.getDoubleValue();
 double acceleration = -velocityGain.getDoubleValue() * smoothedRate.getDoubleValue() + positionGain.getDoubleValue() * positionError;
 acceleration = MathTools.clamp(acceleration, -maximumAcceleration.getDoubleValue(), maximumAcceleration.getDoubleValue());
 smoothedAcceleration.set(acceleration);
 smoothedRate.add(smoothedAcceleration.getDoubleValue() * dt);
 smoothedRate.set(MathTools.clamp(smoothedRate.getDoubleValue(), maximumRate.getDoubleValue()));
 this.add(smoothedRate.getDoubleValue() * dt);
}

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