gpt4 book ai didi

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

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

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

YoDouble.getDoubleValue介绍

[英]Retrieves the value of this YoDouble.
[中]检索此值。

代码示例

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

@Override
  public double getIntegralLeakRatio()
  {
   return integralLeakRatio.getDoubleValue();
  }
}

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

public double getDA()
  {
   return lengthDC.getDoubleValue();
  }
}

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

@Override
public double getMaximumIntegralError()
{
 if (!usingIntegrator)
 {
   return 0.0;
 }
 return maxIntegralError.getDoubleValue();
}

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

/** {@inheritDoc} */
public double getParallelDampingDeadband()
{
 return dampingParallelToMotionDeadband.getDoubleValue();
}

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

private void setGainsReducedIfBacklash()
{
 double proportionalGain = gainReduction.getDoubleValue() * maxProportionalGain.getDoubleValue();
 double derivativeGain = gainReduction.getDoubleValue() * maxDerivativeGain.getDoubleValue();
 
 super.setProportionalGain(proportionalGain);
 super.setDerivativeGain(derivativeGain);
 
}

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

public void computeMasterJointAngleGivenAngleABC(double angleABCInRadians)
{
 double B = angleABCInRadians;
 double f = unknownTriangleSideLengthByLawOfCosine(lengthBA.getDoubleValue(), lengthCB.getDoubleValue(), B);
 double D = getAngleWithCosineLaw(lengthDC.getDoubleValue(), lengthAD.getDoubleValue(), f);
 double angleACB = getAngleWithCosineLaw(lengthCB.getDoubleValue(), f, lengthBA.getDoubleValue());
 double angleACD = getAngleWithCosineLaw(lengthDC.getDoubleValue(), f, lengthAD.getDoubleValue());
 double C = angleACB + angleACD;
 double A = 2 * PI - D - B - C;
 this.angleDAB = A;
}

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

@Override
public void update()
{
 if (position == null)
 {
   throw new NullPointerException("YoFilteredVelocityVariable must be constructed with a non null "
                  + "position variable to call update(), otherwise use update(double)");
 }
 update(position.getDoubleValue());
}

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

private double alphaFilter(double currentValue)
{
  double previousFilteredValue = this.getDoubleValue();
  double a = this.alpha;
  if (alphaVariable != null)
  {
    a = alphaVariable.getDoubleValue();
  }
  double ret = a * previousFilteredValue + (1.0 - a) * currentValue;
  return ret;
}

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

@Override
public void update()
{
 if (velocity == null)
 {
   throw new NullPointerException(
      "BacklashProcessingYoVariable must be constructed with a non null " + "velocity variable to call update(), otherwise use update(double)");
 }
 update(velocity.getDoubleValue());
}

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

public void update()
{
 if (dataSource == null)
 {
   throw new NullPointerException("AverageSampleYoDouble must be constructed with a non null "
      + "dataSource variable to call update(), otherwise use update(double)");
 }
 update(dataSource.getDoubleValue());
}

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

public void startTransition(double lengthOfTransitionTime)
{
 transitionStartTime.set(time.getDoubleValue());
 this.lengthOfTransitionTime = lengthOfTransitionTime;
}

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

public void update()
{
 if (inputVariable == null)
   throw new NullPointerException("DeadzoneYoVariable must be constructed with a non null "
      + "input variable to call update(), otherwise use update(double)");
 update(inputVariable.getDoubleValue());
}

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

public double compute(double currentPosition, double desiredPosition, double currentRate, double desiredRate)
{
 positionError.set(applyDeadband(desiredPosition - currentPosition));
 rateError.set(desiredRate - currentRate);
 actionP.set(getProportionalGain() * positionError.getDoubleValue());
 actionD.set(getDerivativeGain() * rateError.getDoubleValue());
 return actionP.getDoubleValue() + actionD.getDoubleValue();
}

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

public Status update()
{
 if (variableToCheck.getDoubleValue() > upperLimit)
   status.set(Status.ABOVE_LIMIT);
 else if (variableToCheck.getDoubleValue() < lowerLimit)
   status.set(Status.BELOW_LIMIT);
 else
   status.set(Status.IN_RANGE);
 return status.getEnumValue();
}

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

public static void getFromYoVariablesMatrix(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++)
   {
    m.set(i, j, row.get(j).getDoubleValue());
   }
 }
}

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

public void setBias(double bias)
{
 useBias.set(true);
 this.bias.set(bias);
 if (bias > biasMax.getDoubleValue())
   biasMax.set(bias);
 if (bias < biasMin.getDoubleValue())
   biasMin.set(bias);
 biasDelta.set(0.0);
}

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

public void update(double perfectValue)
  {
   perfect.set(perfectValue);

   if (isNoisy.getBooleanValue())
   {
     double noise = getBias() + getRandomNoise();
     super.set(perfect.getDoubleValue() + noise);
   }
   else
     super.set(perfect.getDoubleValue());

//    System.out.println("NoisyYoDouble Diff: (" + this.getName() + ")" + (super.getDoubleValue() - perfect.getDoubleValue()));
  }

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

public static void getFromYoVariables(DenseMatrix64F m, YoDouble[][] yoM)
{
 for (int i = 0; i < m.getNumRows(); i++)
 {
   for (int j = 0; j < m.getNumCols(); j++)
   {
    m.set(i, j, yoM[i][j].getDoubleValue());
   }
 }
}

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

public void doAverage()
{
 if (dataLength.getIntegerValue() < 1)
   return;
 set(dataCumulated.getDoubleValue() / dataLength.getValueAsDouble());
 reset();
}

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

public void updateForAngles(double currentPosition)
{
 if (!hasBeenCalled.getBooleanValue())
 {
   hasBeenCalled.set(true);
   lastPosition.set(currentPosition);
   set(0.0);
 }
 double difference = AngleTools.computeAngleDifferenceMinusPiToPi(currentPosition, lastPosition.getDoubleValue());
 updateUsingDifference(difference);
 lastPosition.set(currentPosition);
}

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