本文整理了Java中us.ihmc.yoVariables.variable.YoDouble.isNaN()
方法的一些代码示例,展示了YoDouble.isNaN()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoDouble.isNaN()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoDouble
类名称:YoDouble
方法名:isNaN
[英]Assesses if this YoDouble's value is a NaN.
[中]评估此YoDouble的值是否为NaN。
代码示例来源:origin: us.ihmc/ihmc-graphics-description
@Override
protected boolean containsNaN()
{
if (x.isNaN())
return true;
if (y.isNaN())
return true;
if (z != null && z.isNaN())
return true;
return false;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean containsNaN()
{
return position.isNaN() || velocity.isNaN();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean containsNaN()
{
return time.isNaN() || waypoint1d.containsNaN();
}
代码示例来源:origin: us.ihmc/valkyrie
public void doControl()
{
long timestamp = timestampProvider.getTimestamp();
if (wakeUpTime.isNaN())
wakeUpTime.set(Conversions.nanosecondsToSeconds(timestamp));
yoTime.set(Conversions.nanosecondsToSeconds(timestamp) - wakeUpTime.getDoubleValue());
if (ValkyrieRosControlController.ENABLE_FINGER_JOINTS)
fingerController.doControl();
updateCommandCalculators();
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
private void terminateToolboxController()
{
toolboxSolution.setDestination(PacketDestination.BEHAVIOR_MODULE.ordinal());
reportMessage(toolboxSolution);
//nodePlotter.closeAll();
state.set(CWBToolboxState.DO_NOTHING);
double totalTime = 0.0;
if (!initialGuessComputationTime.isNaN())
totalTime += initialGuessComputationTime.getDoubleValue();
if (!treeExpansionComputationTime.isNaN())
totalTime += treeExpansionComputationTime.getDoubleValue();
if (!shortcutPathComputationTime.isNaN())
totalTime += shortcutPathComputationTime.getDoubleValue();
if (!motionGenerationComputationTime.isNaN())
totalTime += motionGenerationComputationTime.getDoubleValue();
totalComputationTime.set(totalTime);
if (VERBOSE)
{
PrintTools.info("===========================================");
PrintTools.info("initialGuessComputationTime is " + initialGuessComputationTime.getDoubleValue());
PrintTools.info("treeExpansionComputationTime is " + treeExpansionComputationTime.getDoubleValue());
PrintTools.info("shortcutPathComputationTime is " + shortcutPathComputationTime.getDoubleValue());
PrintTools.info("motionGenerationComputationTime is " + motionGenerationComputationTime.getDoubleValue());
PrintTools.info("toolbox executing time is " + totalComputationTime.getDoubleValue() + " seconds " + currentNumberOfIterations.getIntegerValue());
PrintTools.info("===========================================");
}
isDone.set(true);
}
内容来源于网络,如有侵权,请联系作者删除!