本文整理了Java中us.ihmc.robotics.math.trajectories.YoMinimumJerkTrajectory.findMaxVelocityAndAccel()
方法的一些代码示例,展示了YoMinimumJerkTrajectory.findMaxVelocityAndAccel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoMinimumJerkTrajectory.findMaxVelocityAndAccel()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.YoMinimumJerkTrajectory
类名称:YoMinimumJerkTrajectory
方法名:findMaxVelocityAndAccel
[英]Finds the maximum absolute value of the velocity and acceleration of the MinimumJerkTrajectory from the given current time to the Trajectories final time.
[中]求从给定当前时间到轨迹最终时间的最小轨迹的速度和加速度的最大绝对值。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testFindMaxVals()
{
YoVariableRegistry registry = new YoVariableRegistry("TestMinimumJerkTrajectory");
YoMinimumJerkTrajectory minimumJerkTrajectory = new YoMinimumJerkTrajectory("tester", registry);
double t = 0.0;
double[] maximums = new double[2];
double maxVexpected = 5.625;
double maxAexpected = 34.641;
double percent = 0.01;
minimumJerkTrajectory.setParams(0.0, 0.0, 0.0, 1.5, 0.0, 0.0, 0.0, 0.5);
minimumJerkTrajectory.findMaxVelocityAndAccel(t, maximums);
if (!MathTools.percentEquals(maxVexpected, maximums[0], percent))
{
throw new RuntimeException("TestMinimumJerkTrajectory.testFindMaxVals: Max velocity is wrong: expected=" + maxVexpected + ", actual=" + maximums[0]);
}
if (!MathTools.percentEquals(maxAexpected, maximums[1], percent))
{
throw new RuntimeException("TestMinimumJerkTrajectory.testFindMaxVals: Max accel is wrong: expected=" + maxAexpected + ", actual=" + maximums[1]);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
findMaxVelocityAndAccel(currentTime, maxs);
findMaxVelocityAndAccel(currentTime, maxs);
findMaxVelocityAndAccel(currentTime, maxs);
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
findMaxVelocityAndAccel(currentTime, maxs);
findMaxVelocityAndAccel(currentTime, maxs);
findMaxVelocityAndAccel(currentTime, maxs);
内容来源于网络,如有侵权,请联系作者删除!