gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFrameVector.setAndMatchFrame()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 01:32:40 29 4
gpt4 key购买 nike

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

YoFrameVector.setAndMatchFrame介绍

暂无

代码示例

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

public void setInitialAngularVelocity(YoFrameVector initialAngularVelocity)
{
 this.initialAngularVelocity.setAndMatchFrame(initialAngularVelocity);
}

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

public void setFinalAngularVelocity(FrameVector finalAngularVelocity)
{
 this.finalAngularVelocity.setAndMatchFrame(finalAngularVelocity);
}

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

private void getAngularAndLinearPartsFromSpatialVector(YoFrameVector angularPartToPack, YoFrameVector linearPartToPack, DenseMatrix64F spatialVector)
{
 getAngularAndLinearPartsFromSpatialVector(angularPart, linearPart, spatialVector);
 angularPartToPack.setAndMatchFrame(angularPart);
 linearPartToPack.setAndMatchFrame(linearPart);
}

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

public void setInitialConditions(FramePoint initialPosition, FrameVector initialVelocity)
{
 this.initialPosition.setAndMatchFrame(initialPosition);
 this.initialVelocity.setAndMatchFrame(initialVelocity);
}

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

public void setFinalConditions(FramePoint finalPosition, FrameVector finalVelocity)
{
 this.finalPosition.setAndMatchFrame(finalPosition);
 this.finalVelocity.setAndMatchFrame(finalVelocity);
}

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

public void setFinalConditions(YoFramePoint finalPosition, FrameVector finalVelocity)
{
 this.finalPosition.set(finalPosition);
 this.finalVelocity.setAndMatchFrame(finalVelocity);
}

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

public void setFinalConditions(YoFramePoint finalPosition, FrameVector finalVelocity)
{
 this.finalPosition.set(finalPosition);
 this.finalVelocity.setAndMatchFrame(finalVelocity);
}

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

@Override
 public void variableChanged(YoVariable<?> v)
 {
   getFrameTupleIncludingFrame(localFrameVector);
   vector.setAndMatchFrame(localFrameVector);
 }
});

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

public void setInitialConditions(YoFramePoint initialPosition, FrameVector initialVelocity)
{
 this.initialPosition.set(initialPosition);
 this.initialVelocity.setAndMatchFrame(initialVelocity);
}

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

public void setFinalConditions(FramePoint finalPosition, FrameVector finalVelocity)
{
 this.finalPosition.setAndMatchFrame(finalPosition);
 this.finalVelocity.setAndMatchFrame(finalVelocity);
}

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

public void computeAchievedAcceleration()
{
 spatialAccelerationCalculator.getRelativeAcceleration(endEffectorAchievedAcceleration, base, endEffector);
 endEffectorAchievedAcceleration.getAngularPart(achievedAngularAcceleration);
 endEffectorAchievedAcceleration.getLinearPart(achievedLinearAcceleration);
 yoAchievedAngularAcceleration.setAndMatchFrame(achievedAngularAcceleration);
 yoAchievedLinearAcceleration.setAndMatchFrame(achievedLinearAcceleration);
}

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

private void updatePositionVisualization()
{
 yoDesiredLinearAcceleration.setAndMatchFrame(desiredLinearAcceleration);
 accelerationControlModule.getBodyFixedPoint(tempPosition);
 yoCurrentPosition.setAndMatchFrame(tempPosition);
 accelerationControlModule.getBodyFixedPointCurrentLinearVelocity(tempLinearVelocity);
 yoCurrentLinearVelocity.setAndMatchFrame(tempLinearVelocity);
}

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

@Override
public void computeAchievedAcceleration()
{
 spatialAccelerationCalculator.getRelativeAcceleration(endEffectorAchievedAcceleration, base, endEffector);
 endEffectorAchievedAcceleration.getAngularPart(achievedAngularAcceleration);
 yoAchievedAngularAcceleration.setAndMatchFrame(achievedAngularAcceleration);
}

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

@Override
public void computeAchievedAcceleration()
{
 accelerationControlModule.getBodyFixedPoint(tempPosition);
 spatialAccelerationCalculator.getLinearAccelerationOfBodyFixedPoint(achievedLinearAcceleration, base, endEffector, tempPosition);
 yoAchievedLinearAcceleration.setAndMatchFrame(achievedLinearAcceleration);
}

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

private void updatePositionVisualization()
{
 desiredSpatialAcceleration.getLinearPart(desiredLinearAcceleration);
 yoDesiredLinearAcceleration.setAndMatchFrame(desiredLinearAcceleration);
 tempPosition.setToZero(accelerationControlModule.getTrackingFrame());
 yoCurrentPosition.setAndMatchFrame(tempPosition);
 accelerationControlModule.getEndEffectorCurrentLinearVelocity(tempLinearVelocity);
 yoCurrentLinearVelocity.setAndMatchFrame(tempLinearVelocity);
}

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

public void updateCircleFrame(FramePoint circleCenter, FrameVector circleNormal)
{
 circleOrigin.setAndMatchFrame(circleCenter);
 rotationAxis.setAndMatchFrame(circleNormal);
 rotationAxis.normalize();
 circleFrame.update();
}

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

public void updateSteeringWheel(FramePoint center, FrameVector rotationAxis, FrameVector zeroAxis)
{
 steeringWheelCenter.setAndMatchFrame(center);
 steeringWheelRotationAxis.setAndMatchFrame(rotationAxis);
 steeringWheelRotationAxis.normalize();
 steeringWheelZeroAxis.setAndMatchFrame(zeroAxis);
 steeringWheelZeroAxis.normalize();
 steeringWheelFrame.update();
 steeringWheelFramePose.setToZero(steeringWheelFrame);
 steeringWheelFramePose.changeFrame(worldFrame);
 yoSteeringWheelFramePose.set(steeringWheelFramePose);
}

代码示例来源: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/IHMCSimulationToolkit

private void updateMeasurement()
{
 wrenchCalculatorInterface.calculate();
 MatrixTools.extractFrameTupleFromEJMLVector(measuredForce, wrenchCalculatorInterface.getWrench(), measurementFrame, 3);
 measuredForceWorld.setIncludingFrame(measuredForce);
 measuredForceWorld.changeFrame(worldFrame);
 yoMeasuredForceWorld.setAndMatchFrame(measuredForce);
}

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

private void computeProportionalTerm(FramePoint desiredPosition, ReferenceFrame baseFrame)
{
 desiredPosition.changeFrame(frameAtBodyFixedPoint);
 positionError.setAndMatchFrame(desiredPosition);
 positionError.getFrameTupleIncludingFrame(proportionalTerm);
 proportionalGainMatrix.transform(proportionalTerm.getVector());
 proportionalTerm.changeFrame(baseFrame);
}

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