@Override public void doControl() { if (validClicked.getBooleanValue()) { validAcknoledged.set(true); } }
public CartesianTrajectoryBasedFootSwitch(String name, Finishable trajectoryGenerator, YoVariableRegistry registry) { this.name = name; this.trajectoryGenerator = trajectoryGenerator; isSwinging = new YoBoolean(name, registry); }
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); }
/** * 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; }
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()); }
@Override public boolean isSimulationDone() { return setSimulationDoneCriterion.getBooleanValue(); } };
@Override void setToDefault() { this.value.set(initialValue); }
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); }
public void notifyOfVariableChange(YoVariable<?> yoVariable) { symmetricMode = isSymmetricModeRequested.getBooleanValue(); } });
/** * Request this toolbox controller to run {@link #initialize} on the next call of * {@link #update()}. */ public void requestInitialize() { initialize.set(true); }
/** * 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); }
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(); }
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); }
public boolean wasControlInconsistent() { return inconsistentControl.getBooleanValue(); } }
@Override void setToString(String valueString) { this.value.set(Boolean.parseBoolean(valueString)); }
public void addResetToBasePoseRequestedListener(VariableChangedListener variableChangedListener) { isResetToBasePoseRequested.addVariableChangedListener(variableChangedListener); } }
private void sendPacketToNetworkProcessor() { if (!isPaused.getBooleanValue() && !isAborted.getBooleanValue()) { // sendPacket(clearLidarPacket); packetHasBeenSent.set(true); } }