gpt4 book ai didi

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

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

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

YoFrameVector.normalize介绍

暂无

代码示例

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

/**
* Set rotation axis in trajectoryFrame.  Default axis is zUp in trajectoryFrame.
* 
* @param circleCenterInTrajectoryFrame
* @param circleNormalInTrajectoryFrame
*/
public void updateCircleFrame(Point3d circleCenterInTrajectoryFrame, Vector3d circleNormalInTrajectoryFrame)
{
 circleOrigin.set(circleCenterInTrajectoryFrame);
 rotationAxis.set(circleNormalInTrajectoryFrame);
 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/IHMCSimulationToolkit

private void applyForce()
{      
 double length = pushDirection.length();
 if (length > 1e-5)
 {
   pushForce.set(pushDirection);
   pushForce.normalize();
   pushForce.scale(pushForceMagnitude.getDoubleValue());
   if(pushCondition == null)
   {
    pushTimeSwitch.set(yoTime.getDoubleValue());
   }
 }
 else
 {
   pushForce.setToZero();
   pushTimeSwitch.set(Double.NEGATIVE_INFINITY);
 }
 pushNumber.increment();
}

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