本文整理了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>
暂无
代码示例来源: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);
内容来源于网络,如有侵权,请联系作者删除!