gpt4 book ai didi

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

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

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

YoBoolean.getBooleanValue介绍

[英]Retrieve the boolean value of this YoBoolean.
[中]检索此对象的布尔值。

代码示例

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

/**
* Retrieves this YoBoolean's value as a long.
*
* @return long value of internal boolean state (0 or 1)
*/
@Override public long getValueAsLongBits()
{
 return getBooleanValue() ? 1 : 0;
}

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

@Override
public boolean isDone()
{
 return ballFound.getBooleanValue();
}

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

public boolean hasInputBeenSet()
{
 if (haveFootstepsBeenGenerated.getBooleanValue())
   return true;
 else
   return false;
}

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

@Override
public boolean isDone()
{
 // return true;
 return validAcknoledged.getBooleanValue();
}

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

public boolean hasInputBeenSet()
  {
   return hasInputBeenSet.getBooleanValue();
  }
}

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

@Override
public boolean isDone()
{
 return isDone.getBooleanValue();
}

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

@Override
public boolean isDone()
{
 if (!haveFootstepsBeenGenerated.getBooleanValue() || !hasTargetBeenProvided.getBooleanValue())
   return false;
 if (haveFootstepsBeenGenerated.getBooleanValue() && footsteps.size() == 0)
   return true;
 return footstepListBehavior.isDone();
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

@Override
public GroundContactPoint getLockedContactPoint(int contactPointIndex)
{
 if (contactsAvailable.get(contactPointIndex).getBooleanValue())
 {
   throw new RuntimeException("Trying to get a contact point that isn't checked out!");
 }
 return allGroundContactPoints.get(contactPointIndex);
}

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

private void sendPacketToNetworkProcessor()
  {
   if (!isPaused.getBooleanValue() && !isAborted.getBooleanValue())
   {
     System.out.println("EnableLidarBehavior: sending enable packet");
//         sendPacket(enableLidarPacket);
     packetHasBeenSent.set(true);
   }
  }

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

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

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

public void reset()
{
 for (YoBoolean var : previousYoVariables)
 {
   var.set(variableToDelay.getBooleanValue());
 }
 this.set(variableToDelay.getBooleanValue());
}

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

private void sendOutgoingPacketToControllerAndNetworkProcessor()
{
 if (!isPaused.getBooleanValue() && !isAborted.getBooleanValue())
 {
   goHomePublisher.publish(outgoingMessage);
   hasPacketBeenSent.set(true);
   if (DEBUG)
    PrintTools.debug(this, "sending packet to controller and network processor: " + outgoingMessage);
 }
}

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

@Override
public void doControl()
{
 if (!packetHasBeenSent.getBooleanValue() && (outgoingFootLoadBearingMessage != null))
 {
   sendFootStateToController();
 }
}

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

@Override
public void doControl()
{
 if (!packetHasBeenSent.getBooleanValue() && (outgoingHeadTrajectoryMessage != null))
 {
   sendHeadOrientationPacketToController();
 }
}

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

private void initialize(YoBoolean yoVariableToFilter, int windowSize)
{
 if (windowSize < 0)
   throw new RuntimeException("window size must be greater than 0");
 variableToFilter = yoVariableToFilter;
 this.windowSize.set(windowSize);
 if (variableToFilter != null)
   this.set(yoVariableToFilter.getBooleanValue());
 this.set(false);
}

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

private void sendHandDesiredConfigurationToController()
{
 if (!isPaused.getBooleanValue() && !isAborted.getBooleanValue())
 {
   publisher.publish(outgoingHandDesiredConfigurationMessage);
   hasPacketBeenSet.set(true);
   startTime.set(yoTime.getDoubleValue());
   if (DEBUG)
    PrintTools.debug(this, "Sending HandDesiredConfigurationMessage to Controller: " + outgoingHandDesiredConfigurationMessage);
 }
}

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

public void update()
{
 if (initialize.getBooleanValue())
 {
   if (!initialize())
    return;
   initialize.set(false);
 }
 updateInternal();
}

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

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

代码示例来源: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);
}

代码示例来源: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()));
  }

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