本文整理了Java中us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint.<init>()
方法的一些代码示例,展示了YoFrameSO3TrajectoryPoint.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameSO3TrajectoryPoint.<init>()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint
类名称:YoFrameSO3TrajectoryPoint
方法名:<init>
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public MultipleWaypointsOrientationTrajectoryGenerator(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 YoInteger(namePrefix + "NumberOfWaypoints", registry);
numberOfWaypoints.set(0);
waypoints = new ArrayList<>(maximumNumberOfWaypoints);
currentTrajectoryTime = new YoDouble(namePrefix + "CurrentTrajectoryTime", registry);
currentWaypointIndex = new YoInteger(namePrefix + "CurrentWaypointIndex", registry);
subTrajectory = new HermiteCurveBasedOrientationTrajectoryGenerator(namePrefix + "SubTrajectory", allowMultipleFrames, referenceFrame, registry);
registerTrajectoryGeneratorsInMultipleFrames(subTrajectory);
for (int i = 0; i < maximumNumberOfWaypoints; i++)
{
YoFrameSO3TrajectoryPoint waypoint = new YoFrameSO3TrajectoryPoint(namePrefix, "AtWaypoint" + i, registry, referenceFrame);
if (allowMultipleFrames)
registerMultipleFramesHolders(waypoint);
waypoints.add(waypoint);
}
clear();
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public MultipleWaypointsOrientationTrajectoryGenerator(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 HermiteCurveBasedOrientationTrajectoryGenerator(namePrefix + "SubTrajectory", allowMultipleFrames, referenceFrame, registry);
registerTrajectoryGeneratorsInMultipleFrames(subTrajectory);
for (int i = 0; i < maximumNumberOfWaypoints; i++)
{
YoFrameSO3TrajectoryPoint waypoint = new YoFrameSO3TrajectoryPoint(namePrefix, "AtWaypoint" + i, registry, referenceFrame);
if (allowMultipleFrames)
registerMultipleFramesHolders(waypoint);
waypoints.add(waypoint);
}
clear();
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
代码示例来源: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;
FrameQuaternion expectedOrientation = new FrameQuaternion(expectedFrame);
FrameVector3D expectedAngularVelocity = new FrameVector3D(expectedFrame);
String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
assertWaypointContainsExpectedData(expectedNamePrefix, expectedNameSuffix, expectedFrame, expectedTime, expectedOrientation, expectedAngularVelocity,
testedYoFrameSO3TrajectoryPoint, epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
expectedAngularVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, expectedFrame);
YoFrameSO3TrajectoryPoint expectedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint("sdfsd", "asd", new YoVariableRegistry("asawe"),
expectedFrame);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
String expectedNamePrefix = "test";
String expectedNameSuffix = "blop";
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
poseFrame.setOrientationAndUpdate(poseOrientation);
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame, poseFrame);
SimpleSO3TrajectoryPoint simpleTrajectoryPoint = new SimpleSO3TrajectoryPoint();
YoFrameSO3TrajectoryPoint expectedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, poseFrame);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameSO3TrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
assertTrue(angularVelocity.epsilonEquals(yoFrameSO3TrajectoryPoint.getAngularVelocity(), 1e-10));
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPointTwo = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix + "Two", registry, poseFrame);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameSO3TrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
assertTrue(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-10));
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPointTwo = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix + "Two", registry, worldFrame);
内容来源于网络,如有侵权,请联系作者删除!