gpt4 book ai didi

us.ihmc.robotics.math.trajectories.waypoints.YoFrameEuclideanTrajectoryPoint.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 00:41:31 25 4
gpt4 key购买 nike

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

YoFrameEuclideanTrajectoryPoint.<init>介绍

暂无

代码示例

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

public MultipleWaypointsPositionTrajectoryGenerator(String namePrefix, int maximumNumberOfWaypoints, boolean allowMultipleFrames,
   ReferenceFrame referenceFrame, YoVariableRegistry parentRegistry)
{
 super(allowMultipleFrames, referenceFrame);
 this.namePrefix = namePrefix;
 this.maximumNumberOfWaypoints = maximumNumberOfWaypoints;
 registry = new YoVariableRegistry(namePrefix + getClass().getSimpleName());
 numberOfWaypoints = new IntegerYoVariable(namePrefix + "NumberOfWaypoints", registry);
 numberOfWaypoints.set(0);
 waypoints = new ArrayList<>(maximumNumberOfWaypoints);
 currentTrajectoryTime = new DoubleYoVariable(namePrefix + "CurrentTrajectoryTime", registry);
 currentWaypointIndex = new IntegerYoVariable(namePrefix + "CurrentWaypointIndex", registry);
 subTrajectory = new VelocityConstrainedPositionTrajectoryGenerator(namePrefix + "SubTrajectory", allowMultipleFrames, referenceFrame, registry);
 registerTrajectoryGeneratorsInMultipleFrames(subTrajectory);
 for (int i = 0; i < maximumNumberOfWaypoints; i++)
 {
   YoFrameEuclideanTrajectoryPoint waypoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, "AtWaypoint" + i, registry, referenceFrame);
   waypoints.add(waypoint);
   if (allowMultipleFrames)
    registerMultipleFramesHolders(waypoint);
 }
 clear();
 parentRegistry.addChild(registry);
}

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

String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameEuclideanTrajectoryPoint testedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
                                                      new YoVariableRegistry("schnoop"),
                                                      expectedFrame);

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

YoFrameEuclideanTrajectoryPoint waypoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, "AtWaypoint" + i, registry, referenceFrame);
waypoints.add(waypoint);
if (allowMultipleFrames)

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testConstructor()
{
 double epsilon = 1.0e-20;
 ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame();
 ReferenceFrame expectedFrame = worldFrame;
 double expectedTime = 0.0;
 FramePoint3D expectedPosition = new FramePoint3D(expectedFrame);
 FrameVector3D expectedLinearVelocity = new FrameVector3D(expectedFrame);
 String expectedNamePrefix = "test";
 String expectedNameSuffix = "blop";
 YoFrameEuclideanTrajectoryPoint testedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
                                                       new YoVariableRegistry("schnoop"),
                                                       expectedFrame);
 assertWaypointContainsExpectedData(expectedNamePrefix, expectedNameSuffix, expectedFrame, expectedTime, expectedPosition, expectedLinearVelocity,
                   testedYoFrameEuclideanTrajectoryPoint, epsilon);
}

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

YoFrameEuclideanTrajectoryPoint testedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
                                                      new YoVariableRegistry("schnoop"),
                                                      expectedFrame);
expectedLinearVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, expectedFrame);
YoFrameEuclideanTrajectoryPoint expectedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint("sdfsd", "asd",
                                                       new YoVariableRegistry("asawe"),
                                                       expectedFrame);

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

String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameEuclideanTrajectoryPoint testedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
                                                      new YoVariableRegistry("schnoop"),
                                                      expectedFrame);

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

poseFrame.setOrientationAndUpdate(poseOrientation);
YoFrameEuclideanTrajectoryPoint yoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame,
                                                   poseFrame);
SimpleEuclideanTrajectoryPoint simpleTrajectoryPoint = new SimpleEuclideanTrajectoryPoint();
YoFrameEuclideanTrajectoryPoint expectedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix, registry,
                                                       poseFrame);

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

String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameEuclideanTrajectoryPoint testedYoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
                                                      new YoVariableRegistry("schnoop"),
                                                      expectedFrame);

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

YoFrameEuclideanTrajectoryPoint yoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameEuclideanTrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
assertTrue(linearVelocity.epsilonEquals(yoFrameEuclideanTrajectoryPoint.getLinearVelocity(), 1e-10));
YoFrameEuclideanTrajectoryPoint yoFrameEuclideanTrajectoryPointTwo = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix + "Two", registry,
                                                     poseFrame);

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

YoFrameEuclideanTrajectoryPoint yoFrameEuclideanTrajectoryPoint = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameEuclideanTrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
assertTrue(linearVelocityForVerification.epsilonEquals(linearVelocity, 1e-10));
YoFrameEuclideanTrajectoryPoint yoFrameEuclideanTrajectoryPointTwo = new YoFrameEuclideanTrajectoryPoint(namePrefix, nameSuffix + "Two", registry,
                                                     worldFrame);

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