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

x33g5p2x  于2022-02-05 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(83)

本文整理了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

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);

相关文章