gpt4 book ai didi

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

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

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

YoFramePoint.set介绍

[英]Sets this point to the location of the origin of passed in referenceFrame.
[中]将该点设置为传入referenceFrame的原点位置。

代码示例

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

@Override
public void setPosition(Point3d position)
{
 this.position.set(position);
}

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

@Override
public void setPoint(Point3d point)
{
 this.set(point);
}

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

@Override
public void setPosition(Point3d position)
{
 this.position.set(position);
}

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

@Override
public void setPosition(Point3d position)
{
 this.position.set(position);
}

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

@Override
public void setPoint(PointInterface pointInterface)
{
 pointInterface.getPoint(tempPoint);
 this.set(tempPoint);
}

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

public void setDesiredCapturePointState(FramePoint currentDesiredCapturePointPosition, FrameVector currentDesiredCapturePointVelocity)
{
 desiredCapturePointPosition.set(currentDesiredCapturePointPosition);
 desiredCapturePointVelocity.set(currentDesiredCapturePointVelocity);
}

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

public void setDesiredCapturePointState(YoFramePoint currentDesiredCapturePointPosition, YoFrameVector currentDesiredCapturePointVelocity)
{
 desiredCapturePointPosition.set(currentDesiredCapturePointPosition);
 desiredCapturePointVelocity.set(currentDesiredCapturePointVelocity);
}

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

public void initializeCoMPositionToActual(FramePoint initialCoMPosition)
{
 initializeToActual = true;
 centerOfMassPosition.set(initialCoMPosition);
 yoCenterOfMassPosition.set(initialCoMPosition);
}

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

public void set(FramePoint framePoint, FrameOrientation frameOrientation)
{
 boolean notifyListeners = true;
 position.set(framePoint, notifyListeners);
 orientation.set(frameOrientation, notifyListeners);
}

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

public void setConstantPose(FramePoint constantPosition, FrameOrientation constantOrientation)
{
 this.position.set(position);
 this.orientation.set(orientation);
}

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

public void setTrajectoryParameters(double duration, FramePoint initialPosition, double intermediateZPosition, FramePoint finalPosition, FrameVector finalVelocity)
{
 trajectoryTime.set(duration);
 this.initialPosition.set(initialPosition);
 this.intermediateZPosition.set(intermediateZPosition);
 this.finalPosition.set(finalPosition);
 this.finalVelocity.set(finalVelocity);
}

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

public void setInitialPose(FramePose initialPose)
{
 initialPose.changeFrame(trajectoryFrame);
 initialPose.getPoseIncludingFrame(initialPosition, initialOrientation);
 yoInitialPosition.set(initialPosition);
 yoInitialOrientation.set(initialOrientation);
}

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

public void set(double time, Point3d position, Quat4d orientation, Vector3d linearVelocity, Vector3d angularVelocity)
{
 this.time.set(time);
 this.position.set(position);
 this.orientation.set(orientation);
 this.linearVelocity.set(linearVelocity);
 this.angularVelocity.set(angularVelocity);
}

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

public void set(double time, YoFramePoint position, YoFrameQuaternion orientation, YoFrameVector linearVelocity, YoFrameVector angularVelocity)
{
 this.time.set(time);
 this.position.set(position);
 this.orientation.set(orientation);
 this.linearVelocity.set(linearVelocity);
 this.angularVelocity.set(angularVelocity);
}

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

@Override
public void doControl()
{
 double mass = robot.computeCOMMomentum(tempCenterOfMassPoint, tempCenterOfMassVelocity, tempAngularMomentum);
 exactCenterOfMassPosition.set(tempCenterOfMassPoint);
 tempCenterOfMassVelocity.scale(1.0 / mass);
 exactCenterOfMassVelocity.set(tempCenterOfMassVelocity);
 
 exactCenterOfMassAcceleration.update();
}

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

public void initialize()
{
 time.set(0.0);
 FramePoint positionToPack = new FramePoint();
 positionProvider.getPosition(positionToPack);
 positionToPack.changeFrame(position.getReferenceFrame());
 position.set(positionToPack);
}

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

@Override
  public void update(double time)
  {
   comCalculator.compute();
   centerOfMass.set(comCalculator.getCenterOfMass());

   momentumCalculator.computeAndPack(momentum);
   momentum.getLinearPart(frameVector);
   linearMomentum.set(frameVector);
  }
}

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

public void solve(CoMHeightPartialDerivativesData coMHeightPartialDerivativesDataToPack, boolean isInDoubleSupport)
{
 getCenterOfMass2d(queryPoint, centerOfMassFrame);
 solutionPoint.set(queryPoint);
 solve(coMHeightPartialDerivativesDataToPack, solutionPoint, isInDoubleSupport);
 coMHeightPartialDerivativesDataToPack.getCoMHeight(tempFramePoint);
 desiredCoMPosition.set(queryPoint.getX(), queryPoint.getY(), tempFramePoint.getZ());
}

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

public void setConstantPose(FramePose constantPose)
{
 position.checkReferenceFrameMatch(constantPose);
 position.set(constantPose.getX(), constantPose.getY(), constantPose.getZ());
 orientation.set(constantPose.getYaw(), constantPose.getPitch(), constantPose.getRoll());
}

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

public void update()
{
 toolBody.getInertia().setMass(objectMass.getDoubleValue());
 temporaryPoint.setIncludingFrame(objectCenterOfMass.getFrameTuple());
 temporaryPoint.changeFrame(elevatorFrame);
 toolFrame.setPositionAndUpdate(temporaryPoint);
 // Visualization 
 toolFramePoint.setToZero(toolFrame);
 toolFramePoint.changeFrame(ReferenceFrame.getWorldFrame());
 objectCenterOfMassInWorld.set(toolFramePoint);
}

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