本文整理了Java中us.ihmc.yoVariables.variable.YoBoolean
类的一些代码示例,展示了YoBoolean
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoBoolean
类的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoBoolean
类名称:YoBoolean
[英]Boolean implementation of the YoVariable class.
All abstract functions of YoVariable will be implemented using boolean type for interpretation. Values will be interpreted, compared, and returned as booleans rather than other native types.
[中]YoVariable类的布尔实现。
YoVariable的所有抽象函数都将使用布尔类型进行解释。值将被解释、比较和返回为布尔值,而不是其他本机类型。
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
@Override
public void doControl()
{
if (validClicked.getBooleanValue())
{
validAcknoledged.set(true);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public CartesianTrajectoryBasedFootSwitch(String name, Finishable trajectoryGenerator, YoVariableRegistry registry)
{
this.name = name;
this.trajectoryGenerator = trajectoryGenerator;
isSwinging = new YoBoolean(name, registry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public DampingUpdater(YoDouble kp, YoDouble kd, YoDouble zeta, YoBoolean update)
{
this.kp = kp;
this.kd = kd;
this.zeta = zeta;
this.update = update;
update.addVariableChangedListener(this);
}
代码示例来源: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 DelayedYoBoolean(String name, String description, YoBoolean variableToDelay, int ticksToDelay, YoVariableRegistry registry)
{
super(name, description, registry);
this.variableToDelay = variableToDelay;
previousYoVariables = new YoBoolean[ticksToDelay];
for (int i = 0; i < ticksToDelay; i++)
{
previousYoVariables[i] = new YoBoolean(name + "_previous" + i, registry);
previousYoVariables[i].set(variableToDelay.getBooleanValue());
}
this.set(variableToDelay.getBooleanValue());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public InitializingRobotController(RobotController robotController)
{
this.robotController = robotController;
this.isInitialized = new YoBoolean("isInitialized", robotController.getYoVariableRegistry());
this.isInitialized.set(false);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
@Override
public boolean isSimulationDone()
{
return setSimulationDoneCriterion.getBooleanValue();
}
};
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
void setToDefault()
{
this.value.set(initialValue);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void doControl()
{
if(!this.isInitialized.getValue())
{
robotController.initialize();
this.isInitialized.set(true);
}
robotController.doControl();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private FiniteDifferenceAngularVelocityYoFrameVector(String namePrefix, YoFrameQuaternion orientationToDifferentiate, ReferenceFrame referenceFrame, double dt, YoVariableRegistry registry)
{
super(namePrefix, referenceFrame, registry);
this.dt = dt;
orientation = orientationToDifferentiate;
orientationPreviousValue = new YoFrameQuaternion(namePrefix + "_previous", referenceFrame, registry);
hasBeenCalled = new YoBoolean(namePrefix + "HasBeenCalled", registry);
hasBeenCalled.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public void notifyOfVariableChange(YoVariable<?> yoVariable)
{
symmetricMode = isSymmetricModeRequested.getBooleanValue();
}
});
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
/**
* Request this toolbox controller to run {@link #initialize} on the next call of
* {@link #update()}.
*/
public void requestInitialize()
{
initialize.set(true);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public YoBoolean duplicate(YoVariableRegistry newRegistry)
{
BooleanParameter newParameter = new BooleanParameter(getName(), getDescription(), newRegistry, initialValue);
newParameter.value.set(value.getValue());
newParameter.loadStatus = getLoadStatus();
return newParameter.value;
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Sets the internal value of this YoBoolean to the current value of the passed YoBoolean.
*
* @param value YoBoolean 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(YoBoolean value, boolean notifyListeners)
{
return set(value.getBooleanValue(), notifyListeners);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public RateLimitedYoVariable(String name, YoVariableRegistry registry, DoubleProvider maxRateVariable, YoDouble positionVariable, double dt)
{
super(name, registry);
this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
this.limited = new YoBoolean(name + "Limited", registry);
position = positionVariable;
this.maxRateVariable = maxRateVariable;
this.dt = dt;
reset();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public BooleanGlobalParameter(String name, String description, boolean value, GlobalParameterChangedListener listener)
{
super(listener);
yoVariable = new YoBoolean(name, description, registry);
((YoBoolean)yoVariable).set(value);
if (changedListener != null)
changedListener.globalParameterCreated(this);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
public boolean wasControlInconsistent()
{
return inconsistentControl.getBooleanValue();
}
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
void setToString(String valueString)
{
this.value.set(Boolean.parseBoolean(valueString));
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public void addResetToBasePoseRequestedListener(VariableChangedListener variableChangedListener)
{
isResetToBasePoseRequested.addVariableChangedListener(variableChangedListener);
}
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
private void sendPacketToNetworkProcessor()
{
if (!isPaused.getBooleanValue() && !isAborted.getBooleanValue())
{
// sendPacket(clearLidarPacket);
packetHasBeenSent.set(true);
}
}
内容来源于网络,如有侵权,请联系作者删除!