gpt4 book ai didi

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

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

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

YoFramePoint3D.getYoZ介绍

暂无

代码示例

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

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

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

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

代码示例来源: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-robotics-toolkit

public static YoVariableTestGoal boundingBox(YoFramePoint3D yoFramePoint, Point3DReadOnly boxCenter, double boxEpsilon)
  {
   YoVariableTestGoal goalX = YoVariableTestGoal.doubleWithinEpsilon(yoFramePoint.getYoX(), boxCenter.getX(), boxEpsilon);
   YoVariableTestGoal goalY = YoVariableTestGoal.doubleWithinEpsilon(yoFramePoint.getYoY(), boxCenter.getY(), boxEpsilon);
   YoVariableTestGoal goalZ = YoVariableTestGoal.doubleWithinEpsilon(yoFramePoint.getYoZ(), boxCenter.getZ(), boxEpsilon);
   
   return new YoVariableTestGoal(yoFramePoint.getYoX(), yoFramePoint.getYoY(), yoFramePoint.getYoZ())
   {
     @Override
     public boolean currentlyMeetsGoal()
     {
      return goalX.currentlyMeetsGoal() && goalY.currentlyMeetsGoal() && goalZ.currentlyMeetsGoal();
     }

     @Override
     public String toString()
     {
      return "\n" + goalX.toString() + "\n" + goalY.toString() + "\n" + goalZ.toString();
     }
   };
  }
}

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

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

public YoVariable<?>[] getVariables()
{
 YoVariable<?>[] vars = new YoVariable[isUsingYawPitchRoll() ? 6 : 7];
 int i = 0;
 vars[i++] = yoFramePoint.getYoX();
 vars[i++] = yoFramePoint.getYoY();
 vars[i++] = yoFramePoint.getYoZ();
 if (isUsingYawPitchRoll())
 {
   vars[i++] = yoFrameYawPitchRoll.getYaw();
   vars[i++] = yoFrameYawPitchRoll.getPitch();
   vars[i++] = yoFrameYawPitchRoll.getRoll();
 }
 else
 {
   vars[i++] = yoFrameQuaternion.getYoQx();
   vars[i++] = yoFrameQuaternion.getYoQy();
   vars[i++] = yoFrameQuaternion.getYoQz();
   vars[i++] = yoFrameQuaternion.getYoQs();
 }
 return vars;
}

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

@Override
public YoDouble[] getVariables()
{
 YoDouble[] vars = new YoDouble[isUsingYawPitchRoll() ? 6 : 7];
 int i = 0;
 vars[i++] = position.getYoX();
 vars[i++] = position.getYoY();
 vars[i++] = position.getYoZ();
 if (isUsingYawPitchRoll())
 {
   vars[i++] = yawPitchRoll.getYaw();
   vars[i++] = yawPitchRoll.getPitch();
   vars[i++] = yawPitchRoll.getRoll();
 }
 else
 {
   vars[i++] = quaternion.getYoQx();
   vars[i++] = quaternion.getYoQy();
   vars[i++] = quaternion.getYoQz();
   vars[i++] = quaternion.getYoQs();
 }
 return vars;
}

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

xPosition = dataBuffer.getEntry(yoPosition.getYoX()).getData();
yPosition = dataBuffer.getEntry(yoPosition.getYoY()).getData();
zPosition = dataBuffer.getEntry(yoPosition.getYoZ()).getData();

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