- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartZ()
方法的一些代码示例,展示了Wrench.getLinearPartZ()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrench.getLinearPartZ()
方法的具体详情如下:
包路径:us.ihmc.robotics.screwTheory.Wrench
类名称:Wrench
方法名:getLinearPartZ
暂无
代码示例来源:origin: us.ihmc/IHMCStateEstimation
private int filterTrustedFeetBasedOnContactForces(int numberOfEndEffectorsTrusted)
{
double totalForceZ = 0.0;
for (int i = 0; i < feet.size(); i++)
{
RigidBody foot = feet.get(i);
Wrench footWrench = footWrenches.get(foot);
footSwitches.get(foot).computeAndPackFootWrench(footWrench);
totalForceZ += footWrench.getLinearPartZ();
}
for (int i = 0; i < feet.size(); i++)
{
RigidBody foot = feet.get(i);
Wrench footWrench = footWrenches.get(foot);
footForcesZInPercentOfTotalForce.get(foot).set(footWrench.getLinearPartZ() / totalForceZ);
if (footForcesZInPercentOfTotalForce.get(foot).getDoubleValue() < forceZInPercentThresholdToFilterFoot.getDoubleValue())
{
numberOfEndEffectorsTrusted--;
areFeetTrusted.get(foot).set(false);
return numberOfEndEffectorsTrusted;
}
}
return numberOfEndEffectorsTrusted;
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void getTauMatrix(DenseMatrix64F matrix)
{
matrix.set(0, 0, successorWrench.getAngularPartY());
matrix.set(1, 0, successorWrench.getLinearPartX());
matrix.set(2, 0, successorWrench.getLinearPartZ());
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
public void update()
{
if (footRawCoPPositionsInWorld != null)
{
overallRawCoPPositionInWorld.setToZero();
double totalFootForce = 0.0;
for (int i = 0; i < footList.size(); i++)
{
RigidBody rigidBody = footList.get(i);
footSwitches.get(rigidBody).computeAndPackCoP(tempRawCoP2d);
tempRawCoP.setIncludingFrame(tempRawCoP2d.getReferenceFrame(), tempRawCoP2d.getX(), tempRawCoP2d.getY(), 0.0);
tempRawCoP.changeFrame(worldFrame);
footRawCoPPositionsInWorld.get(rigidBody).set(tempRawCoP);
footSwitches.get(rigidBody).computeAndPackFootWrench(tempWrench);
double singleFootForce = tempWrench.getLinearPartZ();
totalFootForce += singleFootForce;
tempRawCoP.scale(singleFootForce);
overallRawCoPPositionInWorld.add(tempRawCoP);
}
overallRawCoPPositionInWorld.scale(1.0 / totalFootForce);
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void getWrench(Wrench wrenchToPack)
{
wrenchToPack.setToZero(successorWrench.getBodyFrame(), successorWrench.getExpressedInFrame());
wrenchToPack.setAngularPartY(successorWrench.getAngularPartY());
wrenchToPack.setLinearPartX(successorWrench.getLinearPartX());
wrenchToPack.setLinearPartZ(successorWrench.getLinearPartZ());
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
protected void getYoValuesFromWrench()
{
linearPart.set(wrench.getExpressedInFrame(), wrench.getLinearPartX(), wrench.getLinearPartY(), wrench.getLinearPartZ());
angularPart.set(wrench.getExpressedInFrame(), wrench.getAngularPartX(), wrench.getAngularPartY(), wrench.getAngularPartZ());
}
代码示例来源:origin: us.ihmc/SensorProcessing
public void update(Wrench sensorWrench)
{
sensorWrench.changeFrame(world);
yoSensorForce.set(sensorWrench.getExpressedInFrame(), sensorWrench.getLinearPartX(), sensorWrench.getLinearPartY(), sensorWrench.getLinearPartZ());
yoSensorTorque.set(sensorWrench.getExpressedInFrame(), sensorWrench.getAngularPartX(), sensorWrench.getAngularPartY(), sensorWrench.getAngularPartZ());
if (addSimulatedSensorNoise.getBooleanValue())
{
double amp = 0.1;
double bias = 0.25;
yoSensorForce.add(amp*2.0*(Math.random()-0.5)+bias, amp*2.0*(Math.random()-0.5)+bias, amp*2.0*(Math.random()-0.5)+bias);
yoSensorTorque.add(amp*2.0*(Math.random()-0.5)+bias, amp*2.0*(Math.random()-0.5)+bias, amp*2.0*(Math.random()-0.5)+bias);
}
updateSensorPosition();
updateCenterOfMass();
yoSensorToDistalCoMvectorInWorld.sub(distalCoMInWorld, yoSensorPositionInWorld);
distalMassWrench.setToZero(world);
distalMassWrench.setUsingArm(world, distalMassForceInWorld.getFrameTuple().getVector(), yoSensorToDistalCoMvectorInWorld.getFrameTuple().getVector());
yoSensorForceFromDistalMass.set(distalMassWrench.getExpressedInFrame(), distalMassWrench.getLinearPartX(), distalMassWrench.getLinearPartY(), distalMassWrench.getLinearPartZ());
yoSensorTorqueFromDistalMass.set(distalMassWrench.getExpressedInFrame(), distalMassWrench.getAngularPartX(), distalMassWrench.getAngularPartY(), distalMassWrench.getAngularPartZ());
yoSensorForceMassCompensated.sub(yoSensorForce, yoSensorForceFromDistalMass);
yoSensorTorqueMassCompensated.sub(yoSensorTorque, yoSensorTorqueFromDistalMass);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void setWrench(Wrench jointWrench)
{
successorWrench.getBodyFrame().checkReferenceFrameMatch(jointWrench.getBodyFrame());
successorWrench.getExpressedInFrame().checkReferenceFrameMatch(jointWrench.getExpressedInFrame());
successorWrench.setAngularPartY(jointWrench.getAngularPartY());
successorWrench.setLinearPartX(jointWrench.getLinearPartX());
successorWrench.setLinearPartZ(jointWrench.getLinearPartZ());
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void updateCoP()
{
readSensorData(footWrench);
if (Math.abs(footWrench.getLinearPartZ()) < MIN_FORCE_TO_COMPUTE_COP)
{
yoResolvedCoP.setToNaN();
resolvedCoP3d.setToNaN(ReferenceFrame.getWorldFrame());
resolvedCoP.setToNaN();
}
else
{
copResolver.resolveCenterOfPressureAndNormalTorque(resolvedCoP, footWrench, contactablePlaneBody.getSoleFrame());
yoResolvedCoP.set(resolvedCoP);
resolvedCoP3d.setToZero(resolvedCoP.getReferenceFrame());
resolvedCoP3d.setXY(resolvedCoP);
resolvedCoP3d.changeFrame(ReferenceFrame.getWorldFrame());
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setTorqueFromWrench(Wrench jointWrench)
{
jointWrench.getBodyFrame().checkReferenceFrameMatch(successor.getBodyFixedFrame());
jointWrench.setToZero(successor.getBodyFixedFrame(), successorWrench.getExpressedInFrame());
jointWrench.setAngularPartY(successorWrench.getAngularPartY());
jointWrench.setLinearPartX(successorWrench.getLinearPartX());
jointWrench.setLinearPartZ(successorWrench.getLinearPartZ());
jointWrench.changeFrame(successor.getBodyFixedFrame());
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
private void computeCop()
{
double force = 0.0;
centerOfPressure.setToZero(worldFrame);
for (RobotSide robotSide : RobotSide.values)
{
footSwitches.get(robotSide).computeAndPackCoP(tempFootCop2d);
if (tempFootCop2d.containsNaN())
continue;
footSwitches.get(robotSide).computeAndPackFootWrench(tempFootWrench);
double footForce = tempFootWrench.getLinearPartZ();
force += footForce;
tempFootCop.setIncludingFrame(tempFootCop2d.getReferenceFrame(), tempFootCop2d.getX(), tempFootCop2d.getY(), 0.0);
tempFootCop.changeFrame(worldFrame);
tempFootCop.scale(footForce);
centerOfPressure.add(tempFootCop.getX(), tempFootCop.getY());
}
centerOfPressure.scale(1.0 / force);
yoCenterOfPressure.set(centerOfPressure);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void control(SpatialAccelerationVector handSpatialAccelerationVector, Wrench toolWrench)
{
if (!hasBeenInitialized)
{
update();
initialize();
}
update();
toolAcceleration.set(handSpatialAccelerationVector);
toolAcceleration.changeFrameNoRelativeMotion(toolJoint.getFrameAfterJoint());
// TODO: Take relative acceleration between uTorsoCoM and elevator in account
toolAcceleration.changeBaseFrameNoRelativeAcceleration(elevatorFrame);
toolAcceleration.changeBodyFrameNoRelativeAcceleration(toolJoint.getFrameAfterJoint());
toolJoint.setDesiredAcceleration(toolAcceleration);
inverseDynamicsCalculator.compute();
inverseDynamicsCalculator.getJointWrench(toolJoint, toolWrench);
toolWrench.negate();
toolWrench.changeFrame(handFixedFrame);
toolWrench.changeBodyFrameAttachedToSameBody(handFixedFrame);
// Visualization
temporaryVector.setIncludingFrame(handFixedFrame, toolWrench.getLinearPartX(), toolWrench.getLinearPartY(), toolWrench.getLinearPartZ());
temporaryVector.changeFrame(ReferenceFrame.getWorldFrame());
temporaryVector.scale(0.01);
objectForceInWorld.set(temporaryVector);
}
理解这一点现在至关重要,我似乎无法在任何地方找到信息,而且用括号搜索谷歌也是不可能的。 代码中有一个 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/
我是一名优秀的程序员,十分优秀!