本文整理了Java中us.ihmc.robotics.math.frames.YoFrameVectorInMultipleFrames.set()
方法的一些代码示例,展示了YoFrameVectorInMultipleFrames.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameVectorInMultipleFrames.set()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoFrameVectorInMultipleFrames
类名称:YoFrameVectorInMultipleFrames
方法名:set
暂无
代码示例来源: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
public void setInitialPoseWithInitialVelocity(FramePoint initialPosition, FrameVector initialVelocity, FrameOrientation initialOrientation,
FrameVector initialAngularVelocity)
{
this.initialPosition.set(initialPosition);
this.initialVelocity.set(initialVelocity);
this.initialOrientation.set(initialOrientation);
this.initialAngularVelocity.set(initialAngularVelocity);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setInitialPoseWithInitialVelocity(FramePose initialPose, FrameVector initialVelocity, FrameVector initialAngularVelocity)
{
initialPose.getPoseIncludingFrame(tempPosition, tempOrientation);
this.initialPosition.set(tempPosition);
this.initialVelocity.set(initialVelocity);
this.initialOrientation.set(tempOrientation);
this.initialAngularVelocity.set(initialAngularVelocity);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void setIncludingFrame(FrameTuple3DReadOnly frameTuple)
{
multipleFramesHelper.switchCurrentReferenceFrame(frameTuple.getReferenceFrame());
set(frameTuple);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void setIncludingFrame(FrameTuple<?, ?> frameTuple)
{
multipleFramesHelper.switchCurrentReferenceFrame(frameTuple.getReferenceFrame());
set(frameTuple);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void changeFrame(ReferenceFrame desiredFrame)
{
vector.set(this);
ReferenceFrame currentReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(desiredFrame);
frameVector.setIncludingFrame(currentReferenceFrame, vector);
frameVector.changeFrame(desiredFrame);
vector.set(frameVector);
set(vector);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void changeFrame(ReferenceFrame desiredFrame)
{
get(vector);
ReferenceFrame currentReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(desiredFrame);
frameVector.setIncludingFrame(currentReferenceFrame, vector);
frameVector.changeFrame(desiredFrame);
frameVector.get(vector);
set(vector);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setInitialClearance(FrameVector initialDirection, double leaveDistance)
{
this.initialDirection.set(initialDirection);
this.initialDirection.normalize();
this.initialDirection.get(tempVector);
GeometryTools.getAxisAngleFromZUpToVector(tempVector, axisAngleToWorld);
rotationPlane.setIncludingFrame(this.initialDirection.getReferenceFrame(), axisAngleToWorld);
this.leaveDistance.set(leaveDistance);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setFinalApproach(FrameVector finalDirection, double approachDistance)
{
this.finalDirection.set(finalDirection);
this.finalDirection.normalize();
this.finalDirection.get(tempVector);
tempVector.negate();
GeometryTools.getAxisAngleFromZUpToVector(tempVector, axisAngleToWorld);
rotationPlane.setIncludingFrame(this.finalDirection.getReferenceFrame(), axisAngleToWorld);
this.approachDistance.set(approachDistance);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setInitialLeadOut(FramePoint initialPosition, FrameVector initialDirection, double leaveDistance)
{
this.initialPosition.set(initialPosition);
this.initialDirection.set(initialDirection);
this.initialDirection.normalize();
this.initialDirection.get(tempVector);
GeometryTools.getAxisAngleFromZUpToVector(tempVector, tempAxisAngle);
initialDistortionPose.setToZero(this.initialPosition.getReferenceFrame());
initialDistortionPose.setPosition(initialPosition);
initialDistortionPose.setOrientation(tempAxisAngle);
this.leaveDistance.set(leaveDistance);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setFinalLeadIn(FramePoint finalPosition, FrameVector finalDirection, double approachDistance)
{
this.finalPosition.set(finalPosition);
this.finalDirection.set(finalDirection);
this.finalDirection.normalize();
this.finalDirection.get(tempVector);
tempVector.negate();
GeometryTools.getAxisAngleFromZUpToVector(tempVector, tempAxisAngle);
finalDistortionPose.setToZero(this.finalPosition.getReferenceFrame());
finalDistortionPose.setPosition(finalPosition);
finalDistortionPose.setOrientation(tempAxisAngle);
this.approachDistance.set(approachDistance);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
currentVelocity.set(xPolynomial.getVelocity(), yPolynomial.getVelocity(), zPolynomial.getVelocity());
currentAcceleration.set(xPolynomial.getAcceleration(), yPolynomial.getAcceleration(), zPolynomial.getAcceleration());
currentAngularVelocity.set(tempCurrentAngularVelocity);
currentVelocity.set(finalVelocity);
currentAcceleration.set(0.0, 0.0, 0.0);
currentAngularVelocity.set(finalAngularVelocity);
currentAcceleration.set(0.0, 0.0, 0.0);
内容来源于网络,如有侵权,请联系作者删除!