gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 15:10:40 29 4
gpt4 key购买 nike

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

YoFrameVector3D.getYoY介绍

暂无

代码示例

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

private YoGraphicLineSegment(String name, YoDouble startX, YoDouble startY, YoDouble startZ, YoDouble endX, YoDouble endY, YoDouble endZ,
              YoFrameVector3D yoFrameVector, double scaleFactor, AppearanceDefinition appearance, boolean drawArrowhead)
{
 super(name, startX, startY, startZ, yoFrameVector.getYoX(), yoFrameVector.getYoY(), yoFrameVector.getYoZ(), scaleFactor, appearance, drawArrowhead);
 vector = yoFrameVector;
 start = new YoFramePoint3D(startX, startY, startZ, ReferenceFrame.getWorldFrame());
 end = new YoFramePoint3D(endX, endY, endZ, ReferenceFrame.getWorldFrame());
}

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

public static AverageSampleYoFrameVector createAverageSampleYoFrameVector(String namePrefix, String nameSuffix, YoVariableRegistry registry, YoFrameVector3D dataSource, ReferenceFrame referenceFrame)
{
 AverageSampleYoDouble x = new AverageSampleYoDouble(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), dataSource.getYoX(), registry);
 AverageSampleYoDouble y = new AverageSampleYoDouble(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), dataSource.getYoY(), registry);
 AverageSampleYoDouble z = new AverageSampleYoDouble(YoFrameVariableNameTools.createZName(namePrefix, nameSuffix), dataSource.getYoZ(), registry);
 
 AverageSampleYoFrameVector ret = new AverageSampleYoFrameVector(x, y, z, referenceFrame);
 
 return ret;
}

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

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

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

public static SecondOrderFilteredYoFrameVector createSecondOrderFilteredYoFrameVector(String namePrefix, String nameSuffix, YoVariableRegistry registry,
   double dt, SecondOrderFilteredYoVariableParameters parameters, YoFrameVector3D unfilteredVector)
{
 SecondOrderFilteredYoVariable x, y, z;
 x = new SecondOrderFilteredYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), registry, dt, parameters, unfilteredVector.getYoX());
 y = new SecondOrderFilteredYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), registry, dt, parameters, unfilteredVector.getYoY());
 z = new SecondOrderFilteredYoVariable(YoFrameVariableNameTools.createZName(namePrefix, nameSuffix), registry, dt, parameters, unfilteredVector.getYoZ());
 return new SecondOrderFilteredYoFrameVector(x, y, z, unfilteredVector.getReferenceFrame());
}

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

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

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

public static SimpleMovingAverageFilteredYoFrameVector createSimpleMovingAverageFilteredYoFrameVector(String namePrefix, String nameSuffix, int windowSize,
   YoFrameVector3D unfilteredVector, YoVariableRegistry registry)
{
 String xName = createXName(namePrefix, nameSuffix);
 String yName = createYName(namePrefix, nameSuffix);
 String zName = createZName(namePrefix, nameSuffix);
 SimpleMovingAverageFilteredYoVariable x = new SimpleMovingAverageFilteredYoVariable(xName, windowSize, unfilteredVector.getYoX(), registry);
 SimpleMovingAverageFilteredYoVariable y = new SimpleMovingAverageFilteredYoVariable(yName, windowSize, unfilteredVector.getYoY(), registry);
 SimpleMovingAverageFilteredYoVariable z = new SimpleMovingAverageFilteredYoVariable(zName, windowSize, unfilteredVector.getYoZ(), registry);
 return new SimpleMovingAverageFilteredYoFrameVector(x, y, z, unfilteredVector.getReferenceFrame());
}

代码示例来源: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 YoFrameVector3D 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 YoFrameVector3D(x, y, z, getReferenceFrame());
  }
}

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

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