本文整理了Java中us.ihmc.yoVariables.variable.YoFramePoint3D.getReferenceFrame()
方法的一些代码示例,展示了YoFramePoint3D.getReferenceFrame()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFramePoint3D.getReferenceFrame()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFramePoint3D
类名称:YoFramePoint3D
方法名:getReferenceFrame
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private BacklashCompensatingVelocityYoFrameVector(BacklashCompensatingVelocityYoVariable xDot, BacklashCompensatingVelocityYoVariable yDot, BacklashCompensatingVelocityYoVariable zDot,
YoVariableRegistry registry, YoFramePoint3D yoFramePointToDifferentiate)
{
super(xDot, yDot, zDot, yoFramePointToDifferentiate.getReferenceFrame());
this.xDot = xDot;
this.yDot = yDot;
this.zDot = zDot;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/** {@inheritDoc} */
@Override
public ReferenceFrame getReferenceFrame()
{
return position.getReferenceFrame();
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
@Override
public ReferenceFrame getReferenceFrame()
{
return position.getReferenceFrame();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getAcceleration(FrameVector3D accelerationToPack)
{
accelerationToPack.setToZero(position.getReferenceFrame());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getAcceleration(FrameVector3D accelerationToPack)
{
accelerationToPack.setToZero(position.getReferenceFrame());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getVelocity(FrameVector3D velocityToPack)
{
velocityToPack.setToZero(position.getReferenceFrame());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getVelocity(FrameVector3D velocityToPack)
{
velocityToPack.setToZero(position.getReferenceFrame());
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Creates a new {@code YoFramePose3D} using the given {@code position} and {@code orientation}.
*
* @param position the {@code YoFramePoint3D} to use internally for the position.
* @param orientation the {@code YoFrameQuaternion} to use internally for the orientation.
* @throws ReferenceFrameMismatchException if {@code position} and {@code orientation} are not
* expressed in the same reference frame.
*/
public YoFramePose3D(YoFramePoint3D position, YoFrameQuaternion orientation)
{
position.checkReferenceFrameMatch(orientation);
position.getReferenceFrame();
this.position = position;
this.orientation = orientation;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void updateInitialPosition()
{
initialPositionProvider.getPosition(tempInitialPosition);
tempInitialPosition.changeFrame(initialPosition.getReferenceFrame());
initialPosition.set(tempInitialPosition);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
private void updateFinalPosition()
{
finalPositionProvider.getPosition(tempFinalPosition);
tempFinalPosition.changeFrame(finalPosition.getReferenceFrame());
finalPosition.set(tempFinalPosition);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getPose(FramePose3D framePoseToPack)
{
framePoseToPack.changeFrame(position.getReferenceFrame());
framePoseToPack.setPosition(position);
framePoseToPack.setOrientation(orientation);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public YoGraphicLineSegment(String name, YoFramePoint3D startPoint, YoFramePoint3D endPoint, double scale, AppearanceDefinition appearance,
boolean drawArrowhead)
{
this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), endPoint.getYoX(), endPoint.getYoY(), endPoint.getYoZ(), scale, appearance,
drawArrowhead);
if (!startPoint.getReferenceFrame().isWorldFrame() || !endPoint.getReferenceFrame().isWorldFrame())
{
System.err.println("Warning: Should be in a World Frame to create a YoGraphicLineSegment. startPoint = " + startPoint + ", endPoint = " + endPoint);
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
@Test// timeout=300000
public void testGetYoPosition()
{
YoFramePoint3D yoPosition = kinematicPoint.getYoPosition();
String frameName = yoPosition.getReferenceFrame().getName();
assertEquals("( 0.000, 0.000, 0.000 )-" + frameName, yoPosition.toString());
yoPosition.set(new Point3D(5.0, 5.1, 5.2));
assertEquals("( 5.000, 5.100, 5.200 )-" + frameName, yoPosition.toString());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void initialize()
{
time.set(0.0);
FramePoint3D positionToPack = new FramePoint3D();
positionProvider.getPosition(positionToPack);
positionToPack.changeFrame(position.getReferenceFrame());
position.set(positionToPack);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public YoGraphicVector(String name, YoFramePoint3D startPoint, YoFrameVector3D frameVector, double scale, AppearanceDefinition appearance,
boolean drawArrowhead)
{
this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), frameVector.getYoX(), frameVector.getYoY(), frameVector.getYoZ(), scale,
appearance, drawArrowhead);
if (!startPoint.getReferenceFrame().isWorldFrame() || !frameVector.getReferenceFrame().isWorldFrame())
{
System.err.println("Warning: Should be in a World Frame to create a YoGraphicVector. startPoint = " + startPoint + ", frameVector = " + frameVector);
}
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public YoGraphicCylinder(String name, YoFramePoint3D startPoint, YoFrameVector3D frameVector, AppearanceDefinition appearance, double lineThickness)
{
this(name, startPoint.getYoX(), startPoint.getYoY(), startPoint.getYoZ(), frameVector.getYoX(), frameVector.getYoY(), frameVector.getYoZ(), appearance,
lineThickness);
if (!startPoint.getReferenceFrame().isWorldFrame() || !frameVector.getReferenceFrame().isWorldFrame())
{
System.err.println("Warning: Should be in a World Frame to create a YoGraphicCylinder. startPoint = " + startPoint + ", frameVector = " + frameVector);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public static TimestampedVelocityYoFrameVector createFilteredVelocityYoFrameVector(String namePrefix, String nameSuffix, YoDouble timestamp,
double dt, YoVariableRegistry registry, YoFramePoint3D yoFramePointToDifferentiate, double epsilonChange)
{
TimestampedVelocityYoVariable xDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createXName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoX(),
timestamp, registry, epsilonChange);
TimestampedVelocityYoVariable yDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createYName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoY(),
timestamp, registry, epsilonChange);
TimestampedVelocityYoVariable zDot = new TimestampedVelocityYoVariable(YoFrameVariableNameTools.createZName(namePrefix, nameSuffix), "", yoFramePointToDifferentiate.getYoZ(),
timestamp, registry, epsilonChange);
TimestampedVelocityYoFrameVector ret = new TimestampedVelocityYoFrameVector(xDot, yDot, zDot, yoFramePointToDifferentiate.getReferenceFrame());
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Creates a copy of {@code this} by finding the duplicated {@code YoVariable}s in the given
* {@link YoVariableRegistry}.
* <p>
* This method does not duplicate {@code YoVariable}s. Assuming the given registry is a duplicate
* of the registry that was used to create {@code this}, this method searches for the duplicated
* {@code YoVariable}s and use them to duplicate {@code this}.
* </p>
*
* @param newRegistry YoVariableRegistry to duplicate {@code this} to.
* @return the duplicate of {@code this}.
*/
public YoFramePoint3D duplicate(YoVariableRegistry newRegistry)
{
YoDouble x = (YoDouble) newRegistry.getVariable(getYoX().getFullNameWithNameSpace());
YoDouble y = (YoDouble) newRegistry.getVariable(getYoY().getFullNameWithNameSpace());
YoDouble z = (YoDouble) newRegistry.getVariable(getYoZ().getFullNameWithNameSpace());
return new YoFramePoint3D(x, y, z, getReferenceFrame());
}
}
内容来源于网络,如有侵权,请联系作者删除!