本文整理了Java中us.ihmc.yoVariables.variable.YoLong.increment()
方法的一些代码示例,展示了YoLong.increment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoLong.increment()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoLong
类名称:YoLong
方法名:increment
[英]Sets this YoInteger to its current value plus one.
[中]将此整数设置为其当前值加1。
代码示例来源:origin: us.ihmc/acsell
private void updatePacketDropStatistics()
{
if(isLastPacketDropped())
{
totalPacketDropCount.increment();
consecutivePacketDropCount.increment();
}
else
{
consecutivePacketDropCount.set(0);
}
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
@Override
public void doControl()
{
for (int i = 0; i < controllers.size(); i++)
{
controllers.get(i).readData(currentControlTick.getLongValue());
controllers.get(i).executeForSimulationTick(currentControlTick.getLongValue());
controllers.get(i).waitAndWriteData(currentControlTick.getLongValue());
}
currentControlTick.increment();
}
}
代码示例来源:origin: us.ihmc/ihmc-convex-optimization-adapter
@Override
public int solve(DenseMatrix64F Q, DenseMatrix64F f, DenseMatrix64F Aeq, DenseMatrix64F beq, DenseMatrix64F Ain, DenseMatrix64F bin, DenseMatrix64F x,
boolean initialize) throws NoConvergenceException
{
//allocate on demand
if (linearInequalityActiveSet == null)
linearInequalityActiveSet = new boolean[Ain.numRows];
else if (linearInequalityActiveSet.length != Ain.numRows)
{
System.err.println("linearInequalitySize changes, cold start with empty set");
linearInequalityActiveSet = new boolean[Ain.numRows];
}
if (initialize)
Arrays.fill(linearInequalityActiveSet, false);
int iter = solver.solve(Q, f, Aeq, beq, Ain, bin, linearInequalityActiveSet, x);
simpleSolverIterations.set(iter);
if (iter < 0)
{
fullSolverCount.increment();
Arrays.fill(linearInequalityActiveSet, false);
fullSolver.solve(Q, f, Aeq, beq, Ain, bin, x, initialize);
}
return iter;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
@Override
public void doControl()
{
for (int i = 0; i < controllers.size(); i++)
{
controllers.get(i).waitAndWriteData(currentControlTick.getLongValue());
}
for (int i = 0; i < controllers.size(); i++)
{
controllers.get(i).readData(currentControlTick.getLongValue());
}
for (int i = 0; i < controllers.size(); i++)
{
controllers.get(i).executeForSimulationTick(currentControlTick.getLongValue());
}
currentControlTick.increment();
}
代码示例来源:origin: us.ihmc/acsell
checksumFailures.increment();
totalPacketDropCount.increment();
consecutivePacketDropCount.increment();
return;
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
estimatorTick.increment();
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
@Override
public void run()
{
q_j1_d.set(q_j1_d.getDoubleValue() + 0.1);
q_j2_d.set(q_j2_d.getDoubleValue() + 0.05);
tau_j1.set(kp.getDoubleValue() * (q_j1_d.getDoubleValue() - q_j1.getDoubleValue()) + kd.getDoubleValue() * (-qd_j1.getDoubleValue()));
tau_j2.set(kp.getDoubleValue() * (q_j2_d.getDoubleValue() - q_j2.getDoubleValue()) + kd.getDoubleValue() * (-qd_j2.getDoubleValue()));
tick.increment();
long start = System.nanoTime();
while(System.nanoTime() - start < Conversions.millisecondsToNanoseconds(10))
{
// Busy wait
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void stopMeasurement()
{
final long currentNanoTime = System.nanoTime();
if ((currentNanoTime - timeOfFirstMeasurement) > measurementDelay)
{
final double timeTaken = Conversions.nanosecondsToSeconds(currentNanoTime - startTime);
final double previousAverage = average.getDoubleValue();
double previousSumOfSquares = MathTools.square(standardDeviation.getDoubleValue()) * ((double) count.getLongValue());
count.increment();
current.set(timeTaken);
average.set(previousAverage + (timeTaken - previousAverage) / ((double) count.getLongValue()));
movingAverage.update();
double sumOfSquares = previousSumOfSquares + (timeTaken - previousAverage) * (timeTaken - average.getDoubleValue());
standardDeviation.set(Math.sqrt(sumOfSquares / ((double) count.getLongValue())));
if (timeTaken > maximum.getDoubleValue())
{
maximum.set(timeTaken);
}
}
}
代码示例来源:origin: us.ihmc/ihmc-whole-body-controller
controllerLeadsEstimatorTicks.increment();
controllerLagsEstimatorTicks.increment();
代码示例来源:origin: us.ihmc/acsell
corruptedPackets.increment();
内容来源于网络,如有侵权,请联系作者删除!