gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFrameOrientation类的使用及代码示例

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

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

YoFrameOrientation介绍

暂无

代码示例

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

public YoFramePose(String prefix, String suffix, ReferenceFrame frame, YoVariableRegistry registry)
{
 position = new YoFramePoint(prefix, suffix, frame, registry);
 orientation = new YoFrameOrientation(prefix, suffix, frame, registry);
}

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

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

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

public void add(YoFrameOrientation orientation)
{
 yaw.add(orientation.getYaw());
 pitch.add(orientation.getPitch());
 roll.add(orientation.getRoll());
}

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

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

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

public YoGraphicCoordinateSystem(String name, YoFramePoint framePoint, YoFrameOrientation orientation, double scale)
{
 super(name);
 ReferenceFrame.getWorldFrame().checkReferenceFrameMatch(framePoint);
 framePoint.checkReferenceFrameMatch(orientation.getReferenceFrame());
 x = framePoint.getYoX();
 y = framePoint.getYoY();
 z = framePoint.getYoZ();
 yaw = orientation.getYaw();
 pitch = orientation.getPitch();
 roll = orientation.getRoll();
 this.scale = scale;
}

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

public void setYawPitchRoll(double[] yawPitchRoll)
{
 orientation.setYawPitchRoll(yawPitchRoll[0], yawPitchRoll[1], yawPitchRoll[2]);
}

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

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

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

desiredHoldOrientation.getFrameOrientationIncludingFrame(desiredOrientation);
desiredOrientationCopy.set(desiredAxisAngle);
desiredOrientationCopy.changeFrame(worldFrame);
desiredHoldOrientation.set(desiredOrientationCopy);
desiredHoldOrientation.getFrameOrientationIncludingFrame(desiredOrientation);

代码示例来源: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 DoubleYoVariable getYoYaw()
  {
   return getOrientation().getYaw();
  }
}

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

public void getOrientation(FrameOrientation orientationToPack)
  {
   frameOrientation.getFrameOrientationIncludingFrame(orientationToPack);
  }
}

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

public void setAndMatchFrame(YoFrameOrientation yoFrameOrientation, boolean notifyListeners)
{
 yoFrameOrientation.getFrameOrientationIncludingFrame(tempFrameOrientation);
 tempFrameOrientation.changeFrame(getReferenceFrame());
 tempFrameOrientation.getYawPitchRoll(tempYawPitchRoll);
 yaw.set(tempYawPitchRoll[0], notifyListeners);
 pitch.set(tempYawPitchRoll[1], notifyListeners);
 roll.set(tempYawPitchRoll[2], notifyListeners);
}

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

public DoubleYoVariable getYoRoll()
{
 return getOrientation().getRoll();
}

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

public DoubleYoVariable getYoPitch()
{
 return getOrientation().getPitch();
}

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

@Override
protected void computeRotationTranslation(Transform3d transform3D)
{
 transform3D.setIdentity();
 translationVector.set(yoFramePoint.getX(), yoFramePoint.getY(), yoFramePoint.getZ());
 yoFrameOrientation.getEulerAngles(rotationEulerVector);
 transform3D.setRotationEulerAndZeroTranslation(rotationEulerVector);
 transform3D.setTranslation(translationVector);
 transform3D.setScale(scale);
}

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

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

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

public void setRotationMagnitudeYawPitchRoll(double[] rotationYawPitchRoll)
{
 this.rotationMagnitude.setYawPitchRoll(rotationYawPitchRoll);
}

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

public void setAndMatchFrame(YoFrameOrientation yoFrameOrientation)
{
 setAndMatchFrame(yoFrameOrientation, true);
}

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

public double getYaw()
{
 return getOrientation().getYaw().getDoubleValue();
}

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