gpt4 book ai didi

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

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

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

YoFramePoint3D.getYoX介绍

暂无

代码示例

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

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

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

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

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

public YoArtifactOval(String name, YoFramePoint3D center, YoDouble radius, Color color)
{
 this(name, center.getYoX(), center.getYoY(), radius, radius, color);
}

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

@Override
public YoVariable<?>[] getVariables()
{
 YoVariable<?>[] yoVariableList = new YoVariable<?>[3 * ccwOrderedYoFramePoints.length + 1];
 for (int i = 0; i < ccwOrderedYoFramePoints.length; i++)
 {
   yoVariableList[i * 3] = ccwOrderedYoFramePoints[i].getYoX();
   yoVariableList[i * 3 + 1] = ccwOrderedYoFramePoints[i].getYoY();
   yoVariableList[i * 3 + 2] = ccwOrderedYoFramePoints[i].getYoZ();
 }
 yoVariableList[ccwOrderedYoFramePoints.length * 3] = numberOfPoints;
 return yoVariableList;
}

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

@Override
public YoDouble[] getVariables()
{
 return new YoDouble[] {start.getYoX(), start.getYoY(), start.getYoZ(), end.getYoX(), end.getYoY(), end.getYoZ()};
}

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

public YoVariable<?>[] getVariables()
{
 YoVariable<?>[] vars = new YoVariable[9];
 int i = 0;
 vars[i++] = pointOne.getYoX();
 vars[i++] = pointOne.getYoY();
 vars[i++] = pointOne.getYoZ();
 vars[i++] = pointTwo.getYoX();
 vars[i++] = pointTwo.getYoY();
 vars[i++] = pointTwo.getYoZ();
 vars[i++] = pointThree.getYoX();
 vars[i++] = pointThree.getYoY();
 vars[i++] = pointThree.getYoZ();
 return vars;
}

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

public YoGraphicLineSegment(String name, YoFramePoint3D startPoint, YoFramePoint3D endPoint, double scale, AppearanceDefinition appearance,
              boolean drawArrowhead)
{
 this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), endPoint.getYoX(), endPoint.getYoY(), endPoint.getYoZ(), scale, appearance,
    drawArrowhead);
 if (!startPoint.getReferenceFrame().isWorldFrame() || !endPoint.getReferenceFrame().isWorldFrame())
 {
   System.err.println("Warning: Should be in a World Frame to create a YoGraphicLineSegment. startPoint = " + startPoint + ", endPoint = " + endPoint);
 }
}

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

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

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

@Override
public YoVariable<?>[] getVariables()
{
 return new YoDouble[] {base.getYoX(), base.getYoY(), base.getYoZ(), vector.getYoX(), vector.getYoY(), vector.getYoZ()};
}

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

@Override
public YoDouble[] getVariables()
{
 return new YoDouble[] {base.getYoX(), base.getYoY(), base.getYoZ(), vector.getYoX(), vector.getYoY(), vector.getYoZ()};
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

private void setupEvolution(SimulationConstructionSet scs, YoFramePoint3D pointToControl)
{
 MidiSliderBoard evolution = new MidiSliderBoard(scs);
 double min = 0.0;
 double max = 1.0;
 evolution.setSlider(1, pointToControl.getYoX(), min, max, 1.0);
 evolution.setSlider(2, pointToControl.getYoY(), min, max, 1.0);
 evolution.setSlider(3, pointToControl.getYoZ(), min, max, 1.0);
}

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

public YoGraphicCylinder(String name, YoFramePoint3D startPoint, YoFrameVector3D frameVector, AppearanceDefinition appearance, double lineThickness)
{
 this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), frameVector.getYoX(), frameVector.getYoY(), frameVector.getYoZ(), appearance,
    lineThickness);
 if (!startPoint.getReferenceFrame().isWorldFrame() || !frameVector.getReferenceFrame().isWorldFrame())
 {
   System.err.println("Warning: Should be in a World Frame to create a YoGraphicCylinder. startPoint = " + startPoint + ", frameVector = " + frameVector);
 }
}

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

public YoGraphicVector(String name, YoFramePoint3D startPoint, YoFrameVector3D frameVector, double scale, AppearanceDefinition appearance,
           boolean drawArrowhead)
{
 this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), frameVector.getYoX(), frameVector.getYoY(), frameVector.getYoZ(), scale,
    appearance, drawArrowhead);
 if (!startPoint.getReferenceFrame().isWorldFrame() || !frameVector.getReferenceFrame().isWorldFrame())
 {
   System.err.println("Warning: Should be in a World Frame to create a YoGraphicVector. startPoint = " + startPoint + ", frameVector = " + frameVector);
 }
}

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

private void setupSlidersForSupportBaseControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlPoints.length; i++)
 {
   YoFramePoint3D baseControlPoint = baseControlPoints[i];
   sliderBoard.setSlider(sliderChannel++, baseControlPoint.getYoX(), baseControlPoint.getX() - 2, baseControlPoint.getX() + 2);
   sliderBoard.setSlider(sliderChannel++, baseControlPoint.getYoY(), baseControlPoint.getY() - 2, baseControlPoint.getY() + 2);
 }
}

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

private void setupSlidersForSupportBaseTargetControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlTargetPoints.length; i++)
 {
   YoFramePoint3D baseControlTargetPoint = baseControlTargetPoints[i];
   sliderBoard.setSlider(sliderChannel++, baseControlTargetPoint.getYoX(), baseControlTargetPoint.getX() - 2, baseControlTargetPoint.getX() + 2);
   sliderBoard.setSlider(sliderChannel++, baseControlTargetPoint.getYoY(), baseControlTargetPoint.getY() - 2, baseControlTargetPoint.getY() + 2);
 }
}

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

public static BacklashCompensatingVelocityYoFrameVector createBacklashCompensatingVelocityYoFrameVector(String namePrefix, String nameSuffix, YoDouble alpha, double dt, YoDouble slopTime,
    YoVariableRegistry registry, YoFramePoint3D yoFramePointToDifferentiate)
{
 BacklashCompensatingVelocityYoVariable xDot = new BacklashCompensatingVelocityYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), "", alpha, yoFramePointToDifferentiate.getYoX(), dt, slopTime,
                    registry);
 BacklashCompensatingVelocityYoVariable yDot = new BacklashCompensatingVelocityYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), "", alpha, yoFramePointToDifferentiate.getYoY(), dt, slopTime, 
                    registry);
 BacklashCompensatingVelocityYoVariable zDot = new BacklashCompensatingVelocityYoVariable(YoFrameVariableNameTools.createZName(namePrefix, nameSuffix), "", alpha, yoFramePointToDifferentiate.getYoZ(), dt, slopTime,
                    registry);
 BacklashCompensatingVelocityYoFrameVector ret = new BacklashCompensatingVelocityYoFrameVector(xDot, yDot, zDot, registry, yoFramePointToDifferentiate);
 return ret;
}

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

public static TimestampedVelocityYoFrameVector createFilteredVelocityYoFrameVector(String namePrefix, String nameSuffix, YoDouble timestamp,
    double dt, YoVariableRegistry registry, YoFramePoint3D yoFramePointToDifferentiate, double epsilonChange)
{
 TimestampedVelocityYoVariable xDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoX(),
                     timestamp, registry, epsilonChange);
 TimestampedVelocityYoVariable yDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoY(),
                     timestamp, registry, epsilonChange);
 TimestampedVelocityYoVariable zDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createZName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoZ(),
                     timestamp, registry, epsilonChange);
 TimestampedVelocityYoFrameVector ret = new TimestampedVelocityYoFrameVector(xDot, yDot, zDot, yoFramePointToDifferentiate.getReferenceFrame());
 return ret;
}

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

@Override
public Artifact createArtifact()
{
 MutableColor color3f = appearance.getColor();
 YoDouble endPointX = new YoDouble(getName() + "ArtifactEndPointX", base.getYoX().getYoVariableRegistry());
 YoDouble endPointY = new YoDouble(getName() + "ArtifactEndPointY", base.getYoY().getYoVariableRegistry());
 base.getYoX().addVariableChangedListener(v -> endPointX.set(base.getX() + vector.getX()));
 base.getYoY().addVariableChangedListener(v -> endPointY.set(base.getY() + vector.getY()));
 vector.getYoX().addVariableChangedListener(v -> endPointX.set(base.getX() + vector.getX()));
 vector.getYoY().addVariableChangedListener(v -> endPointY.set(base.getY() + vector.getY()));
 return new YoArtifactLineSegment2d(getName(),
                   new YoFrameLineSegment2D(base.getYoX(), base.getYoY(), endPointX, endPointY, ReferenceFrame.getWorldFrame()),
                   color3f.get());
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

@Override
public String getYoVariableOrder()
{
 String variableOrder = force.getYoX().getName() + "," + force.getYoY().getName() + "," + force.getYoZ().getName() + "," + position.getYoX().getName() + "," + position.getYoY().getName() + ","
             + position.getYoZ().getName() + "," + groundContactPoint.getYoFootSwitch().getName();
 return variableOrder;
}

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

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