@Override void setToDefault() { this.value.set(initialValue); }
@Override public void processData() { processDataHasBeenCalled.set(true); }
@Override public void simulationDone() { simulationDoneListenerHasBeenNotified.set(true); }
/** * Request this toolbox controller to run {@link #initialize} on the next call of * {@link #update()}. */ public void requestInitialize() { initialize.set(true); }
@Override void setToString(String valueString) { this.value.set(Boolean.parseBoolean(valueString)); }
@Override public void setGoal(FootstepPlannerGoal goal) { waypointPathPlanner.setGoal(goal); hasPath.set(false); }
@Override public void setPlanningHorizonLength(double planningHorizon) { footstepPlanner.setPlanningHorizonLength(planningHorizon); hasPath.set(false); }
@Override protected void setBehaviorInput() { publishTextToSpeack("Walking To The Ball"); coactiveElement.currentState.set(PickUpBallBehaviorState.WALKING_TO_BALL); coactiveElement.searchingForBall.set(false); coactiveElement.waitingForValidation.set(false); coactiveElement.foundBall.set(true); walkToLocationBehavior.setTarget(getoffsetPoint()); } };
@Override public void run() { super.run(); locationEnabled.set(true); }
private void checkFootCheckPoints() { humanoidRobotModel.getRootJoint().getPosition(position); if (footStepCheckPointIndex < footCheckPoint.size() && footCheckPoint.get(footStepCheckPointIndex).isInsideInclusive(position)) { footCheckPointFlag.get(footStepCheckPointIndex).set(true); if (footStepCheckPointIndex < footCheckPoint.size()) footStepCheckPointIndex++; } }
public InitializingRobotController(RobotController robotController) { this.robotController = robotController; this.isInitialized = new YoBoolean("isInitialized", robotController.getYoVariableRegistry()); this.isInitialized.set(false); }
public void setFieldOfView(double fieldOfViewXinRadians, double fieldOfViewYinRadians) { this.fieldOfViewXinRadians.set(fieldOfViewXinRadians); this.fieldOfViewYinRadians.set(fieldOfViewYinRadians); this.targetIDHasBeenLocated.set(false); }
public void reset() { for (YoBoolean var : previousYoVariables) { var.set(variableToDelay.getBooleanValue()); } this.set(variableToDelay.getBooleanValue()); }
public void initialize(double input) { this.set(input); smoothedRate.set(0.0); smoothedAcceleration.set(0.0); this.hasBeenInitialized.set(true); }
public PathPlanningStage(int stageId, FootstepPlannerParameters parameters, VisibilityGraphsParameters visibilityGraphsParameters, EnumProvider<FootstepPlannerType> activePlanner) { this.stageId = stageId; this.activePlannerEnum = activePlanner; String prefix = stageId + "_Path_"; initialize = new YoBoolean(prefix + "Initialize" + registry.getName(), registry); sequenceId = new YoInteger(prefix + "PlanningSequenceId", registry); plannerMap.put(FootstepPlannerType.SIMPLE_BODY_PATH, new SplinePathPlanner(parameters, registry)); plannerMap.put(FootstepPlannerType.VIS_GRAPH_WITH_A_STAR, new VisibilityGraphPathPlanner(prefix, parameters, visibilityGraphsParameters, registry)); initialize.set(true); }
public void setBias(double bias, double biasMax, double biasMin, double biasDelta) { useBias.set(true); this.bias.set(bias); this.biasMax.set(biasMax); this.biasMin.set(biasMin); this.biasDelta.set(biasDelta); }
public void update() { if (initialize.getBooleanValue()) { if (!initialize()) // Return until the initialization succeeds return; initialize.set(false); } updateInternal(); checkPlannersForFailures(); }
@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; } }
public void setBias(double bias) { useBias.set(true); this.bias.set(bias); if (bias > biasMax.getDoubleValue()) biasMax.set(bias); if (bias < biasMin.getDoubleValue()) biasMin.set(bias); biasDelta.set(0.0); }
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); }