gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 10:07:31 26 4
gpt4 key购买 nike

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

YoMultipleFramesHelper.<init>介绍

暂无

代码示例

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

public YoFramePoint2dInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameOrientationInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameVectorInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFramePoint2dInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameQuaternionInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameQuaternionInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFramePointInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFramePointInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameOrientationInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

public YoFrameVectorInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 super(namePrefix, null, registry);
 this.namePrefix = namePrefix;
 this.registry = registry;
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}

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

protected YoFrameWaypoint(F frameWaypoint, String namePrefix, String nameSuffix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 this.namePrefix = namePrefix;
 this.nameSuffix = nameSuffix;
 multipleFramesHelper = new YoMultipleFramesHelper(createName(namePrefix, nameSuffix, ""), registry, referenceFrames);
 this.frameWaypoint = frameWaypoint;
}

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

protected YoFrameWaypoint(F frameWaypoint, String namePrefix, String nameSuffix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
 this.namePrefix = namePrefix;
 this.nameSuffix = nameSuffix;
 multipleFramesHelper = new YoMultipleFramesHelper(createName(namePrefix, nameSuffix, ""), registry, referenceFrames);
 this.frameWaypoint = frameWaypoint;
}

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

public LinearSpatialVectorTrajectoryGenerator(String namePrefix, int maximumNumberOfWaypoints, ReferenceFrame referenceFrame,
                       YoVariableRegistry parentRegistry)
{
 this.namePrefix = namePrefix;
 this.maximumNumberOfWaypoints = maximumNumberOfWaypoints;
 registry = new YoVariableRegistry(namePrefix + getClass().getSimpleName());
 parentRegistry.addChild(registry);
 currentTrajectoryTime = new YoDouble(namePrefix + "CurrentTrajectoryTime", registry);
 numberOfWaypoints = new YoInteger(namePrefix + "NumberOfWaypoints", registry);
 numberOfWaypoints.set(0);
 currentWaypointIndex = new YoInteger(namePrefix + "CurrentWaypointIndex", registry);
 multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrame);
 currentValue = new YoSpatialWaypoint(namePrefix + "CurrentValue", multipleFramesHelper, registry, referenceFrame);
 waypoints = new ArrayList<>(maximumNumberOfWaypoints);
 for (int i = 0; i < maximumNumberOfWaypoints; i++)
 {
   YoSpatialWaypoint waypoint = new YoSpatialWaypoint(namePrefix + "Waypoint" + i, multipleFramesHelper, registry, referenceFrame);
   waypoints.add(waypoint);
 }
}

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

new YoMultipleFramesHelper("framesHelperOne", registry);
  fail("Need to have at least one reference frame when you create a YoMultipleFramesHelper");
  new YoMultipleFramesHelper("framesHelperTwo", registry, (ReferenceFrame) null);
  fail("The Reference Frames cannot be null");
  new YoMultipleFramesHelper("framesHelperTwoB", registry);
  fail("The Reference Frames cannot be null");
YoMultipleFramesHelper helper = new YoMultipleFramesHelper("framesHelperFour", registry, worldFrame);
assertEquals(1, helper.getNumberOfReferenceFramesRegistered());

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout=300000)
public void testRepeatFrames()
{
 YoVariableRegistry registry = new YoVariableRegistry("framesHelper");
 ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame();
 YoMultipleFramesHelper helper = new YoMultipleFramesHelper("framesHelperThree", registry, worldFrame, worldFrame);
 assertEquals("Should ignore repeat frames!", 1, helper.getNumberOfReferenceFramesRegistered());
 helper.registerReferenceFrame(worldFrame);
 assertEquals("Should ignore repeat frames!", 1, helper.getNumberOfReferenceFramesRegistered());
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout=300000)
public void testCommonUsageOfYoMultipleFramesHelper()
{
 String namePrefix = "framesHelper";
 YoVariableRegistry registry = new YoVariableRegistry("framesHelper");
 ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame();
 ReferenceFrame frameA = new TranslationReferenceFrame("frameA", worldFrame);
 ReferenceFrame frameB = new TranslationReferenceFrame("frameB", frameA);
 YoMultipleFramesHelper helper = new YoMultipleFramesHelper(namePrefix, registry, worldFrame, frameA);
 assertEquals(2, helper.getNumberOfReferenceFramesRegistered());
 assertTrue(worldFrame == helper.getCurrentReferenceFrame());
 assertTrue(worldFrame == helper.getReferenceFrame());
 helper.checkReferenceFrameMatch(worldFrame);
 assertTrue(helper.isReferenceFrameRegistered(worldFrame));
 assertTrue(helper.isReferenceFrameRegistered(frameA));
 assertFalse(helper.isReferenceFrameRegistered(frameB));
 helper.registerReferenceFrame(frameB);
 assertEquals(3, helper.getNumberOfReferenceFramesRegistered());
 List<ReferenceFrame> referenceFrames = new ArrayList<ReferenceFrame>();
 helper.getRegisteredReferenceFrames(referenceFrames);
 assertEquals(3, referenceFrames.size());
}

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