gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFramePoint2d.getYoX()方法的使用及代码示例

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

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

YoFramePoint2d.getYoX介绍

暂无

代码示例

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

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

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

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/IHMCGraphicsDescription

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/IHMCGraphicsDescription

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/IHMCGraphicsDescription

/**
* @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);
 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(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/IHMCGraphicsDescription

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;
 this.graphicType = type;
 this.radii.set(radius, radius);
}

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

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

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

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

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

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/IHMCRoboticsToolkit

public static AlphaFilteredYoFramePoint2d createAlphaFilteredYoFramePoint2d(String namePrefix, String nameSuffix, YoVariableRegistry registry, double alpha, YoFramePoint2d unfilteredPoint)
{
 // alpha is a double
 AlphaFilteredYoVariable x = new AlphaFilteredYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), registry, alpha, unfilteredPoint.getYoX());
 AlphaFilteredYoVariable y = new AlphaFilteredYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), registry, alpha, unfilteredPoint.getYoY());
 AlphaFilteredYoFramePoint2d ret = new AlphaFilteredYoFramePoint2d(x, y, unfilteredPoint.getReferenceFrame());
 return ret;
}

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

public static AlphaFilteredYoFramePoint2d createAlphaFilteredYoFramePoint2d(String namePrefix, String nameSuffix, YoVariableRegistry registry, DoubleYoVariable alpha, YoFramePoint2d unfilteredPoint)
{
 // alpha is a YoVariable
 AlphaFilteredYoVariable x = new AlphaFilteredYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), registry, alpha, unfilteredPoint.getYoX());
 AlphaFilteredYoVariable y = new AlphaFilteredYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), registry, alpha, unfilteredPoint.getYoY());
 AlphaFilteredYoFramePoint2d ret = new AlphaFilteredYoFramePoint2d(x, y, unfilteredPoint.getReferenceFrame());
 return ret;
}

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

@Override
public YoVariable<?>[] getVariables()
{
 //poly + framePoint + frameOrientation
 YoVariable<?>[] vars = new YoVariable[1 + 2 * yoFrameConvexPolygon2d.getMaxNumberOfVertices() + 6];
 int i = 0;
 vars[i++] = yoFrameConvexPolygon2d.getYoNumberVertices();
 for (YoFramePoint2d p : yoFrameConvexPolygon2d.getYoFramePoints())
 {
   vars[i++] = p.getYoX();
   vars[i++] = p.getYoY();
 }
 vars[i++] = yoFramePoint.getYoX();
 vars[i++] = yoFramePoint.getYoY();
 vars[i++] = yoFramePoint.getYoZ();
 vars[i++] = yoFrameOrientation.getYaw();
 vars[i++] = yoFrameOrientation.getPitch();
 vars[i++] = yoFrameOrientation.getRoll();
 return vars;
}

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

public ExplorationHelper(ContactableFoot contactableFoot, FootControlHelper footControlHelper, String prefix, YoVariableRegistry registry)
{
 footholdExplorationActive = new BooleanYoVariable(prefix + "FootholdExplorationActive", registry);
 timeExploring = new DoubleYoVariable(prefix + "TimeExploring", registry);
 startTime = new DoubleYoVariable(prefix + "StartTime", registry);
 yoCurrentCorner = new IntegerYoVariable(prefix + "CurrentCornerExplored", registry);
 centerOfPressureCommand.setContactingRigidBody(contactableFoot.getRigidBody());
 explorationParameters = footControlHelper.getWalkingControllerParameters().getOrCreateExplorationParameters(registry);
 if (explorationParameters != null)
   copCommandWeight = explorationParameters.getCopCommandWeight();
 else
   copCommandWeight = null;
 soleFrame = footControlHelper.getContactableFoot().getSoleFrame();
 partialFootholdControlModule = footControlHelper.getPartialFootholdControlModule();
 YoGraphicsListRegistry graphicObjectsListRegistry = footControlHelper.getMomentumBasedController().getDynamicGraphicObjectsListRegistry();
 if (graphicObjectsListRegistry != null)
 {
   yoDesiredCop = new YoFramePoint2d(prefix + "DesiredExplorationCop", ReferenceFrame.getWorldFrame(), registry);
   String name = prefix + "Desired Center of Pressure for Exploration";
   YoArtifactPosition artifact = new YoArtifactPosition(name, yoDesiredCop.getYoX(), yoDesiredCop.getYoY(), GraphicType.BALL, Color.BLUE, 0.003);
   graphicObjectsListRegistry.registerArtifact(prefix + getClass().getSimpleName(), artifact);
 }
 else
 {
   yoDesiredCop = null;
 }
}

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

artifacts.add(new YoArtifactPosition("Capture Point For Momentum", yoCapturePoint.getYoX(), yoCapturePoint.getYoY(), GraphicType.BALL, Color.BLUE, 0.01));

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

yoGraphicsListRegistry.registerArtifact(graphicListName, capturePointViz.createArtifact());
YoArtifactPosition copViz = new YoArtifactPosition("Controller CoP", yoCenterOfPressure.getYoX(), yoCenterOfPressure.getYoY(),
   GraphicType.DIAMOND, Color.BLACK , 0.005);
yoGraphicsListRegistry.registerArtifact(graphicListName, copViz);

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