gpt4 book ai didi

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

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

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

YoFrameQuaternion.getYoQx介绍

暂无

代码示例

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

public DoubleYoVariable getYoQx()
{
 return getOrientation().getYoQx();
}

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

public void verifyYovariableNames(String imuName, YoFrameQuaternion orientation, YoFrameVector angularVelocity, YoFrameVector linearAcceleration)
  {
   if (!orientation.getYoQx().getName().contains(imuName))
     throw new RuntimeException("The orientation variable: " + orientation.getYoQx().getName() + " may not belong to the IMU: " + imuName);
   if (!orientation.getYoQy().getName().contains(imuName))
     throw new RuntimeException("The orientation variable: " + orientation.getYoQy().getName() + " may not belong to the IMU: " + imuName);
   if (!orientation.getYoQz().getName().contains(imuName))
     throw new RuntimeException("The orientation variable: " + orientation.getYoQz().getName() + " may not belong to the IMU: " + imuName);
   if (!orientation.getYoQs().getName().contains(imuName))
     throw new RuntimeException("The orientation variable: " + orientation.getYoQs().getName() + " may not belong to the IMU: " + imuName);

   if (!angularVelocity.getYoX().getName().contains(imuName))
     throw new RuntimeException("The angular velocity variable: " + angularVelocity.getYoX().getName() + " may not belong to the IMU: " + imuName);
   if (!angularVelocity.getYoY().getName().contains(imuName))
     throw new RuntimeException("The angular velocity variable: " + angularVelocity.getYoY().getName() + " may not belong to the IMU: " + imuName);
   if (!angularVelocity.getYoZ().getName().contains(imuName))
     throw new RuntimeException("The angular velocity variable: " + angularVelocity.getYoZ().getName() + " may not belong to the IMU: " + imuName);

   if (!linearAcceleration.getYoX().getName().contains(imuName))
     throw new RuntimeException("The linear acceleration variable: " + linearAcceleration.getYoX().getName() + " may not belong to the IMU: " + imuName);
   if (!linearAcceleration.getYoY().getName().contains(imuName))
     throw new RuntimeException("The linear acceleration variable: " + linearAcceleration.getYoY().getName() + " may not belong to the IMU: " + imuName);
   if (!linearAcceleration.getYoZ().getName().contains(imuName))
     throw new RuntimeException("The linear acceleration variable: " + linearAcceleration.getYoZ().getName() + " may not belong to the IMU: " + imuName);
  }
}

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

private YoFrameQuaternionValidityChecker(String inputName, YoFrameQuaternion input, YoVariableRegistry parentRegistry)
{
 registry = new YoVariableRegistry(inputName + "ValidityChecker");
 parentRegistry.addChild(registry);
 this.input = input;
 if (input != null)
 {
   validityCheckers[0] = new DoubleYoVariableValidityChecker(input.getYoQx(), registry);
   validityCheckers[1] = new DoubleYoVariableValidityChecker(input.getYoQy(), registry);
   validityCheckers[2] = new DoubleYoVariableValidityChecker(input.getYoQz(), registry);
   validityCheckers[3] = new DoubleYoVariableValidityChecker(input.getYoQs(), registry);
 }
 else
 {
   validityCheckers[0] = new DoubleYoVariableValidityChecker(inputName + "Qx", registry);
   validityCheckers[1] = new DoubleYoVariableValidityChecker(inputName + "Qy", registry);
   validityCheckers[2] = new DoubleYoVariableValidityChecker(inputName + "Qz", registry);
   validityCheckers[3] = new DoubleYoVariableValidityChecker(inputName + "Qs", registry);
 }
}

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