本文整理了Java中us.ihmc.yoVariables.variable.YoInteger.<init>()
方法的一些代码示例,展示了YoInteger.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoInteger.<init>()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoInteger
类名称:YoInteger
方法名:<init>
[英]Create a new YoInteger. This will call its super YoVariable's YoVariable(YoVariableType, String, String, YoVariableRegistry)with YoVariableType#INTEGER and the given values.
[中]创建一个新的整数。这将使用YoVariableType#INTEGER和给定值调用其超级YoVariable的YoVariable(YoVariableType,String,String,YoVariableRegistry)。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoCounter(String namePrefix, YoVariableRegistry registry)
{
count = new YoInteger(namePrefix + "Count", registry);
maxCount = new YoInteger(namePrefix + "MaxCount", registry);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
public RTPSDebugRegistry()
{
this.skippedPackets = new YoInteger("skippedPackets", loggerDebugRegistry);
this.skippedIncomingPackets = new YoInteger("skippedIncomingPackets", loggerDebugRegistry);
this.nonIncreasingTimestamps = new YoInteger("nonIncreasingTimestamps", loggerDebugRegistry);
this.packetsOutOfOrder = new YoInteger("packetsOutOfOrder", loggerDebugRegistry);
this.mergedPackets = new YoInteger("mergedPackets", loggerDebugRegistry);
this.totalPackets = new YoInteger("totalPackets", loggerDebugRegistry);
this.skippedPacketDueToFullBuffer = new YoInteger("skippedPacketDueToFullBuffer", loggerDebugRegistry);
this.firstSegmentsMissing = new YoInteger("firstSegmentsMissing", loggerDebugRegistry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoInteger(String name, IntegerProvider windowSize, YoInteger position, YoVariableRegistry registry)
{
super(name, GlitchFilteredYoInteger.class.getSimpleName(), registry);
this.position = position;
previousPosition = new YoInteger(name + "PrevValue", registry);
counter = new YoInteger(name + "Count", registry);
this.windowSize = windowSize;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoInteger(String name, int windowSize, YoInteger position, YoVariableRegistry registry)
{
super(name, GlitchFilteredYoInteger.class.getSimpleName(), registry);
this.position = position;
previousPosition = new YoInteger(name + "PrevValue", registry);
counter = new YoInteger(name + "Count", registry);
YoInteger yoWindowSize = new YoInteger(name + "WindowSize", registry);
yoWindowSize.set(windowSize);
this.windowSize = yoWindowSize;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoBoolean(String name, YoVariableRegistry registry, int windowSize)
{
super(name, registry);
counter = new YoInteger(name + "Count", registry);
this.windowSize = new YoInteger(name + "WindowSize", registry);
initialize(null, windowSize);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoBoolean(String name, String description, YoVariableRegistry registry, YoBoolean yoVariableToFilter, int windowSize)
{
super(name, description, registry);
counter = new YoInteger(name + "Count", description, registry);
this.windowSize = new YoInteger(name + "WindowSize", description, registry);
initialize(yoVariableToFilter, windowSize);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoAverager(String prefix, YoVariableRegistry registry)
{
average = new YoDouble(prefix + "Average", registry);
nUpdates = new YoInteger(prefix + "AverageNUpdates", registry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoRMSCalculator(String prefix, YoVariableRegistry registry)
{
rms = new YoDouble(prefix + "Rms", registry);
nUpdates = new YoInteger(prefix + "RmsNUpdates", registry);
}
代码示例来源:origin: us.ihmc/acsell
public RawPhaseCurrentADTicks(String name, String phase, double conversionFactor, YoVariableRegistry registry)
{
this.conversionFactor = conversionFactor;
rawPhaseCurrentADTicks = new YoInteger(name + "RawPhase" + phase + "CurrentADTicks", registry);
phaseCurrent = new YoDouble(name + "Phase" + phase + "Current", registry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoPreallocatedList(Class<T> clazz, Supplier<T> allocator, String prefix, YoVariableRegistry registry, int capacity)
{
this.clazz = clazz;
this.position = new YoInteger(prefix + "Index", registry);
this.values = (T[]) Array.newInstance(clazz, capacity);
for (int i = 0; i < capacity; i++)
{
values[i] = allocator.get();
}
position.set(-1);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public AverageSampleYoDouble(String name, YoDouble dataSource, YoVariableRegistry registry)
{
super(name, registry);
this.dataSource = dataSource;
dataLength = new YoInteger(name + "DataLength", registry);
dataCumulated = new YoDouble(name + "DataCumulated", registry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoBoolean(String name, int windowSize)
{
super(name, "GlitchFilteredYoBoolean", null);
counter = new YoInteger(name + "Count", getYoVariableRegistry());
this.windowSize = new YoInteger(name + "WindowSize", getYoVariableRegistry());
initialize(null, windowSize);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public GlitchFilteredYoBoolean(String name, YoBoolean yoVariableToFilter, int windowSize)
{
super(name, "GlitchFilteredYoBoolean", null);
counter = new YoInteger(name + "Count", getYoVariableRegistry());
this.windowSize = new YoInteger(name + "WindowSize", getYoVariableRegistry());
initialize(yoVariableToFilter, windowSize);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public IntGlobalParameter(String name, String description, int value, GlobalParameterChangedListener listener)
{
super(listener);
yoVariable = new YoInteger(name, description, registry);
((YoInteger)yoVariable).set(value);
if (changedListener != null)
changedListener.globalParameterCreated(this);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public WrapperForMultipleFrameTrajectory3D(ArrayList<FrameTrajectory3D> frameTrajectories, String namePrefix, YoVariableRegistry parentRegistry)
{
YoVariableRegistry registry = new YoVariableRegistry(namePrefix + namePostfix);
parentRegistry.addChild(registry);
this.frameTrajectories = frameTrajectories;
positionTrajectoryGeneratorIndex = new YoInteger(namePrefix + "PositionTrajectoryGeneratorIndex", registry);
timeIntoStep = new YoDouble(namePrefix + "TimeIntoStep", registry);
}
代码示例来源:origin: us.ihmc/ihmc-whole-body-controller
public DiagnosticTaskExecutor(String namePrefix, YoDouble yoTime, YoVariableRegistry parentRegistry)
{
parentRegistry.addChild(registry);
currentTaskIndex = new YoInteger(namePrefix + "CurrentTaskIndex", registry);
numberOfTasksRemaining = new YoInteger(namePrefix + "TasksRemaining", registry);
isDone = new YoBoolean(namePrefix + "IsDone", registry);
hasAborted = new YoBoolean(namePrefix + "HasAborted", registry);
timeInCurrentTask = new YoDouble(namePrefix + "TimeInCurrentTask", registry);
switchTime = new YoDouble(namePrefix + "SwitchTime", registry);
this.yoTime = yoTime;
clear();
}
代码示例来源: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 SimpleMovingAverageFilteredYoVariable(String name, int windowSize, YoDouble yoVariableToFilter, YoVariableRegistry registry)
{
super(name, registry);
this.yoVariableToFilter = yoVariableToFilter;
this.windowSize = new YoInteger(name + "WindowSize", registry);
this.windowSize.set(windowSize);
previousUpdateValues.reshape(windowSize, 1);
CommonOps.fill(previousUpdateValues, 0.0);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public WrapperForMultiplePositionTrajectoryGenerators(ArrayList<PositionTrajectoryGenerator> positionTrajectoryGenerators, String namePrefix,
YoVariableRegistry parentRegistry)
{
YoVariableRegistry registry = new YoVariableRegistry(namePrefix + namePostfix);
parentRegistry.addChild(registry);
this.positionTrajectoryGenerators = positionTrajectoryGenerators;
positionTrajectoryGeneratorIndex = new YoInteger(namePrefix + "PositionTrajectoryGeneratorIndex", registry);
timeIntoStep = new YoDouble(namePrefix + "TimeIntoStep", registry);
this.replanPositionTrajectory = new YoBoolean(namePrefix + "ReplanPositionTrajectory", registry);
this.replanPositionTrajectory.set(false);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Creates a new YoInteger with the same parameters as this one, and registers it to the passed {@link YoVariableRegistry}.
*
* @param newRegistry YoVariableRegistry to duplicate this YoInteger to
* @return the newly created and registered YoInteger
*/
@Override public YoInteger duplicate(YoVariableRegistry newRegistry)
{
YoInteger retVar = new YoInteger(getName(), getDescription(), newRegistry, getManualScalingMin(), getManualScalingMax());
retVar.set(getIntegerValue());
return retVar;
}
内容来源于网络,如有侵权,请联系作者删除!