gpt4 book ai didi

us.ihmc.robotics.math.trajectories.providers.YoPositionProvider类的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 01:04:31 28 4
gpt4 key购买 nike

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

YoPositionProvider介绍

暂无

代码示例

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testConstructor()
{
 provider = new YoPositionProvider(null);
 provider = new YoPositionProvider(yoFramePoint);
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
  @Test(timeout = 30000)
  public void testSetAndGet()
  {
   provider = new YoPositionProvider(yoFramePoint);
   
   FramePoint3D result = new FramePoint3D(referenceFrame);
   result.set(5.0, 10.0, 15.0);
   provider.set(result);
   
   FramePoint3D positionToPack = new FramePoint3D();
   provider.getPosition(positionToPack);
   
   assertSame(referenceFrame, positionToPack.getReferenceFrame());
   assertEquals(5.0, positionToPack.getX(), EPSILON);
   assertEquals(10.0, positionToPack.getY(), EPSILON);
   assertEquals(15.0, positionToPack.getZ(), EPSILON);
  }
}

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

YoPositionProvider finalPositionProvider = new YoPositionProvider(finalPosition);
VectorProvider finalVelocityProvider = new ConstantVectorProvider(new FrameVector3D(worldFrame, new double[] {0.1, 0.01, -0.02}));
finalPositionProvider.getPosition(expected);
trajectory.getPosition(actual);
assertEquals(actual.getX(), expected.getX(), 1e-7);

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

YoPositionProvider finalPositionProvider = new YoPositionProvider(finalPosition);
VectorProvider finalVelocityProvider = new ConstantVectorProvider(new FrameVector3D(worldFrame, new double[] {0, 0, -0.02}));
finalPositionProvider.getPosition(expected);
trajectory.getPosition(actual);
assertEquals(actual.getX(), expected.getX(), 1e-7);
finalPositionProvider.getPosition(expected);
pushRecoveryTrajectoryGenerator.getPosition(actual);
assertEquals(actual.getX(), expected.getX(), 1e-7);

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