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

x33g5p2x  于2022-02-05 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(148)

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

YoLong.getLongValue介绍

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

代码示例

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

@Override
  public long getValue()
  {
   return getLongValue();
  }
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces

private void updateIsControllerTick()
{
 if (controllerTimerCount == null)
 {
   isControllerTick = true;
   return;
 }
 isControllerTick = controllerTimerCount.getLongValue() != lastControllerTimerCount;
 lastControllerTimerCount = controllerTimerCount.getLongValue();
}

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

/**
* Assesses if this YoLong is equal to zero.
*
* @return boolean if this YoLong's internal long value is equal to long 0
*/
@Override public boolean isZero()
{
 return getLongValue() == 0;
}

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

@Override
public long getVisionSensorTimestamp()
{
 return visionSensorTimestamp.getLongValue();
}

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

@Override
public long getEstimatorTick()
{
 return estimatorTick.getLongValue();
}

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

@Override
public long nextWakeupTime()
{
 if (lastEstimatorStartTime.getLongValue() == Long.MIN_VALUE)
 {
   return Long.MIN_VALUE;
 }
 else
 {
   return lastEstimatorStartTime.getLongValue() + controlDTInNS + estimatorDTInNS;
 }
}

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

@Override
public long getEstimatorClockStartTime()
{
 return estimatorClockStartTime.getLongValue();
}

代码示例来源:origin: us.ihmc/acsell

public boolean isLastPacketDropped()
{
 return (lastMicroControllerTime==microControllerTime.getLongValue()) && lastMicroControllerTime!=0;
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

public static int findControllerNumberOfCommandsInQueueForXY(SimulationConstructionSet scs)
{
 String nameSpace = PelvisICPBasedTranslationManager.class.getSimpleName();
 String queuedCommandsVariableName = "PelvisXYTranslationNumberOfQueuedCommands";
 int numberOfCommands = (int) ((YoLong) scs.getVariable(nameSpace, queuedCommandsVariableName)).getLongValue();
 return numberOfCommands;
}

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

public double averageLap()
{
 if (yoLapStart == null)
 {
   return recordedLapTotal / lapCount;
 }
 else
 {
   return yoRecordedLapTotal.getDoubleValue() / yoLapCount.getLongValue();
 }
}

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

/**
* Sets this YoLong to its current value plus the given value.
*
* @param value long to add to this YoLong
*/
public void add(long value)
{
 this.set(this.getLongValue() + value);
}

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

/**
* Sets this YoLong to its current value minus the given value.
*
* @param value long to subtract from this YoLong
*/
public void subtract(long value)
{
 this.set(this.getLongValue() - value);
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer

@Override
public void notifyOfIndexChange(int newIndex)
{
 if (activePlayer != null)
 {
   activePlayer.showVideoFrame(timestamp.getLongValue());
 }
}

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

/**
* Sets this YoInteger to its current value minus one.
*/
public void decrement()
{
 this.set(this.getLongValue() - 1);
}

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

/**
* Returns String representation of this YoLong.
*
* @return a String representing this YoLong and its current value as a long
*/
@Override public String toString()
{
 return String.format("%s: %d", getName(), getLongValue());
}

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

/**
* Sets the internal value of this YoLong to the current value of the passed YoLong.
*
* @param value YoLong value to set this variable's value to
* @param notifyListeners boolean determining whether or not to call {@link #notifyVariableChangedListeners()}
* @return boolean whether or not internal state differed from the passed value
*/
@Override public boolean setValue(YoLong value, boolean notifyListeners)
{
 return set(value.getLongValue(), notifyListeners);
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer

@Override
public void notifyOfRewind()
{
 if (activePlayer != null)
 {
   activePlayer.showVideoFrame(timestamp.getLongValue());
 }
}

代码示例来源: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/acsell

private void manageWalkChanged(boolean nowWalking)
{
 if(nowWalking)
   lastStartWalkTime = Conversions.nanosecondsToSeconds(nanosecondstime.getLongValue());
 else
   internalPriorWalkingDuration = walking_time.getDoubleValue();      
}

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

/**
* Creates a new YoLong with the same parameters as this one, and registers it to the passed {@link YoVariableRegistry}.
*
* @param newRegistry YoVariableRegistry to duplicate this YoLong to
* @return the newly created and registered YoLong
*/
@Override public YoLong duplicate(YoVariableRegistry newRegistry)
{
 YoLong retVar = new YoLong(getName(), getDescription(), newRegistry, getManualScalingMin(), getManualScalingMax());
 retVar.set(getLongValue());
 return retVar;
}

相关文章