本文整理了Java中us.ihmc.euclid.referenceFrame.ReferenceFrame.isAStationaryFrame
方法的一些代码示例,展示了ReferenceFrame.isAStationaryFrame
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReferenceFrame.isAStationaryFrame
方法的具体详情如下:
包路径:us.ihmc.euclid.referenceFrame.ReferenceFrame
类名称:ReferenceFrame
方法名:isAStationaryFrame
[英]Field initialized at construction time that specifies if this reference frame represents a stationary frame, i.e. a non-moving frame, with respect to the root reference frame.
[中]在构造时初始化的字段,指定该参考帧相对于根参考帧是否表示静止帧,即非移动帧。
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public PoseReferenceFrame(String frameName, ReferenceFrame parentFrame)
{
super(frameName, parentFrame, parentFrame.isAStationaryFrame(), false);
originPose = new FramePose3D(parentFrame);
}
代码示例来源:origin: us.ihmc/euclid-frame
/**
* Checks if this is a stationary frame, i.e. not moving with respect to the root frame.
*
* @throws RuntimeException if this is not a stationary frame.
*/
public void checkIsAStationaryFrame() throws RuntimeException
{
checkIfRemoved();
if (!isAStationaryFrame())
{
throw new RuntimeException("Frame " + this + " is not a stationary frame.");
}
}
代码示例来源:origin: us.ihmc/mecano
private MovingReferenceFrame(String frameName, ReferenceFrame parentFrame, RigidBodyTransform transformToParent, boolean isZUpFrame, boolean isFixedInParent)
{
super(frameName, parentFrame, transformToParent, parentFrame.isAStationaryFrame() && isFixedInParent, isZUpFrame);
this.isFixedInParent = isFixedInParent;
if (parentFrame instanceof MovingReferenceFrame)
{
parentMovingFrame = (MovingReferenceFrame) parentFrame;
parentMovingFrame.childrenMovingFrames.add(this);
}
else
{
parentMovingFrame = null;
if (!parentFrame.isAStationaryFrame())
throw unhandledReferenceFrameTypeException(parentFrame);
}
if (isFixedInParent)
twistRelativeToParent = null;
else
twistRelativeToParent = new Twist(this, parentFrame, this);
}
代码示例来源: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;
}
代码示例来源:origin: us.ihmc/mecano
if (base.isAStationaryFrame())
内容来源于网络,如有侵权,请联系作者删除!