- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.mecano.spatial.Wrench.getReferenceFrame()
方法的一些代码示例,展示了Wrench.getReferenceFrame()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrench.getReferenceFrame()
方法的具体详情如下:
包路径:us.ihmc.mecano.spatial.Wrench
类名称:Wrench
方法名:getReferenceFrame
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void reset()
{
for (int i = 0; i < listOfBodiesWithExternalWrenches.size(); i++)
{
Wrench externalWrench = externalWrenches.get(listOfBodiesWithExternalWrenches.get(i));
externalWrench.setToZero(externalWrench.getBodyFrame(), externalWrench.getReferenceFrame());
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
wrenchExertedByChild.setBodyFrame(successorFrame);
wrenchExertedByChild.scale(-1.0); // Action = -reaction
wrenchExertedByChild.changeFrame(jointWrench.getReferenceFrame());
jointWrench.sub(wrenchExertedByChild);
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
private void compareWrenches(Wrench inputWrench, Wrench outputWrench)
{
inputWrench.getBodyFrame().checkReferenceFrameMatch(outputWrench.getBodyFrame());
inputWrench.getReferenceFrame().checkReferenceFrameMatch(outputWrench.getReferenceFrame());
double epsilon = 1e-12; //3;
EuclidCoreTestTools.assertTuple3DEquals(new Vector3D(inputWrench.getAngularPart()), new Vector3D(outputWrench.getAngularPart()), epsilon);
EuclidCoreTestTools.assertTuple3DEquals(new Vector3D(inputWrench.getLinearPart()), new Vector3D(outputWrench.getLinearPart()), epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
public static void assertRootJointWrenchZero(Map<RigidBodyBasics, Wrench> externalWrenches, SixDoFJoint rootJoint, double gravityZ, double epsilon)
{
InverseDynamicsCalculator inverseDynamicsCalculator = new InverseDynamicsCalculator(rootJoint.getPredecessor());
inverseDynamicsCalculator.setGravitionalAcceleration(-gravityZ);
for (RigidBodyBasics rigidBody : externalWrenches.keySet())
{
Wrench externalWrench = externalWrenches.get(rigidBody);
externalWrench.changeFrame(rigidBody.getBodyFixedFrame());
inverseDynamicsCalculator.setExternalWrench(rigidBody, externalWrench);
}
inverseDynamicsCalculator.compute();
Wrench wrench = new Wrench();
wrench.setIncludingFrame(rootJoint.getJointWrench());
SpatialForce zeroWrench = new SpatialForce(wrench.getReferenceFrame());
MecanoTestTools.assertSpatialForceEquals(wrench, zeroWrench, epsilon);
}
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
public static void compareWrenches(WrenchReadOnly inputWrench, Wrench outputWrench)
{
inputWrench.getBodyFrame().checkReferenceFrameMatch(outputWrench.getBodyFrame());
outputWrench.changeFrame(inputWrench.getReferenceFrame());
inputWrench.getReferenceFrame().checkReferenceFrameMatch(outputWrench.getReferenceFrame());
double epsilon = 1e-4;
EuclidCoreTestTools.assertTuple3DEquals(new Vector3D(inputWrench.getAngularPart()), new Vector3D(outputWrench.getAngularPart()), epsilon);
EuclidCoreTestTools.assertTuple3DEquals(new Vector3D(inputWrench.getLinearPart()), new Vector3D(outputWrench.getLinearPart()), epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
virtualWrenchCommand.setWrench(desiredWrench.getReferenceFrame(), desiredWrench);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
static void compareWrenches(WrenchReadOnly inputWrench, Wrench outputWrench, DenseMatrix64F selectionMatrix)
{
inputWrench.getBodyFrame().checkReferenceFrameMatch(outputWrench.getBodyFrame());
outputWrench.changeFrame(inputWrench.getReferenceFrame());
inputWrench.getReferenceFrame().checkReferenceFrameMatch(outputWrench.getReferenceFrame());
DenseMatrix64F inputWrenchMatrix = new DenseMatrix64F(Wrench.SIZE, 1);
DenseMatrix64F outputWrenchMatrix = new DenseMatrix64F(Wrench.SIZE, 1);
DenseMatrix64F selectedValues = new DenseMatrix64F(Wrench.SIZE, 1);
inputWrench.get(inputWrenchMatrix);
outputWrench.get(outputWrenchMatrix);
double epsilon = 1e-4;
int taskSize = selectionMatrix.getNumRows();
int colIndex = 0;
for (int i = 0; i < taskSize; i++)
for (int j = colIndex; j < Wrench.SIZE; j++)
if (selectionMatrix.get(i, j) == 1)
selectedValues.set(j, 0, 1);
// only compare the selected values
for (int i = 0; i < Wrench.SIZE; i++)
{
if (selectedValues.get(i, 0) == 1)
Assert.assertEquals(inputWrenchMatrix.get(i, 0), outputWrenchMatrix.get(i, 0), epsilon);
}
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
virtualWrenchCommand.setWrench(desiredWrench.getReferenceFrame(), desiredWrench);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
public static void compareWrenches(WrenchReadOnly inputWrench, Wrench outputWrench, SelectionMatrix6D selectionMatrix)
{
inputWrench.getBodyFrame().checkReferenceFrameMatch(outputWrench.getBodyFrame());
outputWrench.changeFrame(inputWrench.getReferenceFrame());
inputWrench.getReferenceFrame().checkReferenceFrameMatch(outputWrench.getReferenceFrame());
DenseMatrix64F inputWrenchMatrix = new DenseMatrix64F(Wrench.SIZE, 1);
DenseMatrix64F outputWrenchMatrix = new DenseMatrix64F(Wrench.SIZE, 1);
inputWrench.get(inputWrenchMatrix);
outputWrench.get(outputWrenchMatrix);
double epsilon = 1e-4;
if (selectionMatrix.isAngularXSelected())
Assert.assertEquals(inputWrenchMatrix.get(0, 0), outputWrenchMatrix.get(0, 0), epsilon);
if (selectionMatrix.isAngularYSelected())
Assert.assertEquals(inputWrenchMatrix.get(1, 0), outputWrenchMatrix.get(1, 0), epsilon);
if (selectionMatrix.isAngularZSelected())
Assert.assertEquals(inputWrenchMatrix.get(2, 0), outputWrenchMatrix.get(2, 0), epsilon);
if (selectionMatrix.isLinearXSelected())
Assert.assertEquals(inputWrenchMatrix.get(3, 0), outputWrenchMatrix.get(3, 0), epsilon);
if (selectionMatrix.isLinearYSelected())
Assert.assertEquals(inputWrenchMatrix.get(4, 0), outputWrenchMatrix.get(4, 0), epsilon);
if (selectionMatrix.isLinearZSelected())
Assert.assertEquals(inputWrenchMatrix.get(5, 0), outputWrenchMatrix.get(5, 0), epsilon);
}
理解这一点现在至关重要,我似乎无法在任何地方找到信息,而且用括号搜索谷歌也是不可能的。 代码中有一个 printInfo 方法和一个 Wrench 类,但是“((Class)object).metho
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我对编写 Chrome 扩展程序还很陌生。我注意到我看到的所有扩展(示例和有用的)在您单击它们时都不使用标准操作系统下拉菜单。他们的弹出窗口往往非常不同并且使用样式表。有没有办法让扩展弹出窗口成为一个
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartIncludingFrame()方法的一些代码示例,展示了Wrench.getLi
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPart()方法的一些代码示例,展示了Wrench.getLinearPart()的具体用
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getAngularPartX()方法的一些代码示例,展示了Wrench.getAngularPartX()
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.negate()方法的一些代码示例,展示了Wrench.negate()的具体用法。这些代码示例主要来源于G
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getAngularPartIncludingFrame()方法的一些代码示例,展示了Wrench.getA
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getAngularPartY()方法的一些代码示例,展示了Wrench.getAngularPartY()
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getBodyFrame()方法的一些代码示例,展示了Wrench.getBodyFrame()的具体用法。
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getAngularPartZ()方法的一些代码示例,展示了Wrench.getAngularPartZ()
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.setAngularPart()方法的一些代码示例,展示了Wrench.setAngularPart()的具
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.changeBodyFrameAttachedToSameBody()方法的一些代码示例,展示了Wrench
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartY()方法的一些代码示例,展示了Wrench.getLinearPartY()的具
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getAngularPart()方法的一些代码示例,展示了Wrench.getAngularPart()的具
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.sub()方法的一些代码示例,展示了Wrench.sub()的具体用法。这些代码示例主要来源于Github/
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getExpressedInFrame()方法的一些代码示例,展示了Wrench.getExpressedI
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.setLinearPart()方法的一些代码示例,展示了Wrench.setLinearPart()的具体用
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartZ()方法的一些代码示例,展示了Wrench.getLinearPartZ()的具
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.set()方法的一些代码示例,展示了Wrench.set()的具体用法。这些代码示例主要来源于Github/
我是一名优秀的程序员,十分优秀!