本文整理了Java中us.ihmc.euclid.referenceFrame.ReferenceFrame.isZupFrame
方法的一些代码示例,展示了ReferenceFrame.isZupFrame
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReferenceFrame.isZupFrame
方法的具体详情如下:
包路径:us.ihmc.euclid.referenceFrame.ReferenceFrame
类名称:ReferenceFrame
方法名:isZupFrame
[英]Field initialized at construction time that specifies if at all time the z-axis of this reference frame remains aligned with the z-axis of the root frame.
[中]在构造时初始化的字段,指定此参考帧的z轴是否始终与根帧的z轴对齐。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public TranslationReferenceFrame(String frameName, ReferenceFrame parentFrame)
{
super(frameName, parentFrame, false, parentFrame.isZupFrame());
originVector = new FrameVector3D(parentFrame);
}
代码示例来源:origin: us.ihmc/euclid-frame
/**
* Checks if this is a z-up frame, i.e. its z-axis is aligned with the root frame's z-axis.
*
* @throws RuntimeException if this is not a z-up frame.
*/
public void checkIsAZUpFrame() throws RuntimeException
{
checkIfRemoved();
if (!isZupFrame())
{
throw new RuntimeException("Frame " + this + " is not a z-up frame.");
}
}
代码示例来源:origin: us.ihmc/mecano
boolean isZUpFrame = parentFrame.isZupFrame() && transformToParent.isRotation2D();
boolean isFixedInParent = true;
MovingReferenceFrame newFrame = new MovingReferenceFrame(frameName, parentFrame, transformToParent, isZUpFrame, isFixedInParent)
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public MidFrameZUpFrame(String name, ReferenceFrame parentZUpFrame, ReferenceFrame frameOne, ReferenceFrame frameTwo)
{
super(name, parentZUpFrame, false, true);
if (!parentZUpFrame.isZupFrame())
{
throw new RuntimeException("!parentZUpFrame.isZupFrame()");
}
this.parentZUpFrame = parentZUpFrame;
this.frameOne = frameOne;
this.frameTwo = frameTwo;
originOneInParent = new FramePoint3D(frameOne);
originTwoInParent = new FramePoint3D(frameTwo);
vectorBetweenFrames = new FrameVector3D(parentZUpFrame);
}
代码示例来源:origin: us.ihmc/euclid-frame
/**
* Creates a reference frame with an immutable transform to its parent.
* <p>
* The {@code transformToParent} should describe the pose of the new frame expressed in its parent
* frame.
* </p>
*
* @param frameName the name of the new frame.
* @param parentFrame the parent frame of the new reference frame.
* @param transformToParent the transform that can be used to transform a geometry object the new
* frame to its parent frame. Not modified.
* @return the new reference frame.
*/
public static ReferenceFrame constructFrameWithUnchangingTransformToParent(String frameName, ReferenceFrame parentFrame,
RigidBodyTransform transformToParent)
{
boolean isZupFrame = parentFrame.isZupFrame() && transformToParent.isRotation2D();
boolean isAStationaryFrame = parentFrame.isAStationaryFrame();
ReferenceFrame ret = new ReferenceFrame(frameName, parentFrame, transformToParent, isAStationaryFrame, isZupFrame)
{
@Override
protected void updateTransformToParent(RigidBodyTransform transformToParent)
{
}
};
return ret;
}
内容来源于网络,如有侵权,请联系作者删除!