gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.getX()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 02:22:40 28 4
gpt4 key购买 nike

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

YoGraphicPosition.getX介绍

暂无

代码示例

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

public double getX()
{
 return this.getX();
}

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

public void getPosition(Tuple3DBasics positionToPack)
{
 positionToPack.setX(getX());
 positionToPack.setY(getY());
 if (z != null)
   positionToPack.setZ(getZ());
 else
   positionToPack.setZ(0.0);
}

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

public void getPosition(Point3d point3d)
{
 point3d.setX(this.getX());
 point3d.setY(this.getY());
 if (this.z != null)
   point3d.setZ(this.getZ());
 else
   point3d.setZ(0.0);
}

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

public void getPosition(FramePoint framePoint)
{
 framePoint.setX(this.getX());
 framePoint.setY(this.getY());
 if (this.z != null)
   framePoint.setZ(this.getZ());
 else
   framePoint.setZ(0.0);
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.1)
@Test(timeout = 30000)
public void testVisualization()
{
 YoGraphicsList dummyGraphicsList = new YoGraphicsList("DummyGraphics");
 ArtifactList dummyArtifactList = new ArtifactList("DummyArtifacts");
 copPointsInFoot.setupVisualizers(dummyGraphicsList, dummyArtifactList, 0.05);
 assertEquals(dummyArtifactList.getArtifacts().size(), 10);
 assertEquals(dummyGraphicsList.getYoGraphics().size(), 10);
 copPointsInFoot.addWaypoint(CoPPointName.MIDFOOT_COP, 1.0, new FramePoint3D(footSpoof.getSoleFrame(), 1.0, 2.1, 3.1));
 YoGraphicPosition graphic = (YoGraphicPosition) dummyGraphicsList.getYoGraphics().get(0);
 assertEquals(1.0 - xToAnkle, graphic.getX(), 1e-5);
 assertEquals(2.1 - yToAnkle, graphic.getY(), 1e-5);
 assertEquals(3.1 - zToAnkle, graphic.getZ(), 1e-5);
}

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