gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 00:46:40 28 4
gpt4 key购买 nike

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

YoFramePoint.getX介绍

暂无

代码示例

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

public double getX()
{
 return getPosition().getX();
}

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

public double getX()
{
 return getPosition().getX();
}

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

public void getProjectedOntoXYPlane(YoFramePoint2d positionToPack)
{
 positionToPack.set(currentPosition.getX(), currentPosition.getY());
}

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

private void setupSlidersForSupportBaseTargetControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlTargetPoints.length; i++)
 {
   YoFramePoint 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/DarpaRoboticsChallenge

private void setupSlidersForSupportBaseControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlPoints.length; i++)
 {
   YoFramePoint 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/IHMCAvatarInterfaces

private void setupSlidersForSupportBaseControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlPoints.length; i++)
 {
   YoFramePoint 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/IHMCAvatarInterfaces

private void setupSlidersForSupportBaseTargetControl()
{
 int sliderChannel = 1;
 for (int i = 0; i < baseControlTargetPoints.length; i++)
 {
   YoFramePoint 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/IHMCRoboticsToolkit

@Override
protected void updateTransformToParent(RigidBodyTransform transformToParent)
{
 yoFramePose.getOrientation().getQuaternion(rotation);
 transformToParent.setRotation(rotation);
 YoFramePoint yoFramePoint = yoFramePose.getPosition();
 transformToParent.setTranslation(yoFramePoint.getX(), yoFramePoint.getY(), yoFramePoint.getZ());
}

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

@Override
protected void computeRotationTranslation(Transform3d transform3D)
{
 transform3D.setIdentity();
 translationVector.set(yoFramePoint.getX(), yoFramePoint.getY(), yoFramePoint.getZ());
 yoFrameOrientation.getEulerAngles(rotationEulerVector);
 transform3D.setRotationEulerAndZeroTranslation(rotationEulerVector);
 transform3D.setTranslation(translationVector);
 transform3D.setScale(scale);
}

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

private void initializePolynomials()
{
 xPolynomial.setInitialPositionVelocityZeroFinalHighOrderDerivatives(0.0, trajectoryTime.getDoubleValue(), initialPosition.getX(), initialVelocity.getX(), finalPosition.getX(), finalVelocity.getX());
 yPolynomial.setInitialPositionVelocityZeroFinalHighOrderDerivatives(0.0, trajectoryTime.getDoubleValue(), initialPosition.getY(), initialVelocity.getY(), finalPosition.getY(), finalVelocity.getY());
 zPolynomial.setInitialPositionVelocityZeroFinalHighOrderDerivatives(0.0, trajectoryTime.getDoubleValue(), initialPosition.getZ(), initialVelocity.getZ(), finalPosition.getZ(), finalVelocity.getZ());
}

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

@Override
public void initialize()
{
 currentTime.set(0.0);
 double tIntermediate = trajectoryTime.getDoubleValue() / 2.0;
 xPolynomial.setQuadraticWithFinalVelocityConstraint(0.0,trajectoryTime.getDoubleValue(), initialPosition.getX(), finalPosition.getX(), finalVelocity.getX());
 yPolynomial.setQuadraticWithFinalVelocityConstraint(0.0,trajectoryTime.getDoubleValue(), initialPosition.getY(), finalPosition.getY(), finalVelocity.getY());
 zPolynomial.setCubicWithIntermediatePositionAndFinalVelocityConstraint(0.0,  tIntermediate, trajectoryTime.getDoubleValue(), initialPosition.getZ(), intermediateZPosition.getDoubleValue(), finalPosition.getZ(), finalVelocity.getZ());
 currentPosition.set(initialPosition);
 currentAcceleration.setToZero();
}

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

public void set(YoFramePoint base, YoFrameVector vector)
{
 this.baseX.set(base.getX());
 this.baseY.set(base.getY());
 this.baseZ.set(base.getZ());
 this.x.set(vector.getX());
 this.y.set(vector.getY());
 this.z.set(vector.getZ());
}

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

endPose.setPosition(new FramePoint2d(worldFrame, targetLocation.getX(), targetLocation.getY()));
endPose.setOrientation(new FrameOrientation2d(worldFrame, targetOrientation.getYaw().getDoubleValue()));

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

desiredCoPMatrix.set(0, 0, desiredCoP.getX());
desiredCoPMatrix.set(1, 0, desiredCoP.getY());
desiredCoPWeightMatrix.set(0, 0, desiredCoPWeight.getX());

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