gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 23:34:49 25 4
gpt4 key购买 nike

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

YoFramePoint2D.getReferenceFrame介绍

暂无

代码示例

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

/** {@inheritDoc} */
@Override
public ReferenceFrame getReferenceFrame()
{
 return firstEndpoint.getReferenceFrame();
}

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

/** {@inheritDoc} */
@Override
public ReferenceFrame getReferenceFrame()
{
 return point.getReferenceFrame();
}

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

/**
* Creates a new {@code YoFrameLine2D} using the given {@code YoVariable}s and sets its reference
* frame to {@code referenceFrame}.
*
* @param point the {@code YoFramePoint2D} to use internally for this line point.
* @param direction the {@code YoFrameVector2D} to use internally for this line direction.
* @throws ReferenceFrameMismatchException if {@code point} and {@code direction} are not
*            expressed in the same reference frame.
*/
public YoFrameLine2D(YoFramePoint2D point, YoFrameVector2D direction)
{
 this(point.getYoX(), point.getYoY(), direction.getYoX(), direction.getYoY(), point.getReferenceFrame());
 point.checkReferenceFrameMatch(direction);
}

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

/**
* Creates a new {@code YoFrameLine2D} using the given {@code YoVariable}s and sets its reference
* frame to {@code referenceFrame}.
*
* @param firstEndpoint the {@code YoFramePoint2D} to use internally for the first endpoint.
* @param secondEndpoint the {@code YoFramePoint2D} to use internally for the second endpoint.
* @throws ReferenceFrameMismatchException if {@code firstEndpoint} and {@code secondEndpoint}
*            are not expressed in the same reference frame.
*/
public YoFrameLineSegment2D(YoFramePoint2D firstEndpoint, YoFramePoint2D secondEndpoint)
{
 this(firstEndpoint.getYoX(), firstEndpoint.getYoY(), secondEndpoint.getYoX(), secondEndpoint.getYoY(), firstEndpoint.getReferenceFrame());
 firstEndpoint.checkReferenceFrameMatch(secondEndpoint);
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public static BetaFilteredYoFramePoint2d createBetaFilteredYoFramePoint2d(String namePrefix, String nameSuffix, YoVariableRegistry registry, int beta, YoFramePoint2D unfilteredPoint)
{
 // beta is a int
 BetaFilteredYoVariable x = new BetaFilteredYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), registry, beta, unfilteredPoint.getYoX());
 BetaFilteredYoVariable y = new BetaFilteredYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), registry, beta, unfilteredPoint.getYoY());
 BetaFilteredYoFramePoint2d ret = new BetaFilteredYoFramePoint2d(x, y, unfilteredPoint.getReferenceFrame());
 return ret;
}

代码示例来源: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 YoFramePoint2D duplicate(YoVariableRegistry newRegistry)
  {
   YoDouble x = (YoDouble) newRegistry.getVariable(getYoX().getFullNameWithNameSpace());
   YoDouble y = (YoDouble) newRegistry.getVariable(getYoY().getFullNameWithNameSpace());
   return new YoFramePoint2D(x, y, getReferenceFrame());
  }
}

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