- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint
类的一些代码示例,展示了YoFrameSO3TrajectoryPoint
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameSO3TrajectoryPoint
类的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.waypoints.YoFrameSO3TrajectoryPoint
类名称:YoFrameSO3TrajectoryPoint
暂无
代码示例来源: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/IHMCRoboticsToolkit
public void set(SO3TrajectoryPointInterface<?> so3TrajectoryPoint)
{
frameWaypoint.setToZero(getReferenceFrame());
frameWaypoint.set(so3TrajectoryPoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void appendWaypointUnsafe(double timeAtWaypoint, FrameQuaternionReadOnly orientation, FrameVector3DReadOnly angularVelocity)
{
waypoints.get(numberOfWaypoints.getIntegerValue()).set(timeAtWaypoint, orientation, angularVelocity);
numberOfWaypoints.increment();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToNaN()
{
super.setToNaN();
setTimeToNaN();
setOrientationToNaN();
setAngularVelocityToNaN();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameSO3TrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
yoFrameSO3TrajectoryPoint.setIncludingFrame(worldFrame, simpleTrajectoryPoint);
yoFrameSO3TrajectoryPoint.getOrientation(quaternionForVerification);
yoFrameSO3TrajectoryPoint.getAngularVelocity(angularVelocityForVerification);
assertEquals(time, yoFrameSO3TrajectoryPoint.getTime(), 1e-10);
assertTrue(quaternionForVerification.epsilonEquals(orientation, 1e-10));
assertTrue(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-10));
assertFalse(yoFrameSO3TrajectoryPoint.containsNaN());
yoFrameSO3TrajectoryPoint.setOrientationToNaN();
assertTrue(yoFrameSO3TrajectoryPoint.containsNaN());
yoFrameSO3TrajectoryPoint.setOrientationToZero();
assertFalse(yoFrameSO3TrajectoryPoint.containsNaN());
yoFrameSO3TrajectoryPoint.setAngularVelocityToNaN();
assertTrue(yoFrameSO3TrajectoryPoint.containsNaN());
yoFrameSO3TrajectoryPoint.setAngularVelocityToZero();
assertFalse(yoFrameSO3TrajectoryPoint.containsNaN());
yoFrameSO3TrajectoryPoint.getOrientation(orientation);
yoFrameSO3TrajectoryPoint.getAngularVelocity(angularVelocity);
assertFalse(Math.abs(yoFrameSO3TrajectoryPoint.getTime() - time) < 1e-7);
assertFalse(quaternionForVerification.epsilonEquals(orientation, 1e-7));
assertFalse(angularVelocityForVerification.epsilonEquals(angularVelocity, 1e-7));
代码示例来源: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);
testedYoFrameSO3TrajectoryPoint.setToNaN();
assertTrue(Double.isNaN(testedYoFrameSO3TrajectoryPoint.getTime()));
assertTrue(testedYoFrameSO3TrajectoryPoint.getOrientation().containsNaN());
assertTrue(testedYoFrameSO3TrajectoryPoint.getAngularVelocity().containsNaN());
testedYoFrameSO3TrajectoryPoint.registerReferenceFrame(expectedFrame);
expectedTime = RandomNumbers.nextDouble(random, 0.0, 1000.0);
expectedOrientation = EuclidFrameRandomTools.nextFrameQuaternion(random, worldFrame);
expectedAngularVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, worldFrame);
testedYoFrameSO3TrajectoryPoint.switchCurrentReferenceFrame(worldFrame);
testedYoFrameSO3TrajectoryPoint.registerReferenceFrame(worldFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
testedYoFrameSO3TrajectoryPoint.setToNaN(expectedFrame);
assertTrue(expectedFrame == testedYoFrameSO3TrajectoryPoint.getReferenceFrame());
assertTrue(Double.isNaN(testedYoFrameSO3TrajectoryPoint.getTime()));
assertTrue(testedYoFrameSO3TrajectoryPoint.getOrientation().containsNaN());
assertTrue(testedYoFrameSO3TrajectoryPoint.getAngularVelocity().containsNaN());
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(expectedNamePrefix, expectedNameSuffix,
new YoVariableRegistry("schnoop"), expectedFrame);
expectedAngularVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, expectedFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
expectedAngularVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, expectedFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
expectedAngularVelocity = EuclidFrameRandomTools.nextFrameVector3D(random, expectedFrame);
YoFrameSO3TrajectoryPoint expectedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint("sdfsd", "asd", new YoVariableRegistry("asawe"),
expectedFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedYoFrameSO3TrajectoryPoint);
assertTrue(expectedYoFrameSO3TrajectoryPoint.epsilonEquals(testedYoFrameSO3TrajectoryPoint, epsilon));
assertWaypointContainsExpectedData(expectedNamePrefix, expectedNameSuffix, testedYoFrameSO3TrajectoryPoint.getReferenceFrame(),
testedYoFrameSO3TrajectoryPoint.getTime(), testedYoFrameSO3TrajectoryPoint.getOrientation(),
testedYoFrameSO3TrajectoryPoint.getAngularVelocity(), testedYoFrameSO3TrajectoryPoint, epsilon);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint testedYoFrameSO3TrajectoryPoint, double epsilon)
assertTrue(expectedFrame == testedYoFrameSO3TrajectoryPoint.getReferenceFrame());
assertEquals(expectedTime, testedYoFrameSO3TrajectoryPoint.getTime(), epsilon);
assertEquals(expectedNamePrefix, testedYoFrameSO3TrajectoryPoint.getNamePrefix());
assertEquals(expectedNameSuffix, testedYoFrameSO3TrajectoryPoint.getNameSuffix());
assertTrue(expectedOrientation.geometricallyEquals(testedYoFrameSO3TrajectoryPoint.getOrientation(), epsilon));
assertTrue(expectedAngularVelocity.epsilonEquals(testedYoFrameSO3TrajectoryPoint.getAngularVelocity(), epsilon));
testedYoFrameSO3TrajectoryPoint.getIncludingFrame(actualFrameSO3TrajectoryPoint);
FrameSO3TrajectoryPointTest.assertTrajectoryPointContainsExpectedData(expectedFrame, expectedTime, expectedOrientation, expectedAngularVelocity,
actualFrameSO3TrajectoryPoint, epsilon);
actualFrameSO3TrajectoryPoint = new FrameSO3TrajectoryPoint(expectedFrame);
testedYoFrameSO3TrajectoryPoint.get(actualFrameSO3TrajectoryPoint);
FrameSO3TrajectoryPointTest.assertTrajectoryPointContainsExpectedData(expectedFrame, expectedTime, expectedOrientation, expectedAngularVelocity,
actualFrameSO3TrajectoryPoint, epsilon);
Vector3D actualAngularVelocity = new Vector3D();
testedYoFrameSO3TrajectoryPoint.getOrientation(actualOrientation);
testedYoFrameSO3TrajectoryPoint.getAngularVelocity(actualAngularVelocity);
testedYoFrameSO3TrajectoryPoint.getOrientation(actualFrameOrientation);
testedYoFrameSO3TrajectoryPoint.getAngularVelocity(actualFrameAngularVelocity);
testedYoFrameSO3TrajectoryPoint.getOrientationIncludingFrame(actualFrameOrientation);
testedYoFrameSO3TrajectoryPoint.getAngularVelocityIncludingFrame(actualFrameAngularVelocity);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame);
yoFrameSO3TrajectoryPoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
yoFrameSO3TrajectoryPoint.setTime(time);
yoFrameSO3TrajectoryPoint.setOrientation(orientation);
yoFrameSO3TrajectoryPoint.setAngularVelocity(angularVelocity);
poseFrame.setOrientationAndUpdate(poseOrientation);
yoFrameSO3TrajectoryPoint.registerReferenceFrame(poseFrame);
yoFrameSO3TrajectoryPoint.changeFrame(poseFrame);
assertFalse(orientation.epsilonEquals(yoFrameSO3TrajectoryPoint.getOrientation(), 1e-10));
assertFalse(angularVelocity.epsilonEquals(yoFrameSO3TrajectoryPoint.getAngularVelocity(), 1e-10));
assertTrue(orientation.epsilonEquals(yoFrameSO3TrajectoryPoint.getOrientation(), 1e-10));
assertTrue(angularVelocity.epsilonEquals(yoFrameSO3TrajectoryPoint.getAngularVelocity(), 1e-10));
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPointTwo = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix + "Two", registry, poseFrame);
yoFrameSO3TrajectoryPointTwo.setTime(time);
yoFrameSO3TrajectoryPointTwo.setOrientation(orientation);
yoFrameSO3TrajectoryPointTwo.setAngularVelocity(angularVelocity);
assertTrue(yoFrameSO3TrajectoryPointTwo.epsilonEquals(yoFrameSO3TrajectoryPointTwo, 1e-10));
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
poseFrame.setOrientationAndUpdate(poseOrientation);
YoFrameSO3TrajectoryPoint yoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, worldFrame, poseFrame);
SimpleSO3TrajectoryPoint simpleTrajectoryPoint = new SimpleSO3TrajectoryPoint();
yoFrameSO3TrajectoryPoint.setIncludingFrame(worldFrame, simpleTrajectoryPoint);
yoFrameSO3TrajectoryPoint.changeFrame(poseFrame);
YoFrameSO3TrajectoryPoint expectedYoFrameSO3TrajectoryPoint = new YoFrameSO3TrajectoryPoint(namePrefix, nameSuffix, registry, poseFrame);
expectedYoFrameSO3TrajectoryPoint.setTime(time);
expectedYoFrameSO3TrajectoryPoint.setOrientation(orientation);
expectedYoFrameSO3TrajectoryPoint.setAngularVelocity(angularVelocity);
assertEquals(3.4, yoFrameSO3TrajectoryPoint.getTime(), 1e-7);
assertEquals(3.4, expectedYoFrameSO3TrajectoryPoint.getTime(), 1e-7);
assertTrue(expectedYoFrameSO3TrajectoryPoint.epsilonEquals(yoFrameSO3TrajectoryPoint, 1e-10));
代码示例来源: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);
testedYoFrameSO3TrajectoryPoint.setToZero();
testedYoFrameSO3TrajectoryPoint.registerReferenceFrame(expectedFrame);
testedYoFrameSO3TrajectoryPoint.switchCurrentReferenceFrame(worldFrame);
testedYoFrameSO3TrajectoryPoint.registerReferenceFrame(worldFrame);
testedYoFrameSO3TrajectoryPoint.set(expectedTime, expectedOrientation, expectedAngularVelocity);
testedYoFrameSO3TrajectoryPoint.switchCurrentReferenceFrame(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);
testedYoFrameSO3TrajectoryPoint.registerReferenceFrame(expectedFrame);
testedYoFrameSO3TrajectoryPoint.changeFrame(expectedFrame);
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setToNaN(ReferenceFrame referenceFrame)
{
super.setToNaN(referenceFrame);
setToNaN();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public double getLastWaypointTime()
{
return waypoints.get(numberOfWaypoints.getIntegerValue() - 1).getTime();
}
代码示例来源: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
@Override
protected void putYoValuesIntoFrameWaypoint()
{
frameWaypoint.setToZero(getReferenceFrame());
frameWaypoint.setTime(time.getDoubleValue());
frameWaypoint.setOrientation(orientation);
frameWaypoint.setAngularVelocity(angularVelocity);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setToNaN()
{
super.setToNaN();
setTimeToNaN();
setOrientationToNaN();
setAngularVelocityToNaN();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToNaN(ReferenceFrame referenceFrame)
{
super.setToNaN(referenceFrame);
setToNaN();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public double getLastWaypointTime()
{
return waypoints.get(numberOfWaypoints.getIntegerValue() - 1).getTime();
}
代码示例来源: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);
}
我正在使用 jQuery 航路点插件。以下内容工作正常,除了在页面加载时控制台消息在我滚动之前被触发。如果我删除应用于图像的显示 block ,这将停止,但我的网站需要它才能工作。
我最近在我的项目中将 jquery-waypoints 从 2.x 升级到 3.x,发现我的很多代码都坏了。所有对 $(this) 的引用在我的处理程序中必须更改为 $(this.element)一旦
在尝试实现来自 http://imakewebthings.com/waypoints/shortcuts/infinite-scroll/ 的 Waypoints 无限滚动示例时遇到问题. 这是一个
我正在使用 waypoint 版本 3.1.1 和 jquery 版本,还使用粘性快捷方式并将其作为我的调用代码 $('.navWrap').waypoint('sticky', { direct
我正在使用 JQuery Waypoint 滚动左侧导航。如何在页脚之前停止滚动? var $jq = jQuery.noConflict(); $jq(document).ready(functi
我正在尝试使用 jquery-waypoint 插件在页脚进入/离开视口(viewport)时触发事件。 我在 jsfiddle 上创建了一个示例但该事件不会在页脚元素上触发。 有什么建议吗? 最佳答
我正在学习有关使用 jQuery 路径点创建带有粘性标题的单页网站的教程。 http://webdesign.tutsplus.com/tutorials/javascript-tutorials/c
我在使用 waypoint 插件时遇到问题,就像 http://webdesign.tutsplus.com/tutorials/javascript-tutorials/create-a-stick
如果有这样的代码 var waypoint = new Waypoint({ element:document.getElementsByClassName ('waypoint'), ha
我有一个很好的 Waypoint.js 滚动列表,当您向下滚动并从目标(窗口)点击一定百分比时,它会更改字体样式并向列表项添加一个箭头。 现在,它在向下的过程中为每个元素添加箭头,并在向上
我希望在 jquery waypoint 中有 2 个偏移量。目前只有一个,相同的,用于向上和向下滚动。 我使用的是 25% 的“向下”偏移,并且想要“75%”的“向上”偏移。因此,当 block 的
我正在尝试使用 Waypoints library . 我的用例是,我需要检测用户何时阅读页面的 20%、40% 等。 然而,该库的工作方式似乎有所不同,因为它会检测某个 DOM 元素何时进入 Vie
在我的代码中,我希望在滚动的每个部分上元素都可见,但这并没有发生。在第一部分中,它工作正常,但在第二部分中则不然,我实际上也在使用 fullpage.js。但除了第二部分的 waypoint.js 之
当用户滚动时,我在元素上使用 Waypoints 和 Animate.css。它看起来和工作都很好,但是我的 JS 文件看起来很困惑,因为我还必须使用 JS 添加类,因为它们不能出现在这个项目的标记中
我正在加载“jquery.waypoints.min.js”(当我使用网络分析工具查看时似乎加载正确),但这个简单的脚本没有任何反应: $(document).ready(function() {
我正在尝试实现 jQuery Waypoints 插件,以便在任何具有 .foo 类的元素进入视口(viewport)时将 .active 类添加到该元素: var inview = new Wa
我使用 jQuery Waypoints 插件和粘性附加组件来锁定窗口底部的表单提交部分,直到滚动到表单底部时自然显示该部分。 出于设计/风格的原因,我需要粘性版本具有跨越整个窗口的顶部边框,而当该部
我正在使用 waypoints.js在项目中每当列表元素可见时触发事件。唯一的问题是,似乎什么都没有发生 - waypoint.reached 事件似乎没有触发。 文件 (waypoints.js)
我正在尝试使用 JQuery Waypoints 来制作变色标题。我有一组对象显示单页网站的各个部分及其相关颜色(见下文): var colours = new Array( {section
标题基本上就是这么说的。我在 offset 参数中输入什么并不重要,它只会在元素到达窗口顶部时触发。 $('.waypoint').waypoint({ handler: funct
我是一名优秀的程序员,十分优秀!