本文整理了Java中us.ihmc.robotics.math.trajectories.waypoints.YoFrameEuclideanTrajectoryPoint.getLinearVelocity()
方法的一些代码示例,展示了YoFrameEuclideanTrajectoryPoint.getLinearVelocity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameEuclideanTrajectoryPoint.getLinearVelocity()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.waypoints.YoFrameEuclideanTrajectoryPoint
类名称:YoFrameEuclideanTrajectoryPoint
方法名:getLinearVelocity
[英]Return the original linearVelocity held by this trajectory point.
[中]返回此轨迹点保持的原始linearVelocity。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void initializeSubTrajectory(int waypointIndex)
{
int secondWaypointIndex = Math.min(waypointIndex + 1, numberOfWaypoints.getValue() - 1);
YoFrameEuclideanTrajectoryPoint start = waypoints.get(waypointIndex);
YoFrameEuclideanTrajectoryPoint end = waypoints.get(secondWaypointIndex);
subTrajectory.setCubic(0.0, end.getTime() - start.getTime(), start.getPosition(), start.getLinearVelocity(), end.getPosition(), end.getLinearVelocity());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertEquals(expectedNameSuffix, testedYoFrameEuclideanTrajectoryPoint.getNameSuffix());
assertTrue(expectedPosition.epsilonEquals(testedYoFrameEuclideanTrajectoryPoint.getPosition(), epsilon));
assertTrue(expectedLinearVelocity.epsilonEquals(testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity(), epsilon));
testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity(actualLinearVelocity);
testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity(actualFrameLinearVelocity);
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void setTrajectoryParameters(YoFrameEuclideanTrajectoryPoint initialYoFrameEuclideanWaypoint, YoFrameEuclideanTrajectoryPoint finalYoFrameEuclideanWaypoint)
{
setTrajectoryTime(finalYoFrameEuclideanWaypoint.getTime() - initialYoFrameEuclideanWaypoint.getTime());
initialPosition.set(initialYoFrameEuclideanWaypoint.getPosition());
initialVelocity.set(initialYoFrameEuclideanWaypoint.getLinearVelocity());
finalPosition.set(finalYoFrameEuclideanWaypoint.getPosition());
finalVelocity.set(finalYoFrameEuclideanWaypoint.getLinearVelocity());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void setTrajectoryParameters(YoFrameEuclideanTrajectoryPoint initialYoFrameEuclideanWaypoint, YoFrameEuclideanTrajectoryPoint finalYoFrameEuclideanWaypoint)
{
setTrajectoryTime(finalYoFrameEuclideanWaypoint.getTime() - initialYoFrameEuclideanWaypoint.getTime());
initialPosition.set(initialYoFrameEuclideanWaypoint.getPosition());
initialVelocity.set(initialYoFrameEuclideanWaypoint.getLinearVelocity());
finalPosition.set(finalYoFrameEuclideanWaypoint.getPosition());
finalVelocity.set(finalYoFrameEuclideanWaypoint.getLinearVelocity());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertTrue(Double.isNaN(testedYoFrameEuclideanTrajectoryPoint.getTime()));
assertTrue(testedYoFrameEuclideanTrajectoryPoint.getPosition().containsNaN());
assertTrue(testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity().containsNaN());
assertTrue(Double.isNaN(testedYoFrameEuclideanTrajectoryPoint.getTime()));
assertTrue(testedYoFrameEuclideanTrajectoryPoint.getPosition().containsNaN());
assertTrue(testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity().containsNaN());
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
currentVelocity.set(start.getLinearVelocity());
currentAcceleration.setToZero();
return;
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertFalse(linearVelocity.epsilonEquals(yoFrameEuclideanTrajectoryPoint.getLinearVelocity(), 1e-10));
assertTrue(linearVelocity.epsilonEquals(yoFrameEuclideanTrajectoryPoint.getLinearVelocity(), 1e-10));
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertWaypointContainsExpectedData(expectedNamePrefix, expectedNameSuffix, testedYoFrameEuclideanTrajectoryPoint.getReferenceFrame(),
testedYoFrameEuclideanTrajectoryPoint.getTime(), testedYoFrameEuclideanTrajectoryPoint.getPosition(),
testedYoFrameEuclideanTrajectoryPoint.getLinearVelocity(), testedYoFrameEuclideanTrajectoryPoint, epsilon);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
yoFrameEuclideanTrajectoryPoint.getLinearVelocity(linearVelocityForVerification);
yoFrameEuclideanTrajectoryPoint.getLinearVelocity(linearVelocity);
yoFrameEuclideanTrajectoryPoint.getLinearVelocity(linearVelocity);
内容来源于网络,如有侵权,请联系作者删除!