本文整理了Java中us.ihmc.yoVariables.variable.YoBoolean.set()
方法的一些代码示例,展示了YoBoolean.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoBoolean.set()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoBoolean
类名称:YoBoolean
方法名:set
[英]Calls #set(boolean,boolean) with value and true.
[中]使用value和true调用#set(boolean,boolean)。
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
void setToDefault()
{
this.value.set(initialValue);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
@Override
public void processData()
{
processDataHasBeenCalled.set(true);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
@Override
public void simulationDone()
{
simulationDoneListenerHasBeenNotified.set(true);
}
代码示例来源: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
void setToString(String valueString)
{
this.value.set(Boolean.parseBoolean(valueString));
}
代码示例来源:origin: us.ihmc/ihmc-footstep-planning
@Override
public void setGoal(FootstepPlannerGoal goal)
{
waypointPathPlanner.setGoal(goal);
hasPath.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-footstep-planning
@Override
public void setPlanningHorizonLength(double planningHorizon)
{
footstepPlanner.setPlanningHorizonLength(planningHorizon);
hasPath.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
@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());
}
};
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
@Override
public void run()
{
super.run();
locationEnabled.set(true);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
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++;
}
}
代码示例来源: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/ihmc-perception
public void setFieldOfView(double fieldOfViewXinRadians, double fieldOfViewYinRadians)
{
this.fieldOfViewXinRadians.set(fieldOfViewXinRadians);
this.fieldOfViewYinRadians.set(fieldOfViewYinRadians);
this.targetIDHasBeenLocated.set(false);
}
代码示例来源: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-robotics-toolkit
public void initialize(double input)
{
this.set(input);
smoothedRate.set(0.0);
smoothedAcceleration.set(0.0);
this.hasBeenInitialized.set(true);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
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);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
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);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public void update()
{
if (initialize.getBooleanValue())
{
if (!initialize()) // Return until the initialization succeeds
return;
initialize.set(false);
}
updateInternal();
checkPlannersForFailures();
}
代码示例来源: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-robotics-toolkit
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);
}
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!