gpt4 book ai didi

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

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

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

YoFramePoint.setX介绍

暂无

代码示例

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

public void setX(double x)
{
 position.setX(x);
}

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

public void setX(double x)
{
 position.setX(x);
}

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

private void updateFocus(FramePoint point)
{
 double x = point.getX();
 double y = point.getY();
 if (firstFocus)
 {
   focusXmin = x;
   focusYmin = y;
   focusXmax = x;
   focusYmax = y;
   firstFocus = false;
 }
 else
 {
   focusXmin = Math.min(focusXmin, x);
   focusYmin = Math.min(focusYmin, y);
   focusXmax = Math.max(focusXmax, x);
   focusYmax = Math.max(focusYmax, y);
 }
 focusX = (focusXmax + focusXmin) / 2.0;
 focusY = (focusYmax + focusYmin) / 2.0;
 if (textPoint != null)
 {
   textPoint.setX(focusX);
   textPoint.setY(focusYmax + 0.2);
 }
}

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

public void setDesiredCapturePointState(FramePoint2d currentDesiredCapturePointPosition, FrameVector2d currentDesiredCapturePointVelocity)
{
 // Do not set the Z to zero!
 desiredCapturePointPosition.checkReferenceFrameMatch(currentDesiredCapturePointPosition);
 desiredCapturePointPosition.setX(currentDesiredCapturePointPosition.getX());
 desiredCapturePointPosition.setY(currentDesiredCapturePointPosition.getY());
 desiredCapturePointVelocity.checkReferenceFrameMatch(currentDesiredCapturePointVelocity);
 desiredCapturePointVelocity.setX(currentDesiredCapturePointVelocity.getX());
 desiredCapturePointVelocity.setY(currentDesiredCapturePointVelocity.getY());
}

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

public void setDesiredCapturePointState(YoFramePoint2d currentDesiredCapturePointPosition, YoFrameVector2d currentDesiredCapturePointVelocity)
{
 // Do not set the Z to zero!
 desiredCapturePointPosition.checkReferenceFrameMatch(currentDesiredCapturePointPosition);
 desiredCapturePointPosition.setX(currentDesiredCapturePointPosition.getX());
 desiredCapturePointPosition.setY(currentDesiredCapturePointPosition.getY());
 desiredCapturePointVelocity.checkReferenceFrameMatch(currentDesiredCapturePointVelocity);
 desiredCapturePointVelocity.setX(currentDesiredCapturePointVelocity.getX());
 desiredCapturePointVelocity.setY(currentDesiredCapturePointVelocity.getY());
}

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

public void computePositionsForVis(double time)
{
 nominalTrajectoryGenerator.compute(time);
 xPolynomial.compute(time);
 yPolynomial.compute(time);
 nominalTrajectoryGenerator.getPosition(nominalTrajectoryPosition);
 nominalTrajectoryGenerator.getVelocity(nominalTrajectoryVelocity);
 nominalTrajectoryGenerator.getAcceleration(nominalTrajectoryAcceleration);
 desiredPosition.setX(xPolynomial.getPosition());
 desiredPosition.setY(yPolynomial.getPosition());
 desiredPosition.setZ(nominalTrajectoryPosition.getZ());
}

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

circleCenter.setX(centerOfInscribedCircle.getX());
circleCenter.setY(centerOfInscribedCircle.getY());
inscribedCircleRadius.set(radius);
  miniCircleCenter.setX(centerOfMiniCircle.getX());
  miniCircleCenter.setY(centerOfMiniCircle.getY());

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

public void computeWrenchFromRho(int startIndex, DenseMatrix64F allRobotRho)
{
 CommonOps.extract(allRobotRho, startIndex, startIndex + rhoSize, 0, 1, rhoMatrix, 0, 0);
 yoRho.set(rhoMatrix);
 if (yoPlaneContactState.inContact())
 {
   totalWrenchMatrix.zero();
   for (int rhoIndex = 0; rhoIndex < rhoSize; rhoIndex++)
   {
    double rho = rhoMatrix.get(rhoIndex, 0);
    CommonOps.extract(rhoJacobianMatrix, 0, SpatialForceVector.SIZE, rhoIndex, rhoIndex + 1, singleRhoWrenchMatrix, 0, 0);
    MatrixTools.addMatrixBlock(totalWrenchMatrix, 0, 0, singleRhoWrenchMatrix, 0, 0, SpatialForceVector.SIZE, 1, rho);
   }
   RigidBody rigidBody = yoPlaneContactState.getRigidBody();
   ReferenceFrame bodyFixedFrame = rigidBody.getBodyFixedFrame();
   wrenchFromRho.set(bodyFixedFrame, centerOfMassFrame, totalWrenchMatrix);
   CommonOps.mult(copJacobianMatrix, rhoMatrix, previousCoPMatrix);
   previousCoP.setX(previousCoPMatrix.get(0, 0));
   previousCoP.setY(previousCoPMatrix.get(1, 0));
 }
 else
 {
   wrenchFromRho.setToZero();
 }
}

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

public void compute(double time)
{
 timeIntoStep.set(time);
 nominalTrajectoryGenerator.compute(time);
 nominalTrajectoryGenerator.getLinearData(nominalTrajectoryPosition, nominalTrajectoryVelocity, nominalTrajectoryAcceleration);
 xPolynomial.compute(time);
 yPolynomial.compute(time);
 desiredPosition.setX(xPolynomial.getPosition());
 desiredPosition.setY(yPolynomial.getPosition());
 desiredPosition.setZ(nominalTrajectoryPosition.getZ());
 desiredVelocity.setX(xPolynomial.getVelocity());
 desiredVelocity.setY(yPolynomial.getVelocity());
 desiredVelocity.setZ(nominalTrajectoryVelocity.getZ());
 desiredAcceleration.setX(xPolynomial.getAcceleration());
 desiredAcceleration.setY(yPolynomial.getAcceleration());
 desiredAcceleration.setZ(nominalTrajectoryAcceleration.getZ());
}

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