本文整理了Java中us.ihmc.robotics.math.trajectories.YoPolynomial3D.<init>()
方法的一些代码示例,展示了YoPolynomial3D.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoPolynomial3D.<init>()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.YoPolynomial3D
类名称:YoPolynomial3D
方法名:<init>
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public static YoPolynomial3D[] createYoPolynomial3DArray(YoPolynomial[] xPolynomial, YoPolynomial[] yPolynomial, YoPolynomial[] zPolynomial)
{
if (xPolynomial.length != yPolynomial.length || xPolynomial.length != zPolynomial.length)
throw new RuntimeException("Cannot handle different number of polynomial for the different axes.");
YoPolynomial3D[] yoPolynomial3Ds = new YoPolynomial3D[xPolynomial.length];
for (int i = 0; i < xPolynomial.length; i++)
{
yoPolynomial3Ds[i] = new YoPolynomial3D(xPolynomial[i], yPolynomial[i], zPolynomial[i]);
}
return yoPolynomial3Ds;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public static List<YoPolynomial3D> createYoPolynomial3DList(YoPolynomial[] xPolynomial, YoPolynomial[] yPolynomial, YoPolynomial[] zPolynomial)
{
if (xPolynomial.length != yPolynomial.length || xPolynomial.length != zPolynomial.length)
throw new RuntimeException("Cannot handle different number of polynomial for the different axes.");
List<YoPolynomial3D> yoPolynomial3Ds = new ArrayList<>(xPolynomial.length);
for (int i = 0; i < xPolynomial.length; i++)
{
yoPolynomial3Ds.add(new YoPolynomial3D(xPolynomial[i], yPolynomial[i], zPolynomial[i]));
}
return yoPolynomial3Ds;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public static YoPolynomial3D[] createYoPolynomial3DArray(List<YoPolynomial> xPolynomial, List<YoPolynomial> yPolynomial, List<YoPolynomial> zPolynomial)
{
if (xPolynomial.size() != yPolynomial.size() || xPolynomial.size() != zPolynomial.size())
throw new RuntimeException("Cannot handle different number of polynomial for the different axes.");
YoPolynomial3D[] yoPolynomial3Ds = new YoPolynomial3D[xPolynomial.size()];
for (int i = 0; i < xPolynomial.size(); i++)
{
yoPolynomial3Ds[i] = new YoPolynomial3D(xPolynomial.get(i), yPolynomial.get(i), zPolynomial.get(i));
}
return yoPolynomial3Ds;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public static List<YoPolynomial3D> createYoPolynomial3DList(List<YoPolynomial> xPolynomial, List<YoPolynomial> yPolynomial, List<YoPolynomial> zPolynomial)
{
if (xPolynomial.size() != yPolynomial.size() || xPolynomial.size() != zPolynomial.size())
throw new RuntimeException("Cannot handle different number of polynomial for the different axes.");
List<YoPolynomial3D> yoPolynomial3Ds = new ArrayList<>(xPolynomial.size());
for (int i = 0; i < xPolynomial.size(); i++)
{
yoPolynomial3Ds.add(new YoPolynomial3D(xPolynomial.get(i), yPolynomial.get(i), zPolynomial.get(i)));
}
return yoPolynomial3Ds;
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
public AngularMomentumSpy(DRCSimulationTestHelper simulationTestHelper)
{
YoVariableRegistry scsRegistry = drcSimulationTestHelper.getYoVariableRegistry();
drcSimulationTestHelper.addRobotControllerOnControllerThread(this);
floatingRootJointModel = drcSimulationTestHelper.getRobot();
rootJoint = floatingRootJointModel.getRootJoint();
comAngularMomentum = new YoFrameVector3D("CoMAngularMomentum", worldFrame, scsRegistry);
comEstimatedAngularMomentum = new YoFrameVector3D("CoMEstimatedAngularMomentum", worldFrame, scsRegistry);
scs = drcSimulationTestHelper.getSimulationConstructionSet();
swTraj = new YoPolynomial3D("SwingFootTraj", 4, scsRegistry);
comTraj = new YoPolynomial3D("CoMTraj", 4, scsRegistry);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
YoPolynomial yPolynomial = new YoPolynomial(name + "YPoly" + i, random.nextInt(20) + 1, registry);
YoPolynomial zPolynomial = new YoPolynomial(name + "ZPoly" + i, random.nextInt(20) + 1, registry);
yoPolynomial3Ds.add(new YoPolynomial3D(xPolynomial, yPolynomial, zPolynomial));
waypointTimes.add(new YoDouble(name + "WaypointTime" + i, registry));
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
subTrajectory = new YoPolynomial3D(namePrefix, 4, registry);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
index += zSize;
yoPolynomial3Ds[i] = new YoPolynomial3D(xPolynomial, yPolynomial, zPolynomial);
内容来源于网络,如有侵权,请联系作者删除!