本文整理了Java中us.ihmc.robotics.math.frames.YoFrameQuaternionInMultipleFrames.set()
方法的一些代码示例,展示了YoFrameQuaternionInMultipleFrames.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameQuaternionInMultipleFrames.set()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoFrameQuaternionInMultipleFrames
类名称:YoFrameQuaternionInMultipleFrames
方法名:set
暂无
代码示例来源: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);
set(0.0, 0.0, 0.0);
return previousReferenceFrame;
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setInitialPose(FramePoint initialPosition, FrameOrientation initialOrientation)
{
this.initialPosition.set(initialPosition);
this.initialOrientation.set(initialOrientation);
initialOrientationForViz.setAndMatchFrame(initialOrientation);
}
代码示例来源: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 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 setFinalPose(FramePose finalPose)
{
finalPose.getPoseIncludingFrame(tempPosition, tempOrientation);
finalPosition.set(tempPosition);
finalOrientation.set(tempOrientation);
finalOrientationForViz.setAndMatchFrame(tempOrientation);
}
代码示例来源: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 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/IHMCRoboticsToolkit
@Override
public void changeFrame(ReferenceFrame desiredFrame)
{
get(quaternion);
ReferenceFrame currentReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(desiredFrame);
frameOrientation.setIncludingFrame(currentReferenceFrame, quaternion);
frameOrientation.changeFrame(desiredFrame);
frameOrientation.getQuaternion(quaternion);
set(quaternion);
}
代码示例来源: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/ihmc-robotics-toolkit
@Override
public void changeFrame(ReferenceFrame desiredFrame)
{
quaternion.set(this);
ReferenceFrame currentReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(desiredFrame);
frameOrientation.setIncludingFrame(currentReferenceFrame, quaternion);
frameOrientation.changeFrame(desiredFrame);
quaternion.set(frameOrientation);
set(quaternion);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void setFinalPose(FramePoint finalPosition, FrameOrientation finalOrientation)
{
this.finalPosition.set(finalPosition);
this.finalOrientation.set(finalOrientation);
finalOrientationForViz.setAndMatchFrame(finalOrientation);
tempPosition.setIncludingFrame(finalPosition);
tempOrientation.setIncludingFrame(finalOrientation);
finalOrientationForViz.setAndMatchFrame(tempOrientation);
}
代码示例来源: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/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 setInitialPose(FramePose initialPose)
{
initialPose.getPoseIncludingFrame(tempPosition, tempOrientation);
tempPosition.changeFrame(initialPosition.getReferenceFrame());
initialPosition.set(tempPosition);
tempOrientation.changeFrame(initialOrientation.getReferenceFrame());
initialOrientation.set(tempOrientation);
initialOrientationForViz.setAndMatchFrame(tempOrientation);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
currentAcceleration.setToZero();
currentOrientation.set(finalOrientation);
currentAngularVelocity.setToZero();
currentAngularAcceleration.setToZero();
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
currentOrientation.set(tempCurrentOrientation);
currentAcceleration.set(0.0, 0.0, 0.0);
currentOrientation.set(finalOrientation);
currentAngularVelocity.set(finalAngularVelocity);
currentAcceleration.set(0.0, 0.0, 0.0);
内容来源于网络,如有侵权,请联系作者删除!