gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 09:38:49 26 4
gpt4 key购买 nike

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

YoFrameVariableNameTools.createQxName介绍

暂无

代码示例

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

public YoFrameQuaternion findYoFrameQuaternion(String quaternionPrefix, String quaternionSuffix, ReferenceFrame quaternionFrame)
  {
   DoubleYoVariable qx = (DoubleYoVariable) scs.getVariable(createQxName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qy = (DoubleYoVariable) scs.getVariable(createQyName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qz = (DoubleYoVariable) scs.getVariable(createQzName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qs = (DoubleYoVariable) scs.getVariable(createQsName(quaternionPrefix, quaternionSuffix));

   if (qx == null || qy == null || qz == null || qs == null)
     return null;
   else
     return new YoFrameQuaternion(qx, qy, qz, qs, quaternionFrame);
  }
}

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

public YoFrameQuaternion(String namePrefix, String nameSuffix, ReferenceFrame referenceFrame, YoVariableRegistry registry)
{
 this.namePrefix = namePrefix;
 this.nameSuffix = nameSuffix;
 this.qx = new DoubleYoVariable(createQxName(namePrefix, nameSuffix), registry);
 this.qy = new DoubleYoVariable(createQyName(namePrefix, nameSuffix), registry);
 this.qz = new DoubleYoVariable(createQzName(namePrefix, nameSuffix), registry);
 this.qs = new DoubleYoVariable(createQsName(namePrefix, nameSuffix), registry);
 this.referenceFrame = referenceFrame;
 qs.set(1.0);
}

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

public YoFrameQuaternion findYoFrameQuaternion(String quaternionPrefix, String quaternionSuffix, ReferenceFrame quaternionFrame)
  {
   YoDouble qx = (YoDouble) scs.getVariable(createQxName(quaternionPrefix, quaternionSuffix));
   YoDouble qy = (YoDouble) scs.getVariable(createQyName(quaternionPrefix, quaternionSuffix));
   YoDouble qz = (YoDouble) scs.getVariable(createQzName(quaternionPrefix, quaternionSuffix));
   YoDouble qs = (YoDouble) scs.getVariable(createQsName(quaternionPrefix, quaternionSuffix));

   if (qx == null || qy == null || qz == null || qs == null)
     return null;
   else
     return new YoFrameQuaternion(qx, qy, qz, qs, quaternionFrame);
  }
}

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

public YoFrameQuaternion findYoFrameQuaternion(String quaternionPrefix, String quaternionSuffix, ReferenceFrame quaternionFrame)
  {
   DoubleYoVariable qx = (DoubleYoVariable) scs.getVariable(createQxName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qy = (DoubleYoVariable) scs.getVariable(createQyName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qz = (DoubleYoVariable) scs.getVariable(createQzName(quaternionPrefix, quaternionSuffix));
   DoubleYoVariable qs = (DoubleYoVariable) scs.getVariable(createQsName(quaternionPrefix, quaternionSuffix));

   if (qx == null || qy == null || qz == null || qs == null)
     return null;
   else
     return new YoFrameQuaternion(qx, qy, qz, qs, quaternionFrame);
  }
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

public static Quaternion findQuat4d(String nameSpace, String prefix, String suffix, SimulationConstructionSet scs)
{
 double x = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQxName(prefix, suffix)).getValueAsDouble();
 double y = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQyName(prefix, suffix)).getValueAsDouble();
 double z = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQzName(prefix, suffix)).getValueAsDouble();
 double s = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQsName(prefix, suffix)).getValueAsDouble();
 return new Quaternion(x, y, z, s);
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

/**
* Finds the quaternion associated with the given namespace, prefix and suffix in scs.
*/
public static Quaternion findQuat4d(String nameSpace, String prefix, String suffix, SimulationConstructionSet scs)
{
 double x = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQxName(prefix, suffix)).getValueAsDouble();
 double y = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQyName(prefix, suffix)).getValueAsDouble();
 double z = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQzName(prefix, suffix)).getValueAsDouble();
 double s = scs.getVariable(nameSpace, YoFrameVariableNameTools.createQsName(prefix, suffix)).getValueAsDouble();
 return new Quaternion(x, y, z, s);
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

private static YoFramePose3D findYoFramePose3D(String nameSpace, String namePrefix, String nameSuffix, SimulationConstructionSet scs)
{
 YoDouble x = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createXName(namePrefix, nameSuffix));
 YoDouble y = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createYName(namePrefix, nameSuffix));
 YoDouble z = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createZName(namePrefix, nameSuffix));
 YoFramePoint3D position = new YoFramePoint3D(x, y, z, ReferenceFrame.getWorldFrame());
 YoDouble qx = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createQxName(namePrefix, nameSuffix));
 YoDouble qy = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createQyName(namePrefix, nameSuffix));
 YoDouble qz = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createQzName(namePrefix, nameSuffix));
 YoDouble qs = (YoDouble) scs.getVariable(nameSpace, YoFrameVariableNameTools.createQsName(namePrefix, nameSuffix));
 YoFrameQuaternion orientation = new YoFrameQuaternion(qx, qy, qz, qs, ReferenceFrame.getWorldFrame());
 return new YoFramePose3D(position, orientation);
}

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