gpt4 book ai didi

us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.set()方法的使用及代码示例

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

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

YoFrameYawPitchRoll.set介绍

[英]Sets the orientation of this to the origin of the passed in ReferenceFrame.
[中]将其方向设置为传入ReferenceFrame的原点。

代码示例

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

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

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

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

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

public void setOrientation(FrameQuaternionReadOnly frameOrientation)
{
 orientation.set(frameOrientation);
}

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

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

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

public void set(FramePoint3DReadOnly framePoint, FrameQuaternionReadOnly frameOrientation)
{
 position.set(framePoint);
 orientation.set(frameOrientation);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setOrientation(FrameQuaternionReadOnly orientation)
{
 if (isUsingYawPitchRoll())
   yawPitchRoll.set(orientation);
 else
   quaternion.set(orientation);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setOrientation(FrameQuaternionReadOnly orientation)
{
 if (isUsingYawPitchRoll())
   yoFrameYawPitchRoll.set(orientation);
 else
   yoFrameQuaternion.set(orientation);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setOrientation(QuaternionReadOnly orientation)
{
 if (isUsingYawPitchRoll())
   yawPitchRoll.set(orientation);
 else
   quaternion.set(orientation);
}

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

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

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

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

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

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

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setTransformToWorld(RigidBodyTransform transformToWorld)
{
 yoFramePoint.set(transformToWorld.getTranslationVector());
 yoFrameYawPitchRoll.set(transformToWorld.getRotationMatrix());
}

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

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

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

public void set(FramePose3DReadOnly framePose)
{
 framePose.checkReferenceFrameMatch(getReferenceFrame());
 position.set(framePose.getPosition());
 orientation.set(framePose.getOrientation());
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setTransformToWorld(RigidBodyTransform transformToWorld)
{
 position.set(transformToWorld.getTranslationVector());
 if (isUsingYawPitchRoll())
   yawPitchRoll.set(transformToWorld.getRotationMatrix());
 else
   quaternion.set(transformToWorld.getRotationMatrix());
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setPose(FramePose3D framePose)
{
 yoFramePoint.checkReferenceFrameMatch(framePose.getReferenceFrame());
 yoFramePoint.set(framePose.getPosition());
 if (isUsingYawPitchRoll())
   yoFrameYawPitchRoll.set(framePose.getOrientation());
 else
   yoFrameQuaternion.set(framePose.getOrientation());
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

private void applyRotationalSlip(double percentOfDelta)
{
 FrameQuaternion identity = new FrameQuaternion(ReferenceFrame.getWorldFrame());
 FrameQuaternion desired = slipRotation.getFrameOrientationCopy();
 FrameQuaternion delta = new FrameQuaternion();
 delta.interpolate(identity, desired, percentOfDelta);
 
 desired.interpolate(identity, desired, 1.0-percentOfDelta);
 slipRotation.set(desired);
 Point3D touchdownCoM = computeTouchdownCoM();
 RotationMatrix deltaRotation = new RotationMatrix(delta);
 Point3D touchdownLocation = new Point3D();
 for (int i = 0; i < groundContactPointsToSlip.size(); i++)
 {
   GroundContactPoint groundContactPointToSlip = groundContactPointsToSlip.get(i);
   boolean touchedDown = (groundContactPointToSlip.isInContact());
   if (touchedDown)
   {
    groundContactPointToSlip.getTouchdownLocation(touchdownLocation);
    touchdownLocation.sub(touchdownCoM);
    deltaRotation.transform(touchdownLocation);
    touchdownLocation.add(touchdownCoM);
    groundContactPointToSlip.setTouchdownLocation(touchdownLocation);
   }
 }
}

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

poseState.getAngularVelocity(angularVelocityEstimate);
poseState.getAngularAcceleration(angularAccelerationEstimate);
yoOrientation.set(orientationEstimate);
yoAngularVelocity.set(angularVelocityEstimate);
yoAngularAcceleration.set(angularAccelerationEstimate);

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

testOrientationForwardKinematics.set(handEndEffectorOrientationFK);
testOrientationInverseKinematics.set(handEndEffectorOrientationIK);

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

@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);
 robotLocation.set(robotPose.getPosition());
 robotOrientation.set(robotPose.getOrientation());
 this.targetLocation.set(robotLocation);
 this.targetOrientation.set(robotOrientation);
}

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