gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFramePoint2d.setToNaN()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 21:44:49 25 4
gpt4 key购买 nike

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

YoFramePoint2d.setToNaN介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

private void setToNaN()
{
 for (int i = 0; i < yoFramePoints.size(); i++)
 {
   yoFramePoints.get(i).setToNaN();
 }
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

/**
* Nothing is to be updated, the YoVariables have to be cleared so calling {@link #update()} does not do anything.
*/
private void clearYoVariables()
{
 for (int vertexIndex = 0; vertexIndex < vertexBufferSize; vertexIndex++)
   vertexBuffer.get(vertexIndex).setToNaN();
 currentMeshIndex.set(-1);
 currentRegionId.set(-1);
 currentRegionPose.setToNaN();
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

private void reset()
{
 yoDesiredCop.setToNaN();
 commandWeight.set(0.0, 0.0);
 centerOfPressureCommand.setWeight(commandWeight);
 lastCornerCropped = 0;
 yoCurrentCorner.set(0);
 timeExploring.set(Double.NaN);
 lastShrunkTime = 0.0;
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public YoPlaneContactState(String namePrefix, RigidBody rigidBody, ReferenceFrame planeFrame, List<FramePoint2d> contactFramePoints,
   double coefficientOfFriction, YoVariableRegistry parentRegistry)
{
 this.registry = new YoVariableRegistry(namePrefix + getClass().getSimpleName());
 this.inContact = new BooleanYoVariable(namePrefix + "InContact", registry);
 this.coefficientOfFriction = new DoubleYoVariable(namePrefix + "CoefficientOfFriction", registry);
 this.coefficientOfFriction.set(coefficientOfFriction);
 this.rigidBody = rigidBody;
 this.planeFrame = planeFrame;
 parentRegistry.addChild(registry);
 this.contactNormalFrameVector = new FrameVector(planeFrame, 0.0, 0.0, 1.0);
 contactPoints = new ArrayList<YoContactPoint>(contactFramePoints.size());
 for (int i = 0; i < contactFramePoints.size(); i++)
 {
   YoContactPoint contactPoint = new YoContactPoint(namePrefix, i, contactFramePoints.get(i), this, registry);
   contactPoint.setInContact(true);
   contactPoints.add(contactPoint);
 }
 inContact.set(true);
 totalNumberOfContactPoints = contactPoints.size();
 contactPointCentroid = new YoFramePoint2d(namePrefix + "ContactPointCentroid", planeFrame, registry);
 contactPointCentroid.setToNaN();
 hasContactStateChanged = new BooleanYoVariable(namePrefix + "HasChanged", registry);
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

vertex.setToNaN();
vertexBuffer.add(vertex);

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

vertexBuffer.get(vertexIndexOffset).setToNaN();
 vertexIndexOffset++;
vertexBuffer.get(vertexIndex).setToNaN();

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public void updateCoP()
{
 readSensorData(footWrench);
 if (Math.abs(footWrench.getLinearPartZ()) < MIN_FORCE_TO_COMPUTE_COP)
 {
   yoResolvedCoP.setToNaN();
   resolvedCoP3d.setToNaN(ReferenceFrame.getWorldFrame());
   resolvedCoP.setToNaN();
 }
 else
 {
   copResolver.resolveCenterOfPressureAndNormalTorque(resolvedCoP, footWrench, contactablePlaneBody.getSoleFrame());
   yoResolvedCoP.set(resolvedCoP);
      resolvedCoP3d.setToZero(resolvedCoP.getReferenceFrame());
   resolvedCoP3d.setXY(resolvedCoP);
   resolvedCoP3d.changeFrame(ReferenceFrame.getWorldFrame());
 }
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

stanceExitCMP2d.setByProjectionOntoXYPlane(stanceExitCMP);
this.previousStanceExitCMP.setToNaN();
this.stanceEntryCMP.set(stanceEntryCMP2d);
this.stanceExitCMP.set(stanceExitCMP2d);
this.stanceEntryCMP.setToNaN();
this.stanceExitCMP.set(stanceExitCMP2d);
stanceExitCMP2d.setByProjectionOntoXYPlane(stanceExitCMP);
this.previousStanceExitCMP.setToNaN();
this.stanceEntryCMP.setToNaN();
this.stanceExitCMP.set(stanceExitCMP2d);

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

yoDesiredCMP.setToNaN();
yoProjectedCMP.setToNaN();

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

yoDesiredCapturePoint.setToNaN();
yoFinalDesiredICP.setToNaN();
yoDesiredCMP.setToNaN();
yoAchievedCMP.setToNaN();
yoPerfectCMP.setToNaN();

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

yoUnprojectedDesiredCMP.setToNaN();

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

yoGraphicsListRegistry.registerArtifact(graphicListName, copViz);
yoCenterOfPressure.setToNaN();

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