gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 08:29:31 26 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint.getTime()方法的一些代码示例,展示了YoFrameSO3TrajectoryPoint.getTime()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameSO3TrajectoryPoint.getTime()方法的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint
类名称:YoFrameSO3TrajectoryPoint
方法名:getTime

YoFrameSO3TrajectoryPoint.getTime介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public double getLastWaypointTime()
{
 return waypoints.get(numberOfWaypoints.getIntegerValue() - 1).getTime();
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public double getLastWaypointTime()
{
 return waypoints.get(numberOfWaypoints.getIntegerValue() - 1).getTime();
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void compute(double time)
{
 currentTrajectoryTime.set(time);
 if (currentWaypointIndex.getIntegerValue() < numberOfWaypoints.getIntegerValue() - 2
    && time >= waypoints.get(currentWaypointIndex.getIntegerValue() + 1).getTime())
 {
   currentWaypointIndex.increment();
   initializeSubTrajectory(currentWaypointIndex.getIntegerValue());
 }
 double subTrajectoryTime = time - waypoints.get(currentWaypointIndex.getIntegerValue()).getTime();
 subTrajectory.compute(subTrajectoryTime);
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

@Override
public void compute(double time)
{
 if (isEmpty())
 {
   throw new RuntimeException("Can not call compute on an empty trajectory.");
 }
 currentTrajectoryTime.set(time);
 boolean changedSubTrajectory = false;
 if (time < waypoints.get(currentWaypointIndex.getIntegerValue()).getTime())
 {
   currentWaypointIndex.set(0);
   changedSubTrajectory = true;
 }
 while (currentWaypointIndex.getIntegerValue() < numberOfWaypoints.getIntegerValue() - 2
    && time >= waypoints.get(currentWaypointIndex.getIntegerValue() + 1).getTime())
 {
   currentWaypointIndex.increment();
   changedSubTrajectory = true;
 }
 if (changedSubTrajectory)
 {
   initializeSubTrajectory(currentWaypointIndex.getIntegerValue());
 }
 double subTrajectoryTime = time - waypoints.get(currentWaypointIndex.getIntegerValue()).getTime();
 subTrajectory.compute(subTrajectoryTime);
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public void setTrajectoryParameters(YoFrameSO3TrajectoryPoint initialYoFrameSO3Waypoint, YoFrameSO3TrajectoryPoint finalYoFrameSO3Waypoint)
{
 setTrajectoryTime(finalYoFrameSO3Waypoint.getTime() - initialYoFrameSO3Waypoint.getTime());
 initialOrientation.set(initialYoFrameSO3Waypoint.getOrientation());
 initialAngularVelocity.set(initialYoFrameSO3Waypoint.getAngularVelocity());
 finalOrientation.set(finalYoFrameSO3Waypoint.getOrientation());
 finalAngularVelocity.set(finalYoFrameSO3Waypoint.getAngularVelocity());
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public void setTrajectoryParameters(YoFrameSO3TrajectoryPoint initialYoFrameSO3Waypoint, YoFrameSO3TrajectoryPoint finalYoFrameSO3Waypoint)
{
 setTrajectoryTime(finalYoFrameSO3Waypoint.getTime() - initialYoFrameSO3Waypoint.getTime());
 initialOrientation.set(initialYoFrameSO3Waypoint.getOrientation());
 initialAngularVelocity.set(initialYoFrameSO3Waypoint.getAngularVelocity());
 finalOrientation.set(finalYoFrameSO3Waypoint.getOrientation());
 finalAngularVelocity.set(finalYoFrameSO3Waypoint.getAngularVelocity());
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

assertTrue(Double.isNaN(testedYoFrameSO3TrajectoryPoint.getTime()));
assertTrue(testedYoFrameSO3TrajectoryPoint.getOrientation().containsNaN());
assertTrue(testedYoFrameSO3TrajectoryPoint.getAngularVelocity().containsNaN());
assertTrue(Double.isNaN(testedYoFrameSO3TrajectoryPoint.getTime()));
assertTrue(testedYoFrameSO3TrajectoryPoint.getOrientation().containsNaN());
assertTrue(testedYoFrameSO3TrajectoryPoint.getAngularVelocity().containsNaN());

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

expectedYoFrameSO3TrajectoryPoint.setAngularVelocity(angularVelocity);
assertEquals(3.4, yoFrameSO3TrajectoryPoint.getTime(), 1e-7);
assertEquals(3.4, expectedYoFrameSO3TrajectoryPoint.getTime(), 1e-7);

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

testedYoFrameSO3TrajectoryPoint.getTime(), testedYoFrameSO3TrajectoryPoint.getOrientation(),
testedYoFrameSO3TrajectoryPoint.getAngularVelocity(), testedYoFrameSO3TrajectoryPoint, epsilon);

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

yoFrameSO3TrajectoryPoint.getAngularVelocity(angularVelocityForVerification);
assertEquals(time, yoFrameSO3TrajectoryPoint.getTime(), 1e-10);
assertTrue(quaternionForVerification.epsilonEquals(orientation, 1e-10));
assertTrue(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-10));
angularVelocityForVerification.set(7.1, 2.2, 3.33);
assertFalse(Math.abs(yoFrameSO3TrajectoryPoint.getTime() - time) < 1e-7);
assertFalse(quaternionForVerification.epsilonEquals(orientation, 1e-7));
assertFalse(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-7));
yoFrameSO3TrajectoryPoint.getAngularVelocity(angularVelocity);
assertEquals(time, yoFrameSO3TrajectoryPoint.getTime(), 1e-10);
assertTrue(quaternionForVerification.epsilonEquals(orientation, 1e-10));
assertTrue(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-10));

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

assertEquals(expectedTime, testedYoFrameSO3TrajectoryPoint.getTime(), epsilon);
assertEquals(expectedNamePrefix, testedYoFrameSO3TrajectoryPoint.getNamePrefix());
assertEquals(expectedNameSuffix, testedYoFrameSO3TrajectoryPoint.getNameSuffix());

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com