gpt4 book ai didi

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

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

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

YoFramePoint2D.getYoX介绍

暂无

代码示例

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

/**
* Gets the internal reference to the x-coordinate used for the second endpoint of this line
* segment.
* 
* @return the second endpoint x-coordinate as {@code YoVariable}.
*/
public YoDouble getYoSecondEndpointX()
{
 return secondEndpoint.getYoX();
}

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

/**
* Gets the internal reference to the x-coordinate used for the first endpoint of this line
* segment.
* 
* @return the first endpoint x-coordinate as {@code YoVariable}.
*/
public YoDouble getYoFirstEndpointX()
{
 return firstEndpoint.getYoX();
}

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

/**
* Gets the internal reference to the x-coordinate used for this line point.
* 
* @return the point x-coordinate as {@code YoVariable}.
*/
public YoDouble getYoPointX()
{
 return point.getYoX();
}

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

public YoDouble getYoX()
{
 return point.getYoX();
}

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

public YoArtifactLineSegment2d(String name, YoFramePoint2D startPoint, YoFramePoint2D endPoint, Color color, double arrowHeadWidth, double arrowHeadHeight)
{
 this(name, startPoint.getYoX(), startPoint.getYoY(), endPoint.getYoX(), endPoint.getYoY(), color, arrowHeadWidth, arrowHeadHeight);
}

代码示例来源: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-graphics-description

public YoArtifactLineSegment2d(String name, YoFramePoint2D start, YoFramePoint2D end, Color color)
{
 this(name, new YoFrameLineSegment2D(start.getYoX(), start.getYoY(), end.getYoX(), end.getYoY(), ReferenceFrame.getWorldFrame()), color);
}

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

/**
* @return The YoVariables needed to create a remote version of this YoGraphic.
*/
@Override
public YoVariable<?>[] getVariables()
{
 List<YoVariable<?>> allVariables = new ArrayList<>();
 allVariables.add(waitForReader);
 allVariables.add(hasReaderProcessedMesh);
 allVariables.add(hasWriterProcessedMesh);
 for (int i = 0; i < vertexBufferSize; i++)
 {
   allVariables.add(vertexBuffer.get(i).getYoX());
   allVariables.add(vertexBuffer.get(i).getYoY());
 }
 allVariables.add(currentMeshIndex);
 allVariables.add(currentRegionId);
 allVariables.add(isPlanarRegionsListComplete);
 allVariables.add(clear);
 allVariables.add(currentRegionPose.getYoX());
 allVariables.add(currentRegionPose.getYoY());
 allVariables.add(currentRegionPose.getYoZ());
 allVariables.add(currentRegionPose.getYoQx());
 allVariables.add(currentRegionPose.getYoQy());
 allVariables.add(currentRegionPose.getYoQz());
 allVariables.add(currentRegionPose.getYoQs());
 return allVariables.toArray(new YoVariable[0]);
}

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

public YoArtifactPosition(String name, YoFramePoint2D point, GraphicType type, Color color, double radius)
{
 super(name, new double[] {radius, type.ordinal()}, color, point.getYoX(), point.getYoY());
 this.point = point;
 graphicType = type;
 radii.set(radius, radius);
}

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

public YoArtifactOval(String name, YoFramePoint2D center, YoFrameVector2D radii, Color color)
{
 super(name, new double[0], color, center.getYoX(), center.getYoY(), radii.getYoX(), radii.getYoY());
 this.center = center;
 this.radii = radii;
}

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

public YoGraphicPosition(String name, YoFramePoint2D framePoint, double scale, AppearanceDefinition appearance, GraphicType type)
{
 super(name);
 framePoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
 x = framePoint.getYoX();
 y = framePoint.getYoY();
 z = null;
 this.scale = scale;
 this.type = type;
 this.appearance = appearance;
}

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

@Override
public YoVariable<?>[] getVariables()
{
 YoVariable<?>[] vars = new YoVariable[1 + 2 * convexPolygon.getMaxNumberOfVertices()];
 int i = 0;
 vars[i++] = convexPolygon.getYoNumberOfVertices();
 for (YoFramePoint2D p : convexPolygon.getVertexBuffer())
 {
   vars[i++] = p.getYoX();
   vars[i++] = p.getYoY();
 }
 return vars;
}

代码示例来源: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-graphics-description

@Override
public YoVariable<?>[] getVariables()
{
 //poly + framePoint + frameOrientation
 YoVariable<?>[] superYoVariables = super.getVariables();
 YoVariable<?>[] yoVariables = new YoVariable[1 + 2 * yoFrameConvexPolygon2d.getMaxNumberOfVertices() + superYoVariables.length];
 int i = 0;
 yoVariables[i++] = yoFrameConvexPolygon2d.getYoNumberOfVertices();
 for (YoFramePoint2D p : yoFrameConvexPolygon2d.getVertexBuffer())
 {
   yoVariables[i++] = p.getYoX();
   yoVariables[i++] = p.getYoY();
 }
 for (YoVariable<?> superYoVariable : superYoVariables)
 {
   yoVariables[i++] = superYoVariable;
 }
 return yoVariables;
}

代码示例来源: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());
  }
}

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