gpt4 book ai didi

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

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

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

YoFrameVectorInMultipleFrames.setToZero介绍

暂无

代码示例

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

private void reset()
{
 currentTime.set(0.0);
 currentPosition.set(initialPosition);
 currentVelocity.setToZero();
 currentAcceleration.setToZero();
 currentOrientation.set(initialOrientation);
 currentAngularVelocity.setToZero();
 currentAngularAcceleration.setToZero();
}

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

/**
* Change the current reference frame and set to zero the coordinates (different from changeFrame() ).
* @return the previous current reference frame.
*/
@Override
public ReferenceFrame switchCurrentReferenceFrame(ReferenceFrame referenceFrame)
{
 ReferenceFrame previousReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
 setToZero();
 return previousReferenceFrame;
}

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

/**
* Change the current reference frame and set to zero the coordinates (different from changeFrame() ).
* @return the previous current reference frame.
*/
@Override
public ReferenceFrame switchCurrentReferenceFrame(ReferenceFrame referenceFrame)
{
 ReferenceFrame previousReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
 setToZero();
 return previousReferenceFrame;
}

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

public void setInitialPoseWithoutInitialVelocity(FramePoint initialPosition, FrameOrientation initialOrientation)
{
 this.initialPosition.set(initialPosition);
 this.initialVelocity.setToZero();
 this.initialOrientation.set(initialOrientation);
 this.initialAngularVelocity.setToZero();
}

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

public void setInitialPoseWithoutInitialVelocity(FramePose initialPose)
{
 initialPose.getPoseIncludingFrame(tempPosition, tempOrientation);
 this.initialPosition.set(tempPosition);
 this.initialVelocity.setToZero();
 ;
 this.initialOrientation.set(tempOrientation);
 this.initialAngularVelocity.setToZero();
}

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

public void setFinalPoseWithoutFinalVelocity(FramePoint finalPosition, FrameOrientation finalOrientation)
{
 this.finalPosition.set(finalPosition);
 this.finalOrientation.set(finalOrientation);
 finalPositionForViz.setAndMatchFrame(finalPosition);
 finalOrientationForViz.setAndMatchFrame(finalOrientation);
 this.finalVelocity.setToZero();
 this.finalAngularVelocity.setToZero();
}

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

private void reset()
{
 currentTime.set(0.0);
 currentPosition.set(initialPosition);
 currentVelocity.set(initialVelocity);
 currentAcceleration.setToZero();
 currentOrientation.set(initialOrientation);
 currentAngularVelocity.set(initialAngularVelocity);
 currentAngularAcceleration.setToZero();
}

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

currentVelocity.setToZero();
currentAcceleration.setToZero();
currentAngularVelocity.setToZero();
currentAngularAcceleration.setToZero();

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

public void initialize()
{
 tangentialPlane.update();
 currentTrajectoryFrame = initialPosition.getReferenceFrame();
 changeFrame(tangentialPlane, false);
 currentTime.set(0.0);
 MathTools.checkIfInRange(trajectoryTime.getDoubleValue(), 0.0, Double.POSITIVE_INFINITY);
 double tIntermediate = leaveTime.getDoubleValue();
 xyPolynomial.setCubic(tIntermediate, trajectoryTime.getDoubleValue(), 0.0, 0.0, 1.0, 0.0);
 double z0 = initialPosition.getZ();
 double zIntermediate = initialPosition.getZ() + leaveDistance.getDoubleValue();
 double zf = finalPosition.getZ();
 zPolynomial.setSexticUsingWaypoint(0.0, tIntermediate, trajectoryTime.getDoubleValue(), z0, 0.0, 0.0, zIntermediate, zf, 0.0, 0.0);
 currentPosition.set(initialPosition);
 currentVelocity.setToZero();
 currentAcceleration.setToZero();
 changeFrame(currentTrajectoryFrame, false);
 if (visualize)
   visualizeTrajectory();
}

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

@Override
public void initialize()
{
 tangentialPlane.update();
 currentTrajectoryFrame = initialPosition.getReferenceFrame();
 changeFrame(tangentialPlane, false);
 currentTime.set(0.0);
 MathTools.checkIfInRange(trajectoryTime.getDoubleValue(), 0.0, Double.POSITIVE_INFINITY);
 double tIntermediate = trajectoryTime.getDoubleValue() - approachTime.getDoubleValue();
 xyPolynomial.setCubic(0.0, tIntermediate, 0.0, 0.0, 1.0, 0.0);
 double z0 = initialPosition.getZ();
 double zIntermediate = finalPosition.getZ() + approachDistance.getDoubleValue();
 double zf = finalPosition.getZ();
 zPolynomial.setSexticUsingWaypoint(0.0, tIntermediate, trajectoryTime.getDoubleValue(), z0, 0.0, 0.0, zIntermediate, zf, 0.0, 0.0);
 currentPosition.set(initialPosition);
 currentVelocity.setToZero();
 currentAcceleration.setToZero();
 changeFrame(currentTrajectoryFrame, false);
 if (visualize)
   visualizeTrajectory();
}

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

currentVelocity.setToZero();
currentAcceleration.setToZero();

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