gpt4 book ai didi

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

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

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

YoFrameYawPitchRoll.getReferenceFrame介绍

暂无

代码示例

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

public RateLimitedYoFrameOrientation(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleProvider maxRate, double dt,
                  YoFrameYawPitchRoll rawOrientation)
{
 this(namePrefix, nameSuffix, registry, maxRate, dt, rawOrientation, rawOrientation.getReferenceFrame());
}

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

public RateLimitedYoFrameOrientation(String namePrefix, String nameSuffix, YoVariableRegistry registry, double maxRate, double dt,
                  YoFrameYawPitchRoll rawOrientation)
{
 this(namePrefix, nameSuffix, registry, createMaxRateYoDouble(namePrefix, nameSuffix, maxRate, registry), dt, rawOrientation,
    rawOrientation.getReferenceFrame());
}

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

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

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

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

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

public void set(FrameQuaternionReadOnly 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/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

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

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

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

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

public void setMatchingFrame(FrameQuaternionReadOnly 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/ihmc-yovariables

public void setMatchingFrame(YoFrameYawPitchRoll 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/ihmc-yovariables

/**
* 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/ihmc-yovariables

public void set(YoFrameYawPitchRoll orientation)
{
 orientation.checkReferenceFrameMatch(getReferenceFrame());
 yaw.set(orientation.yaw.getDoubleValue());
 pitch.set(orientation.pitch.getDoubleValue());
 roll.set(orientation.roll.getDoubleValue());
}

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

/**
* Creates a copy of {@code this} by finding the duplicated {@code YoVariable}s in the given
* {@link YoVariableRegistry}.
* <p>
* This method does not duplicate {@code YoVariable}s. Assuming the given registry is a duplicate
* of the registry that was used to create {@code this}, this method searches for the duplicated
* {@code YoVariable}s and use them to duplicate {@code this}.
* </p>
*
* @param newRegistry YoVariableRegistry to duplicate {@code this} to.
* @return the duplicate of {@code this}.
*/
public YoFrameYawPitchRoll duplicate(YoVariableRegistry newRegistry)
{
 YoDouble yaw = (YoDouble) newRegistry.getVariable(this.yaw.getFullNameWithNameSpace());
 YoDouble pitch = (YoDouble) newRegistry.getVariable(this.pitch.getFullNameWithNameSpace());
 YoDouble roll = (YoDouble) newRegistry.getVariable(this.roll.getFullNameWithNameSpace());
 return new YoFrameYawPitchRoll(yaw, pitch, roll, getReferenceFrame());
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

@ContinuousIntegrationTest(estimatedDuration = 0.0)
  @Test(timeout = 30000)
  public void testConstructor_Get()
  {
   YoOrientationProvider yoOrientationProvider = new YoOrientationProvider(yoFrameOrientation);
   yoOrientationProvider.getOrientation(frameOrientationToPack);
   
   double[] yawPitchRollToPack = new double[3];
   yoFrameOrientation.getYawPitchRoll(yawPitchRollToPack);
   
   double[] yawPitchRollToPack2 = new double[3];
   frameOrientationToPack.getYawPitchRoll(yawPitchRollToPack2);
   
   for(int i = 0; i < yawPitchRollToPack.length; i++)
   {
     assertEquals(yawPitchRollToPack[i], yawPitchRollToPack2[i], EPSILON);
   }
   
   assertSame(yoFrameOrientation.getReferenceFrame(), frameOrientationToPack.getReferenceFrame());
  }
}

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