gpt4 book ai didi

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

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

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

YoFrameYawPitchRoll.duplicate介绍

[英]Creates a copy of this by finding the duplicated YoVariables in the given YoVariableRegistry.

This method does not duplicate YoVariables. Assuming the given registry is a duplicate of the registry that was used to create this, this method searches for the duplicated YoVariables and use them to duplicate this.
[中]通过在给定的YoVariableRegistry中查找重复的YoVariables来创建此文件的副本。
此方法不复制变量。假设给定的注册表是用于创建此注册表的注册表的副本,此方法将搜索复制的变量,并使用它们来复制此变量。

代码示例

代码示例来源: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 YoFramePoseUsingYawPitchRoll duplicate(YoVariableRegistry newRegistry)
  {
   return new YoFramePoseUsingYawPitchRoll(position.duplicate(newRegistry), orientation.duplicate(newRegistry));
  }
}

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

@Override
  public YoGraphic duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicText3D(getName(), text, yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale, appearance);
  }
}

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

@Override
  public YoGraphicEllipsoid duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicEllipsoid(getName(), position.duplicate(newRegistry), yawPitchRoll.duplicate(newRegistry), appearance, radii);
  }
}

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

@Override
  public YoGraphicVRML duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicVRML(getName(), referenceFrame, position.duplicate(newRegistry), yawPitchRoll.duplicate(newRegistry), modelFilePath, graphicOffset,
                graphicRotation, appearance, showCoordinateSystem, scale);
  }
}

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

@Override
  public YoGraphic duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicText(getName(), text, yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale, backgroundColor,
                textAppearance);
  }
}

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

@Override
  public YoGraphic duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicShape(getName(), getLinkGraphics(), yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale);
  }
}

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

@Override
public YoGraphicCoordinateSystem duplicate(YoVariableRegistry newRegistry)
{
 if (isUsingYawPitchRoll())
   return new YoGraphicCoordinateSystem(getName(), position.duplicate(newRegistry), yawPitchRoll.duplicate(newRegistry), scale, arrowColor);
 else
   return new YoGraphicCoordinateSystem(getName(), position.duplicate(newRegistry), quaternion.duplicate(newRegistry), scale, arrowColor);
}

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

@Override
public YoGraphicPolygon duplicate(YoVariableRegistry newRegistry)
{
 if (isUsingYawPitchRoll())
   return new YoGraphicPolygon(getName(), yoFrameConvexPolygon2d.duplicate(newRegistry), yoFramePoint.duplicate(newRegistry),
                 yoFrameYawPitchRoll.duplicate(newRegistry), scale, height, appearance);
 else
   return new YoGraphicPolygon(getName(), yoFrameConvexPolygon2d.duplicate(newRegistry), yoFramePoint.duplicate(newRegistry),
                 yoFrameQuaternion.duplicate(newRegistry), scale, height, appearance);
}

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