本文整理了Java中us.ihmc.robotics.geometry.yoFrameObjects.YoFrameWaypoint
类的一些代码示例,展示了YoFrameWaypoint
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameWaypoint
类的具体详情如下:
包路径:us.ihmc.robotics.geometry.yoFrameObjects.YoFrameWaypoint
类名称:YoFrameWaypoint
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void set(Y other)
{
checkReferenceFrameMatch(other);
other.getIncludingFrame(frameWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void set(S simpleWaypoint)
{
frameWaypoint.setIncludingFrame(getReferenceFrame(), simpleWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final void applyTransform(RigidBodyTransform transform)
{
putYoValuesIntoFrameWaypoint();
frameWaypoint.applyTransform(transform);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void setIncludingFrame(Y other)
{
multipleFramesHelper.switchCurrentReferenceFrame(other.getReferenceFrame());
other.getIncludingFrame(frameWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final void changeFrame(ReferenceFrame referenceFrame)
{
putYoValuesIntoFrameWaypoint();
// this is in the correct frame already
if (referenceFrame == getReferenceFrame())
{
return;
}
getReferenceFrame().verifySameRoots(referenceFrame);
RigidBodyTransform referenceTf, desiredTf;
if ((referenceTf = getReferenceFrame().getTransformToRoot()) != null)
{
frameWaypoint.applyTransform(referenceTf);
}
if ((desiredTf = referenceFrame.getInverseTransformToRoot()) != null)
{
frameWaypoint.applyTransform(desiredTf);
}
getYoValuesFromFrameWaypoint();
multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean geometricallyEquals(Y other, double epsilon)
{
putYoValuesIntoFrameWaypoint();
other.putYoValuesIntoFrameWaypoint();
return frameWaypoint.geometricallyEquals(other.frameWaypoint, epsilon);
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void set(F frameWaypoint)
{
checkReferenceFrameMatch(frameWaypoint);
this.frameWaypoint.setIncludingFrame(frameWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void get(F frameWaypoint)
{
checkReferenceFrameMatch(frameWaypoint);
putYoValuesIntoFrameWaypoint();
frameWaypoint.set(this.frameWaypoint);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public final void setIncludingFrame(F frameTrajectoryPoint)
{
setTime(frameTrajectoryPoint);
super.setIncludingFrame(frameTrajectoryPoint);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final void set(F frameTrajectoryPoint)
{
setTime(frameTrajectoryPoint);
super.set(frameTrajectoryPoint);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToNaN(ReferenceFrame referenceFrame)
{
multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
frameWaypoint.setToNaN(referenceFrame);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final ReferenceFrame switchCurrentReferenceFrame(ReferenceFrame newCurrentReferenceFrame)
{
ReferenceFrame previousReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(newCurrentReferenceFrame);
setToZero();
return previousReferenceFrame;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public final boolean epsilonEquals(Y other, double epsilon)
{
if (!MathTools.epsilonEquals(getTime(), other.getTime(), epsilon))
return false;
return super.epsilonEquals(other, epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean geometricallyEquals(Y other, double epsilon)
{
if (!MathTools.epsilonEquals(getTime(), other.getTime(), epsilon))
return false;
return super.geometricallyEquals(other, epsilon);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void setIncludingFrame(Y other)
{
multipleFramesHelper.switchCurrentReferenceFrame(other.getReferenceFrame());
other.getIncludingFrame(frameWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public final void changeFrame(ReferenceFrame referenceFrame)
{
putYoValuesIntoFrameWaypoint();
// this is in the correct frame already
if (referenceFrame == getReferenceFrame())
{
return;
}
getReferenceFrame().verifySameRoots(referenceFrame);
RigidBodyTransform referenceTf, desiredTf;
if ((referenceTf = getReferenceFrame().getTransformToRoot()) != null)
{
frameWaypoint.applyTransform(referenceTf);
}
if ((desiredTf = referenceFrame.getTransformToRoot()) != null)
{
frameWaypoint.applyInverseTransform(desiredTf);
}
getYoValuesFromFrameWaypoint();
multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean epsilonEquals(Y other, double epsilon)
{
putYoValuesIntoFrameWaypoint();
other.putYoValuesIntoFrameWaypoint();
return frameWaypoint.epsilonEquals(other.frameWaypoint, epsilon);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void set(F frameWaypoint)
{
checkReferenceFrameMatch(frameWaypoint);
this.frameWaypoint.setIncludingFrame(frameWaypoint);
getYoValuesFromFrameWaypoint();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void get(F frameWaypoint)
{
checkReferenceFrameMatch(frameWaypoint);
putYoValuesIntoFrameWaypoint();
frameWaypoint.set(this.frameWaypoint);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final void setIncludingFrame(Y other)
{
setTime(other);
super.setIncludingFrame(other);
}
内容来源于网络,如有侵权,请联系作者删除!