- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartIncludingFrame()
方法的一些代码示例,展示了Wrench.getLinearPartIncludingFrame()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrench.getLinearPartIncludingFrame()
方法的具体详情如下:
包路径:us.ihmc.robotics.screwTheory.Wrench
类名称:Wrench
方法名:getLinearPartIncludingFrame
暂无
代码示例来源:origin: us.ihmc/IHMCStateEstimation
private void computeTotalGroundReactionForce()
{
totalGroundReactionForce.setToZero();
for (int i = 0; i < feet.size(); i++)
{
RigidBody foot = feet.get(i);
Wrench footWrench = footWrenches.get(foot);
footSwitches.get(foot).computeAndPackFootWrench(footWrench);
footWrench.getLinearPartIncludingFrame(tempFootForce);
tempFootForce.changeFrame(worldFrame);
totalGroundReactionForce.add(tempFootForce);
}
totalGroundReactionForce.getFrameTuple(tempCoMAcceleration);
comAcceleration.set(tempCoMAcceleration);
comAcceleration.setZ(comAcceleration.getZ() - robotMass.getDoubleValue() * gravitationalAcceleration);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void compute(Map<RigidBody, Wrench> externalWrenches)
{
for (int i = 0; i < contactablePlaneBodies.size(); i++)
{
ContactablePlaneBody contactablePlaneBody = contactablePlaneBodies.get(i);
FramePoint2d cop = cops.get(contactablePlaneBody);
YoFramePoint2d yoCop = yoCops.get(contactablePlaneBody);
yoCop.getFrameTuple2d(cop);
Wrench wrench = externalWrenches.get(contactablePlaneBody.getRigidBody());
if (wrench != null)
{
wrench.getLinearPartIncludingFrame(tempForce);
double normalTorque = centerOfPressureResolver.resolveCenterOfPressureAndNormalTorque(cop, wrench, contactablePlaneBody.getSoleFrame());
centersOfPressure2d.get(contactablePlaneBody).set(cop);
tempCoP3d.setXYIncludingFrame(cop);
centersOfPressureWorld.get(contactablePlaneBody).setAndMatchFrame(tempCoP3d);
groundReactionForceMagnitudes.get(contactablePlaneBody).set(tempForce.length());
normalTorques.get(contactablePlaneBody).set(normalTorque);
}
else
{
groundReactionForceMagnitudes.get(contactablePlaneBody).set(0.0);
centersOfPressureWorld.get(contactablePlaneBody).setToNaN();
cop.setToNaN();
}
yoCop.set(cop);
desiredCenterOfPressureDataHolder.setCenterOfPressure(cop, contactablePlaneBody.getRigidBody());
}
}
代码示例来源:origin: us.ihmc/SensorProcessing
tempWrench.getLinearPartIncludingFrame(tempForce);
tempWrench.getAngularPartIncludingFrame(tempTorque);
inputForces.get(forceSensorDefinition).set(tempForce);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
private void updateWristMeasuredWrench(FrameVector measuredForceToPack, FrameVector measuredTorqueToPack)
{
momentumBasedController.getWristMeasuredWrenchHandWeightCancelled(measuredWrench, robotSide);
measuredWrench.getLinearPartIncludingFrame(tempForceVector);
measuredWrench.getAngularPartIncludingFrame(tempTorqueVector);
deadzoneMeasuredForce.update(tempForceVector);
deadzoneMeasuredTorque.update(tempTorqueVector);
filteredMeasuredForce.update();
filteredMeasuredTorque.update();
filteredMeasuredForce.getFrameTupleIncludingFrame(tempForceVector);
filteredMeasuredTorque.getFrameTupleIncludingFrame(tempTorqueVector);
measuredWrench.setLinearPart(tempForceVector);
measuredWrench.setAngularPart(tempTorqueVector);
measuredWrench.changeFrame(controlFrame);
measuredWrench.getLinearPartIncludingFrame(measuredForceToPack);
measuredWrench.getAngularPartIncludingFrame(measuredTorqueToPack);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
private void readWristSensorData()
{
if (wristForceSensors == null)
return;
for (RobotSide robotSide : RobotSide.values)
{
ForceSensorDataReadOnly wristForceSensor = wristForceSensors.get(robotSide);
ReferenceFrame measurementFrame = wristForceSensor.getMeasurementFrame();
wristForceSensor.getWrench(wristTempWrench);
wristTempWrench.getLinearPartIncludingFrame(tempWristForce);
wristTempWrench.getAngularPartIncludingFrame(tempWristTorque);
wristRawMeasuredForces.get(robotSide).setAndMatchFrame(tempWristForce);
wristRawMeasuredTorques.get(robotSide).setAndMatchFrame(tempWristTorque);
cancelHandWeight(robotSide, wristTempWrench, measurementFrame);
wristTempWrench.getLinearPartIncludingFrame(tempWristForce);
wristTempWrench.getAngularPartIncludingFrame(tempWristTorque);
wristForcesHandWeightCancelled.get(robotSide).setAndMatchFrame(tempWristForce);
wristTorquesHandWeightCancelled.get(robotSide).setAndMatchFrame(tempWristTorque);
}
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
private void calibrateFootForceSensors()
{
for (RobotSide robotSide : RobotSide.values)
{
ForceSensorDataReadOnly footForceSensor = inputForceSensorDataHolder.get(footForceSensorDefinitions.get(robotSide));
footForceSensor.getWrench(tempWrench);
tempWrench.getLinearPartIncludingFrame(tempForce);
tempWrench.getAngularPartIncludingFrame(tempTorque);
footForceCalibrationOffsets.get(robotSide).setAndMatchFrame(tempForce);
footTorqueCalibrationOffsets.get(robotSide).setAndMatchFrame(tempTorque);
}
calibrateFootForceSensors.set(false);
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
private void calibrateWristForceSensors()
{
for (RobotSide robotSide : RobotSide.values)
{
ForceSensorDataReadOnly wristForceSensor = inputForceSensorDataHolder.get(wristForceSensorDefinitions.get(robotSide));
ReferenceFrame measurementFrame = wristForceSensor.getMeasurementFrame();
wristForceSensor.getWrench(tempWrench);
cancelHandWeight(robotSide, tempWrench, measurementFrame);
tempWrench.getLinearPartIncludingFrame(tempForce);
tempWrench.getAngularPartIncludingFrame(tempTorque);
wristForceCalibrationOffsets.get(robotSide).setAndMatchFrame(tempForce);
wristTorqueCalibrationOffsets.get(robotSide).setAndMatchFrame(tempTorque);
}
calibrateWristForceSensors.set(false);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
residualRootJointWrench.getLinearPartIncludingFrame(residualRootJointForce);
yoResidualRootJointForce.setAndMatchFrame(residualRootJointForce);
yoResidualRootJointTorque.setAndMatchFrame(residualRootJointTorque);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
private DenseMatrix64F computeSingleRhoCoPJacobian(FramePoint basisVectorOrigin, FrameVector basisVector)
{
wrenchFromRho.getLinearPartIncludingFrame(forceFromRho);
forceFromRho.changeFrame(planeFrame);
if (forceFromRho.getZ() > 1.0e-1)
{
basisVectorOrigin.changeFrame(planeFrame);
basisVector.changeFrame(planeFrame);
unitSpatialForceVector.setIncludingFrame(basisVector, basisVectorOrigin);
singleRhoCoPJacobian.set(0, 0, -unitSpatialForceVector.getAngularPartY() / forceFromRho.getZ());
singleRhoCoPJacobian.set(1, 0, unitSpatialForceVector.getAngularPartX() / forceFromRho.getZ());
}
else
{
singleRhoCoPJacobian.zero();
}
return singleRhoCoPJacobian;
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
private void updateWristForceSensorState()
{
if (requestWristForceSensorCalibrationSubscriber != null && requestWristForceSensorCalibrationSubscriber.checkForNewCalibrationRequest())
calibrateWristForceSensors.set(true);
if (calibrateWristForceSensors.getBooleanValue())
calibrateWristForceSensors();
for (RobotSide robotSide : RobotSide.values)
{
ForceSensorDefinition wristForceSensorDefinition = wristForceSensorDefinitions.get(robotSide);
ForceSensorDataReadOnly wristForceSensor = inputForceSensorDataHolder.get(wristForceSensorDefinition);
ReferenceFrame measurementFrame = wristForceSensor.getMeasurementFrame();
RigidBody measurementLink = wristForceSensorDefinition.getRigidBody();
wristForceSensor.getWrench(tempWrench);
wristForceCalibrationOffsets.get(robotSide).getFrameTupleIncludingFrame(tempForce);
wristTorqueCalibrationOffsets.get(robotSide).getFrameTupleIncludingFrame(tempTorque);
tempWrench.subLinearPart(tempForce);
tempWrench.subAngularPart(tempTorque);
outputForceSensorDataHolder.setForceSensorValue(wristForceSensorDefinition, tempWrench);
tempWrench.getLinearPartIncludingFrame(tempForce);
tempWrench.getAngularPartIncludingFrame(tempTorque);
cancelHandWeight(robotSide, tempWrench, measurementFrame);
tempWrench.getLinearPartIncludingFrame(tempForce);
tempWrench.getAngularPartIncludingFrame(tempTorque);
wristForcesSubtreeWeightCancelled.get(robotSide).setAndMatchFrame(tempForce);
wristTorquesSubtreeWeightCancelled.get(robotSide).setAndMatchFrame(tempTorque);
if (wrenches != null)
wrenches.get(measurementLink).set(tempWrench);
outputForceSensorDataHolderWithGravityCancelled.setForceSensorValue(wristForceSensorDefinition, tempWrench);
}
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
residualRootJointWrench.getLinearPartIncludingFrame(residualRootJointForce);
yoResidualRootJointForce.setAndMatchFrame(residualRootJointForce);
yoResidualRootJointTorque.setAndMatchFrame(residualRootJointTorque);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
footWrench.getLinearPartIncludingFrame(footForceVector);
footForceVector.changeFrame(ReferenceFrame.getWorldFrame());
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench类的一些代码示例,展示了Wrench类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了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/
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.getLinearPartX()方法的一些代码示例,展示了Wrench.getLinearPartX()的具
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench.changeFrame()方法的一些代码示例,展示了Wrench.changeFrame()的具体用法。这些
我是一名优秀的程序员,十分优秀!