gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 03:46:49 27 4
gpt4 key购买 nike

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

YoFrameVector2D.<init>介绍

[英]Creates a new YoFrameVector2D.
[中]创建新的YoFrameVector2D。

代码示例

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

/**
* Creates a new {@code YoFrameLine2D}.
*
* @param namePrefix a unique name string to use as the prefix for child variable names.
* @param nameSuffix a string to use as the suffix for child variable names.
* @param referenceFrame the reference frame for this line.
* @param registry the registry to register child variables to.
*/
public YoFrameLine2D(String namePrefix, String nameSuffix, ReferenceFrame referenceFrame, YoVariableRegistry registry)
{
 point = new YoFramePoint2D(namePrefix, nameSuffix, referenceFrame, registry);
 direction = new YoFrameVector2D(namePrefix, nameSuffix, referenceFrame, registry);
}

代码示例来源: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 pointX the variable to use for the x-coordinate of this line point.
* @param pointY the variable to use for the y-coordinate of this line point.
* @param directionX the variable to use for the x-component of this line direction.
* @param directionY the variable to use for the x-component of this line direction.
* @param referenceFrame the reference frame for this line.
*/
public YoFrameLine2D(YoDouble pointX, YoDouble pointY, YoDouble directionX, YoDouble directionY, ReferenceFrame referenceFrame)
{
 point = new YoFramePoint2D(pointX, pointY, referenceFrame);
 direction = new YoFrameVector2D(directionX, directionY, referenceFrame);
}

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

public FilteredVelocityYoFrameVector2d(String namePrefix, String nameSuffix, DoubleProvider alpha, double dt, YoVariableRegistry registry,
                   ReferenceFrame referenceFrame)
{
 super(namePrefix, nameSuffix, referenceFrame, registry);
 this.alphaProvider = alpha;
 this.dt = dt;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 currentPosition = null;
 lastPosition = new YoFrameVector2D(namePrefix + "_lastPosition", nameSuffix, getReferenceFrame(), registry);
 reset();
}

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

private YoArtifactOval(String name, YoDouble centerX, YoDouble centerY, YoDouble radiusX, YoDouble radiusY, Color color)
{
 this(name, new YoFramePoint2D(centerX, centerY, ReferenceFrame.getWorldFrame()), new YoFrameVector2D(radiusX, radiusY, ReferenceFrame.getWorldFrame()),
    color);
}

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

public FilteredVelocityYoFrameVector2d(String namePrefix, String nameSuffix, DoubleProvider alpha, double dt, YoVariableRegistry registry,
                   FrameTuple2DReadOnly frameTuple2DToDifferentiate)
{
 super(namePrefix, nameSuffix, frameTuple2DToDifferentiate.getReferenceFrame(), registry);
 this.alphaProvider = alpha;
 this.dt = dt;
 hasBeenCalled = new YoBoolean(namePrefix + nameSuffix + "HasBeenCalled", registry);
 currentPosition = frameTuple2DToDifferentiate;
 lastPosition = new YoFrameVector2D(namePrefix + "_lastPosition", nameSuffix, getReferenceFrame(), registry);
 reset();
}

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

/**
* Perturbs the robot along the x or y axis after a certain amount of time after the start of the simulation
* @param perturbable 
* @param time
* @param timeToDoPerturbance simulation time at which the perturbance is applied.
* @param yoGraphicsListRegistry
* @param name
*/
public TimeBasedPerturbance(ForcePerturbable perturbable, YoDouble time, double timeToDoPerturbance, YoGraphicsListRegistry yoGraphicsListRegistry, String name)
{
 this.perturbable = perturbable;
 this.name = name;
 
 this.perturbanceForce = new YoFrameVector3D("currentDisturbanceForce", "", ReferenceFrame.getWorldFrame(), registry);
 this.perturbanceUnitVector = new YoFrameVector2D("kDirectionedExtForce", "", ReferenceFrame.getWorldFrame(), registry);
 this.timeToDoPerturbance.set(timeToDoPerturbance);
 this.time = time;
 
 populateDynamicsGraphicObjects(yoGraphicsListRegistry);
 setPerturbanceDirection(0.0, 1.0);
}

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

public BipedalStepAdjustmentCostCalculator(YoVariableRegistry parentRegistry, YoGraphicsListRegistry graphicsRegistry)
{
 String prefix = "StepAdjustment";
 forwardCostVector = new YoFrameVector2D(prefix + "ForwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 backwardCostVector = new YoFrameVector2D(prefix + "BackwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 inwardCostVector = new YoFrameVector2D(prefix + "InwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 outwardCostVector = new YoFrameVector2D(prefix + "OutwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 upwardCostVector = new YoFrameVector3D(prefix + "UpwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 downwardVector = new YoFrameVector3D(prefix + "DownwardCostVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 forwardCostScalar = new YoDouble(prefix + "ForwardCostScalar", parentRegistry);
 backwardCostScalar = new YoDouble(prefix + "BackwardCostScalar", parentRegistry);
 inwardCostScalar = new YoDouble(prefix + "InwardCostScalar", parentRegistry);
 outwardCostScalar = new YoDouble(prefix + "OutwardCostScalar", parentRegistry);
 upwardCostScalar = new YoDouble(prefix + "UpwardCostScalar", parentRegistry);
 downwardCostScalar = new YoDouble(prefix + "DownwardCostScalar", parentRegistry);
 stancePitchDownwardCostScalar = new YoDouble(prefix + "StancePitchDownwardCostScalar", parentRegistry);
 angularCostScalar = new YoDouble(prefix + "AngularCostScalar", parentRegistry);
 negativeFootholdLinearCostScalar = new YoDouble(prefix + "NegativeFootholdLinearCostScalar", parentRegistry);
 footstepBaseCost = new YoDouble(prefix + "FootstepBaseCost", parentRegistry);
 idealToCandidateVector = new YoFrameVector3D(prefix + "IdealToCandidateVector", ReferenceFrame.getWorldFrame(), parentRegistry);
 idealToCandidateOrientation = new YoFrameYawPitchRoll(prefix + "IdealToCandidateOrientation", ReferenceFrame.getWorldFrame(), parentRegistry);
 tempFrameVectorForDot = new FrameVector3D();
 setDefaultValues();
}

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

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

YoFrameVector2D radii = new YoFrameVector2D("radii", ReferenceFrame.getWorldFrame(), registry);
center.set(-1.0, -1.0);
radii.set(1.0, 0.7);

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

doPelvisAndChestYaw.set(true);
pelvisShiftScaleFactor = new YoFrameVector2D("DiagnosticPelvisShiftScaleFactor", null, registry);
pelvisShiftScaleFactor.set(0.4, 0.7);

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