gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 18:32:40 26 4
gpt4 key购买 nike

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

YoFrameOrientation.getReferenceFrame介绍

暂无

代码示例

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

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

代码示例来源: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(YoFrameQuaternion orientation)
{
 orientation.checkReferenceFrameMatch(getReferenceFrame());
 orientation.getFrameOrientationIncludingFrame(tempFrameOrientation);
 set(tempFrameOrientation);
}

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

@Override
  public String toString()
  {
   return "(yaw = " + yaw.getDoubleValue() + ", pitch = " + pitch.getDoubleValue() + ", roll = " + roll.getDoubleValue() + ")-" + getReferenceFrame().getName();
  }
}

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

public FrameOrientation getFrameOrientationCopy()
{
 FrameOrientation orientation = new FrameOrientation(getReferenceFrame(), yaw.getDoubleValue(), pitch.getDoubleValue(), roll.getDoubleValue());
 return orientation;
}

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

public void set(FrameOrientation orientation, boolean notifyListeners)
{
 orientation.checkReferenceFrameMatch(getReferenceFrame());
 orientation.getYawPitchRoll(tempYawPitchRoll);
 yaw.set(tempYawPitchRoll[0], notifyListeners);
 pitch.set(tempYawPitchRoll[1], notifyListeners);
 roll.set(tempYawPitchRoll[2], notifyListeners);
}

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

private void putYoValuesIntoFrameOrientation()
{
 tempFrameOrientation.setToZero(getReferenceFrame());
 tempFrameOrientation.setYawPitchRoll(yaw.getDoubleValue(), pitch.getDoubleValue(), roll.getDoubleValue());
}

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

public void getFrameOrientationIncludingFrame(FrameOrientation orientationToPack)
{
 orientationToPack.setToZero(getReferenceFrame());
 orientationToPack.setYawPitchRoll(yaw.getDoubleValue(), pitch.getDoubleValue(), roll.getDoubleValue());
}

代码示例来源: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 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 void setAndMatchFrame(YoFrameQuaternion yoFrameQuaternion, boolean notifyListeners)
{
 yoFrameQuaternion.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 void setAndMatchFrame(FrameOrientation orientation, boolean notifyListeners)
{
 tempFrameOrientation.setIncludingFrame(orientation);
 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

/**
* Sets the orientation of this to the origin of the passed in ReferenceFrame.
* 
* @param referenceFrame
*/
public void setFromReferenceFrame(ReferenceFrame referenceFrame, boolean notifyListeners)
{
 tempFrameOrientation.setToZero(referenceFrame);
 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 void set(YoFrameOrientation orientation)
{
 orientation.checkReferenceFrameMatch(getReferenceFrame());
 yaw.set(orientation.yaw.getDoubleValue());
 pitch.set(orientation.pitch.getDoubleValue());
 roll.set(orientation.roll.getDoubleValue());
}

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

tempOrientation.changeFrame(currentOrientationForViz.getReferenceFrame());
currentOrientationForViz.set(tempOrientation);

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