gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 19:50:40 27 4
gpt4 key购买 nike

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

YoFrameOrientation.set介绍

[英]Sets the orientation of this to the origin of the passed in ReferenceFrame.
[中]

代码示例

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

public void setOrientation(FrameOrientation frameOrientation)
{
 boolean notifyListeners = true;
 orientation.set(frameOrientation, notifyListeners);
}

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

public void setOrientation(Quat4d quaternion)
{
 orientation.set(quaternion);
}

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

public void set(Quat4d quaternion)
{
 set(quaternion, true);
}

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

public void set(FrameOrientation orientation)
{
 set(orientation, true);
}

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

public void setOrientation(FrameOrientation orientation)
{
 this.yoFrameOrientation.set(orientation);
}

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

public void set(FramePoint framePoint, FrameOrientation frameOrientation)
{
 boolean notifyListeners = true;
 position.set(framePoint, notifyListeners);
 orientation.set(frameOrientation, notifyListeners);
}

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

public void set(Quat4d quaternion, boolean notifyListeners)
{
 tempFrameOrientation.setIncludingFrame(getReferenceFrame(), quaternion);
 set(tempFrameOrientation, notifyListeners);
}

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

public void set(Matrix3d rotation)
{
 tempFrameOrientation.setIncludingFrame(getReferenceFrame(), rotation);
 set(tempFrameOrientation);
}

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

public void set(RigidBodyTransform transform3D)
{
 tempFrameOrientation.setIncludingFrame(getReferenceFrame(), transform3D);
 set(tempFrameOrientation);
}

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

public void set(YoFrameQuaternion orientation)
{
 orientation.checkReferenceFrameMatch(getReferenceFrame());
 orientation.getFrameOrientationIncludingFrame(tempFrameOrientation);
 set(tempFrameOrientation);
}

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

private void updateOrientation()
  {
   measureOrientationInFusedFrame(firstFrameOrientation, firstIMU);
   measureOrientationInFusedFrame(secondFrameOrientation, secondIMU);

//      estimateYawDriftAndCorrectOrientation(firstFrameOrientation, secondFrameOrientation, fusedFrameOrientation);

   fusedFrameOrientation.interpolate(firstFrameOrientation, secondFrameOrientation, 0.0);

   orientation.set(fusedFrameOrientation);
   quaternion.set(fusedFrameOrientation);
  }

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

private void updateViz()
{
 yoRootJointFrameQuaternion.checkReferenceFrameMatch(worldFrame);
 yoRootJointFrameQuaternion.set(rotationFromRootJointFrameToWorld);
 yoRootJointAngularVelocityFromFD.update();
 yoRootJointFrameOrientation.checkReferenceFrameMatch(worldFrame);
 yoRootJointFrameOrientation.set(rotationFromRootJointFrameToWorld);
}

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

public void interpolate(YoFrameOrientation orientationOne, YoFrameOrientation orientationTwo, double alpha)
{
 orientationOne.putYoValuesIntoFrameOrientation();
 orientationTwo.putYoValuesIntoFrameOrientation();
 tempFrameOrientation.setToZero(getReferenceFrame());
 tempFrameOrientation.interpolate(orientationOne.tempFrameOrientation, orientationTwo.tempFrameOrientation, alpha);
 this.set(tempFrameOrientation);
}

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

public void set(FramePose framePose, boolean notifyListeners)
{
 framePose.checkReferenceFrameMatch(getReferenceFrame());
 framePose.getPositionIncludingFrame(tempFramePoint);
 framePose.getOrientationIncludingFrame(tempFrameOrientation);
 position.set(tempFramePoint, notifyListeners);
 orientation.set(tempFrameOrientation, notifyListeners);
}

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

public void setPose(FramePose framePose)
{
 yoFramePoint.checkReferenceFrameMatch(framePose.getReferenceFrame());
 framePose.getPosition(tempPoint);
 yoFramePoint.setPoint(tempPoint);
 framePose.getOrientation(tempQuaternion);
 yoFrameOrientation.set(tempQuaternion);
}

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

public void setAndMatchFrame(FramePose framePose, boolean notifyListeners)
{
 framePose.getPositionIncludingFrame(tempFramePoint);
 framePose.getOrientationIncludingFrame(tempFrameOrientation);
 tempFramePoint.changeFrame(getReferenceFrame());
 tempFrameOrientation.changeFrame(getReferenceFrame());
 position.set(tempFramePoint, notifyListeners);
 orientation.set(tempFrameOrientation, notifyListeners);
}

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

private void visualizeTrajectory()
{
 for (int i = 0; i < numberOfBalls; i++)
 {
   double t = (double) i / ((double) numberOfBalls - 1) * trajectoryTime.getDoubleValue();
   compute(t);
   currentPosition.getFrameTupleIncludingFrame(ballPosition);
   ballPosition.changeFrame(ReferenceFrame.getWorldFrame());
   currentOrientationForViz.set(currentOrientation);
   bagOfBalls.setBallLoop(ballPosition);
 }
 reset();
}

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

public void update()
{
 FramePoint tempCoMPosition = new FramePoint(worldFrame);
 for (RigidBodyVisualizationData comData : centerOfMassData)
 {
   comData.rigidBody.getCoMOffset(tempCoMPosition);
   tempCoMPosition.changeFrame(worldFrame);
   tempCoMPosition.add(inertiaEllipsoidGhostOffset.getFrameVectorCopy());
   FrameOrientation orientation = new FrameOrientation(comData.rigidBody.getBodyFixedFrame());
   orientation.changeFrame(worldFrame);
   comData.position.set(tempCoMPosition);
   comData.orientation.set(orientation);
 }
}

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

@Override
public void onBehaviorEntered()
{
 hasTargetBeenProvided.set(false);
 haveFootstepsBeenGenerated.set(false);
 hasInputBeenSet.set(false);
 footstepListBehavior.initialize();
 robotPose.setToZero(fullRobotModel.getRootJoint().getFrameAfterJoint());
 robotPose.changeFrame(worldFrame);
 robotYoPose.set(robotPose);
 robotPose.getPosition(robotLocation);
 robotPose.getOrientation(robotOrientation);
 this.targetLocation.set(robotLocation);
 this.targetOrientation.set(robotOrientation);
}

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

@Override
public void doTransitionIntoAction()
{
 super.doTransitionIntoAction();
 // Remember the previous contact normal, in case the foot leaves the ground and rotates
 holdPositionNormalContactVector.setIncludingFrame(fullyConstrainedNormalContactVector);
 holdPositionNormalContactVector.changeFrame(worldFrame);
 momentumBasedController.setPlaneContactStateNormalContactVector(contactableFoot, holdPositionNormalContactVector);
 desiredSolePosition.setToZero(soleFrame);
 desiredSolePosition.changeFrame(worldFrame);
 desiredOrientation.setToZero(soleFrame);
 desiredOrientation.changeFrame(worldFrame);
 if (doHoldFootFlatOrientation.getBooleanValue())
 {
   desiredOrientation.setYawPitchRoll(desiredOrientation.getYaw(), 0.0, 0.0);
 }
 desiredHoldOrientation.set(desiredOrientation);
 desiredLinearVelocity.setToZero(worldFrame);
 desiredAngularVelocity.setToZero(worldFrame);
 desiredLinearAcceleration.setToZero(worldFrame);
 desiredAngularAcceleration.setToZero(worldFrame);
}

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