gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 23:08:49 26 4
gpt4 key购买 nike

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

YoFramePoint2D.set介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setPosition(Point2DReadOnly point2D)
{
 point.set(point2D);
}

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

vertexBuffer.get(vertexIndex + vertexIndexOffset).set(polygonToProcess.getVertex(vertexIndex));

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

public void setAndUpdate(FramePoint3DReadOnly framePoint3D)
{
 super.set(framePoint3D);
 hasBeenCalled.set(true);
}

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

public void setAndUpdate(FramePoint2DReadOnly framePoint2D)
{
 super.set(framePoint2D);
 hasBeenCalled.set(true);
}

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

private static void swap(List<YoFramePoint2D> vertexBuffer, int i, int j)
{
 if (i == j)
   return;
 YoFramePoint2D iVertex = vertexBuffer.get(i);
 double x_i = iVertex.getX();
 double y_i = iVertex.getY();
 YoFramePoint2D jVertex = vertexBuffer.get(j);
 double x_j = jVertex.getX();
 double y_j = jVertex.getY();
 iVertex.set(x_j, y_j);
 jVertex.set(x_i, y_i);
}

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

public void getProjectedOntoXYPlane(YoFramePoint2D positionToPack)
{
 positionToPack.set(currentPosition.getX(), currentPosition.getY());
}

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), capturePointViz);
yoCapturePoint.set(capturePoint);
   0.008);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), desiredCMPViz);
yoDesiredCMP.set(desiredCMP);
   DarkRed().getAwtColor(), 0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), projectedCMPViz);
yoProjectedCMP.set(projectedCMP);
    0.01);
 graphicsListRegistry.registerArtifact(getClass().getSimpleName(), expectedCMPViz);
 yoExpectedCMP.set(expectedProjection);
    Beige().getAwtColor(), 0.01);
 graphicsListRegistry.registerArtifact(getClass().getSimpleName(), finalCapturePointViz);
 yoFinalCapturePoint.set(finalCapturePoint);

代码示例来源:origin: us.ihmc/simulation-construction-set-test

center.set(-1.0, -1.0);
radii.set(1.0, 0.7);
YoFramePoint2D point1 = new YoFramePoint2D("point1", ReferenceFrame.getWorldFrame(), registry);
YoFramePoint2D polyPoint1 = point1;
polyPoint1.set(1.5, 2.0);
polygon2.set(FrameVertex2DSupplier.asFrameVertex2DSupplier(new FramePoint2DReadOnly[] {polyPoint1}));
polyPoint2.set(2.0, 2.5);
YoFramePoint2D polyPoint3 = new YoFramePoint2D("point3", ReferenceFrame.getWorldFrame(), registry);
polyPoint3.set(1.0, 3.0);
polygon3.set(FrameVertex2DSupplier.asFrameVertex2DSupplier(new FramePoint2DReadOnly[] {polyPoint1, polyPoint2, polyPoint3}));
pointZ.set(-2.2, 3.0);
YoFramePoint2D point4 = new YoFramePoint2D("point4", ReferenceFrame.getWorldFrame(), registry);
point4.set(-2.0, 3.0);
YoFramePoint2D point5 = new YoFramePoint2D("point5", ReferenceFrame.getWorldFrame(), registry);
point5.set(-1.8, 3.0);
YoFramePoint2D point6 = new YoFramePoint2D("point6", ReferenceFrame.getWorldFrame(), registry);
point6.set(-1.6, 3.0);
YoFramePoint2D point7 = new YoFramePoint2D("point7", ReferenceFrame.getWorldFrame(), registry);
point7.set(-1.4, 3.0);
YoFramePoint2D point8 = new YoFramePoint2D("point8", ReferenceFrame.getWorldFrame(), registry);
point8.set(-1.2, 3.0);
YoFramePoint2D point9 = new YoFramePoint2D("point9", ReferenceFrame.getWorldFrame(), registry);
point9.set(-1.0, 3.0);
YoFramePoint2D point10 = new YoFramePoint2D("point10", ReferenceFrame.getWorldFrame(), registry);
point10.set(-0.8, 3.0);
YoFramePoint2D point11 = new YoFramePoint2D("point11", ReferenceFrame.getWorldFrame(), registry);

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

if (capturePoint != null)
  yoCapturePoint.set(capturePoint);
if (desiredCapturePoint != null)
  yoDesiredCapturePoint.set(desiredCapturePoint);

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

yoICP.set(0.1, 0.2);
variableChangedListener.notifyOfVariableChange(null);

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