gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicLineSegment类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 22:56:03 25 4
gpt4 key购买 nike

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

YoGraphicLineSegment介绍

[英]Title:

Description:

Copyright: Copyright (c) 2006

Company:
[中]标题:
描述:
版权所有:版权所有(c)2006
公司:

代码示例

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

/** {@inheritDoc} */
  @Override
  public YoGraphicLineSegment duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicLineSegment(getName(), start, end, scaleFactor, getAppearance(), getDrawArrowhead());
  }
}

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

public YoGraphicLineSegment(String name, YoDouble baseX, YoDouble baseY, YoDouble baseZ, YoDouble endX, YoDouble endY, YoDouble endZ, double scaleFactor,
              AppearanceDefinition appearance, boolean drawArrowhead)
{
 this(name, baseX, baseY, baseZ, endX, endY, endZ, createDirectionVector(name, baseX.getYoVariableRegistry()), scaleFactor, appearance, drawArrowhead);
}

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

private static YoGraphicLineSegment yoGraphicLineSegmentFromMessage(String name, YoVariable<?>[] vars, double[] consts, AppearanceDefinition appearance)
{
 return new YoGraphicLineSegment(name, (YoDouble) vars[0], (YoDouble) vars[1], (YoDouble) vars[2], (YoDouble) vars[3], (YoDouble) vars[4],
                 (YoDouble) vars[5], consts[0], appearance);
}

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

rightMidZUpFrameViz = new YoGraphicReferenceFrame(referenceFrames.getSideDependentMidFeetZUpFrame(RobotSide.RIGHT), registry, 0.2);
nominalYawGraphic = new YoGraphicLineSegment("nominalYaw", centroid, nominalYawEndpoint, 0.2, YoAppearance.Yellow(), true);
nominalYawGraphic.setLineRadiusWhenOneMeterLong(0.02);

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

private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint3D[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
 AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
 YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
 for (int i = 0; i < basePoints.length; i++)
 {
   YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
   yoGraphicsList.add(baseControlPointViz);
   basePointsList.add(baseControlPointViz);
      for (int j = i + 1; j < basePoints.length; j++)
   {
    YoGraphicLineSegment yoGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
       1.0, appearance, false);
    yoGraphicsList.add(yoGraphicLineSegment);
    linesList.add(yoGraphicLineSegment);
   }
 }
 if (yoGraphicsListRegistry != null)
   yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsList.hideYoGraphics();
}

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

private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
 AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
 YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
 for (int i = 0; i < basePoints.length; i++)
 {
   YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
   yoGraphicsList.add(baseControlPointViz);
   basePointsList.add(baseControlPointViz);
      for (int j = i + 1; j < basePoints.length; j++)
   {
    YoGraphicLineSegment dynamicGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
       1.0, appearance, false);
    yoGraphicsList.add(dynamicGraphicLineSegment);
    linesList.add(dynamicGraphicLineSegment);
   }
 }
 if (yoGraphicsListRegistry != null)
   yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsList.hideYoGraphics();
}

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

public YoGraphicLineSegment(String name, DoubleYoVariable baseX, DoubleYoVariable baseY, DoubleYoVariable baseZ, DoubleYoVariable endX, DoubleYoVariable endY, DoubleYoVariable endZ, double scaleFactor,
   AppearanceDefinition appearance, boolean drawArrowhead)
{
 this(name, baseX, baseY, baseZ, endX, endY, endZ, createDirectionVector(name, baseX.getYoVariableRegistry()), scaleFactor, appearance, drawArrowhead);
}

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

return new YoGraphicLineSegment(name, (DoubleYoVariable) vars[0], (DoubleYoVariable) vars[1], (DoubleYoVariable) vars[2],
   (DoubleYoVariable) vars[3], (DoubleYoVariable) vars[4], (DoubleYoVariable) vars[5], consts[0], appearance);

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