gpt4 book ai didi

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

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

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

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);
}

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