gpt4 book ai didi

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

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

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

YoBoolean.<init>介绍

[英]Create a new YoBoolean. This will call its super YoVariable's YoVariable(YoVariableType, String, String, YoVariableRegistry)with YoVariableType#BOOLEAN and the given values.
[中]创建一个新的YoBoolean。这将使用YoVariableType#布尔值和给定值调用其超级YoVariable的YoVariable(YoVariableType,String,String,YoVariableRegistry)。

代码示例

代码示例来源: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/ihmc-robotics-toolkit

private AlphaFilteredYoFrameVector2d(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleProvider alpha, ReferenceFrame referenceFrame,
                  FrameTuple2DReadOnly unfilteredFrameTuple2D)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 alphaProvider = alpha;
 position = unfilteredFrameTuple2D;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 reset();
}

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

private AlphaFilteredYoFramePoint(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleProvider alpha, ReferenceFrame referenceFrame,
                 FrameTuple3DReadOnly unfilteredFrameTuple3D)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 alphaProvider = alpha;
 position = unfilteredFrameTuple3D;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 reset();
}

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

private AlphaFilteredYoFrameQuaternion(String namePrefix, String nameSuffix, YoFrameQuaternion unfilteredQuaternion, DoubleProvider alpha,
   ReferenceFrame referenceFrame, YoVariableRegistry registry)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 this.unfilteredQuaternion = unfilteredQuaternion;
 if (alpha == null)
   alpha = createAlphaYoDouble(namePrefix, 0.0, registry);
 this.alpha = alpha;
 this.hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
}

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

public BetaFilteredYoVariable(String name, String description, YoVariableRegistry registry, int beta, YoDouble positionVariable)
{
 super(name, description, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.beta = beta;
 this.position = positionVariable;
 this.betaVariable = null;
 raw = new double[beta];
 reset();
}

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

private AlphaFilteredYoFrameVector(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleProvider alpha, ReferenceFrame referenceFrame,
                 FrameTuple3DReadOnly unfilteredFrameTuple3D)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 alphaProvider = alpha;
 position = unfilteredFrameTuple3D;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 reset();
}

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

private AlphaFilteredYoFramePoint2d(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleProvider alpha, ReferenceFrame referenceFrame,
                  FrameTuple2DReadOnly unfilteredFrameTuple2D)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 alphaProvider = alpha;
 position = unfilteredFrameTuple2D;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 reset();
}

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

public FilteredVelocityYoVariable(String name, String description, DoubleProvider alphaVariable, double dt, YoVariableRegistry registry)
{
 super(name, description, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.position = null;
 this.alphaVariable = alphaVariable;
 this.alphaDouble = 0.0;
 this.dt = dt;
 lastPosition = new YoDouble(name + "_lastPosition", registry);
 reset();
}

代码示例来源: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-robotics-toolkit

public FilteredVelocityYoVariable(String name, String description, double alpha, YoDouble positionVariable, double dt, YoVariableRegistry registry)
{
 super(name, description, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.alphaDouble = alpha;
 this.position = positionVariable;
 this.dt = dt;
 this.alphaVariable = null;
 lastPosition = new YoDouble(name + "_lastPosition", registry);
 reset();
}

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

public FilteredVelocityYoVariable(String name, String description, DoubleProvider alphaVariable, YoDouble positionVariable, double dt, YoVariableRegistry registry)
{
 super(name, description, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 position = positionVariable;
 this.alphaVariable = alphaVariable;
 this.alphaDouble = 0.0;
 this.dt = dt;
 lastPosition = new YoDouble(name + "_lastPosition", registry);
 reset();
}

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

public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, YoDouble alphaVariable, YoDouble positionVariable,
   ButterworthFilterType butterworthFilterType)
{
 super(name, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.alpha = 0.0;
 this.alphaVariable = alphaVariable;
 this.position = positionVariable;
 this.previousInput = new YoDouble(name + "_prevIn", registry);
 this.butterworthFilterType = butterworthFilterType;
 reset();
}

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

public AlphaFusedYoVariable(String name, YoVariableRegistry yoVariableRegistry, double alpha, YoDouble slowSignal, YoDouble fastSignal)
{
 super(name, yoVariableRegistry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", yoVariableRegistry);
 this.alpha = alpha;
 this.alphaVariable = null;
 this.slowSignal = slowSignal;
 this.fastSignal = fastSignal;
 steadyStateOffset = new YoDouble(name + "_off", yoVariableRegistry);
 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-robotics-toolkit

public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, double alpha, ButterworthFilterType butterworthFilterType)
{
 super(name, registry);
 this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry);
 this.alpha = alpha;
 this.alphaVariable = null;
 this.position = null;
 this.previousInput = new YoDouble(name + "_prevIn", registry);
 this.butterworthFilterType = butterworthFilterType;
 reset();
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

private void createVariables()
{
 for (int i = 0; i < variablesPerType; i++)
 {
   new YoBoolean("Boolean" + i, registry);
   new YoDouble("Double" + i, registry);
   new YoInteger("Integer" + i, registry);
   new YoLong("Long" + i, registry);
   new YoEnum<>("Enum" + i, registry, SomeEnum.class, random.nextBoolean());
 }
}

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

public FilteredVelocityYoFrameVector(String namePrefix, String nameSuffix, DoubleProvider alpha, double dt, YoVariableRegistry registry,
                  FrameTuple3DReadOnly frameTuple3DToDifferentiate)
{
 super(namePrefix, nameSuffix, frameTuple3DToDifferentiate.getReferenceFrame(), registry);
 this.alphaProvider = alpha;
 this.dt = dt;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 currentPosition = frameTuple3DToDifferentiate;
 lastPosition = new YoFrameVector3D(namePrefix + "_lastPosition", nameSuffix, getReferenceFrame(), registry);
 reset();
}

代码示例来源: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 YoStopwatch(String name, YoDouble timeYoVariable, YoVariableRegistry registry)
{
 this(timeYoVariable);
 yoLapStart = new YoDouble(name + "LapStart", registry);
 yoLapCount = new YoLong(name + "LapCount", registry);
 yoRecordedLapTotal = new YoDouble(name + "RecordedLapTotal", registry);
 yoSuspended = new YoBoolean(name + "Suspended", registry);
 yoSuspendStart = new YoDouble(name + "SuspendStart", registry);
 yoResumedSuspensionTotal = new YoDouble(name + "ResumedSuspensionTotal", registry);
 yoLapStart.setToNaN();
}

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

public HeadTrajectoryBehavior(String robotName, String namePrefix, Ros2Node ros2Node, YoDouble yoTime)
{
 super(robotName, namePrefix, ros2Node);
 this.yoTime = yoTime;
 String behaviorNameFirstLowerCase = StringUtils.uncapitalize(getName());
 packetHasBeenSent = new YoBoolean(behaviorNameFirstLowerCase + "HasPacketBeenSent", registry);
 startTime = new YoDouble(behaviorNameFirstLowerCase + "StartTime", registry);
 startTime.set(Double.NaN);
 trajectoryTime = new YoDouble(behaviorNameFirstLowerCase + "TrajectoryTime", registry);
 trajectoryTime.set(Double.NaN);
 publisher = createPublisherForController(HeadTrajectoryMessage.class);
}

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