本文整理了Java中us.ihmc.yoVariables.variable.YoInteger.increment()
方法的一些代码示例,展示了YoInteger.increment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoInteger.increment()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoInteger
类名称:YoInteger
方法名:increment
[英]Sets this YoInteger to its current value plus one.
[中]将此整数设置为其当前值加1。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@Override
public void doAction()
{
ticksInState.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void update(double dataSource)
{
dataLength.increment();
dataCumulated.add(dataSource);
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/** {@inheritDoc} */
@Override
public void addVertex(double x, double y)
{
isUpToDate = false;
YoFramePoint2D newVertex = vertexBuffer.get(numberOfVertices.getValue());
if (newVertex == null)
throw new RuntimeException("This polygon has reached its maximum number of vertices.");
newVertex.set(x, y);
numberOfVertices.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(SO3TrajectoryPointInterface<?> so3Waypoint)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(so3Waypoint);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, Point3DReadOnly position, Vector3DReadOnly linearVelocity)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, position, linearVelocity);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(EuclideanTrajectoryPointInterface<?> euclideanWaypoint)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(euclideanWaypoint);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, FrameVector3DReadOnly angularPart, FrameVector3DReadOnly linearPart)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, angularPart, linearPart);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, FramePoint3DReadOnly position, FrameVector3DReadOnly linearVelocity)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, position, linearVelocity);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, double position, double velocity)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, position, velocity);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, FrameQuaternionReadOnly orientation, FrameVector3DReadOnly angularVelocity)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, orientation, angularVelocity);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, Vector3DReadOnly angularPart, Vector3DReadOnly linearPart)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, angularPart, linearPart);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void compute(double time)
{
if (!frameTrajectories.get(positionTrajectoryGeneratorIndex.getIntegerValue()).timeIntervalContains(time)
&& (positionTrajectoryGeneratorIndex.getIntegerValue() < frameTrajectories.size() - 1))
{
positionTrajectoryGeneratorIndex.increment();
}
FrameTrajectory3D currentGenerator = frameTrajectories.get(positionTrajectoryGeneratorIndex.getIntegerValue());
currentGenerator.compute(time);
timeIntoStep.set(time);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
/**
* Add a value and return a handle to the object.
*
* @return value at the last position. This object can still hold data.
*/
public T add()
{
maxCapacityCheck(position.getIntegerValue() + 1);
position.increment();
T val = values[position.getIntegerValue()];
return val;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void compute(double time)
{
if (positionTrajectoryGenerators.get(positionTrajectoryGeneratorIndex.getIntegerValue()).isDone()
&& (positionTrajectoryGeneratorIndex.getIntegerValue() < positionTrajectoryGenerators.size() - 1))
{
positionTrajectoryGeneratorIndex.increment();
}
PositionTrajectoryGenerator currentGenerator = positionTrajectoryGenerators.get(positionTrajectoryGeneratorIndex.getIntegerValue());
currentGenerator.compute(time);
timeIntoStep.set(time);
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
@Override
public void updateUserInterfaceSide()
{
userInterfaceSideCount.increment();
if ((abortClicked.getBooleanValue()) && (abortAcknowledged.getBooleanValue()))
{
abortClicked.set(false);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void set(SegmentedFrameTrajectory3D trajToCopy)
{
if(getMaxNumberOfSegments() < trajToCopy.getNumberOfSegments())
throw new RuntimeException("Insufficient segments to copy trajectory, needed: " + trajToCopy.getNumberOfSegments() + " available: " + getMaxNumberOfSegments());
for(int i = 0; i < trajToCopy.getNumberOfSegments(); i++)
{
segments.get(i).set(trajToCopy.getSegment(i));
numberOfSegments.increment();
}
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
private void updatePlannerIfPlanarRegionsListIsAvailable()
{
if (planarRegionsListQueue.isNewPacketAvailable())
{
planarRegionsListCount.increment();
PlanarRegionsListMessage planarRegionsListMessage = planarRegionsListQueue.getLatestPacket();
PlanarRegionsList planarRegionsList = PlanarRegionMessageConverter.convertToPlanarRegionsList(planarRegionsListMessage);
footstepPlanner.setPlanarRegions(planarRegionsList);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void update(double input)
{
int nUpdatesOld = nUpdates.getIntegerValue();
nUpdates.increment();
int nUpdatesNew = nUpdates.getIntegerValue();
double ratio = ((double) nUpdatesOld) / ((double) nUpdatesNew);
rms.set(Math.sqrt(square(rms.getDoubleValue()) * ratio + square(input) / nUpdatesNew));
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void update(double input)
{
int nUpdatesOld = nUpdates.getIntegerValue();
nUpdates.increment();
int nUpdatesNew = nUpdates.getIntegerValue();
double ratio = ((double) nUpdatesOld) / ((double) nUpdatesNew);
average.set(average.getDoubleValue() * ratio + input / nUpdates.getIntegerValue());
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
@Override
public void doControl()
{
if (!initializationSucceeded.getBooleanValue())
initializationSucceeded.set(toolboxController.initialize());
if (initializationSucceeded.getBooleanValue())
{
toolboxController.updateInternal();
jointAnglesWriter.updateRobotConfigurationBasedOnFullRobotModel();
numberOfIterations.increment();
}
}
内容来源于网络,如有侵权,请联系作者删除!