gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFramePoint.checkReferenceFrameMatch()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 00:00:40 28 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.robotics.math.frames.YoFramePoint.checkReferenceFrameMatch()方法的一些代码示例,展示了YoFramePoint.checkReferenceFrameMatch()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFramePoint.checkReferenceFrameMatch()方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoFramePoint
类名称:YoFramePoint
方法名:checkReferenceFrameMatch

YoFramePoint.checkReferenceFrameMatch介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public ConstantPoseTrajectoryGenerator(YoFramePoint position, YoFrameQuaternion orientation)
{
 position.checkReferenceFrameMatch(orientation);
 allowMultipleFrames = false;
 this.position = position;
 this.orientation = orientation;
 multipleFramesHolders = null;
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public YoFramePoseUsingQuaternions(YoFramePoint position, YoFrameQuaternion orientation)
{
 position.checkReferenceFrameMatch(orientation);
 this.position = position;
 this.orientation = orientation;
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public YoFramePose(YoFramePoint position, YoFrameOrientation orientation)
{
 position.checkReferenceFrameMatch(orientation);
 this.position = position;
 this.orientation = orientation;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

protected YoGraphicAbstractShape(String name, YoFramePoint framePoint, YoFrameOrientation frameOrientation, double scale)
{
 super(name);
 framePoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
 this.yoFramePoint = framePoint;
 this.yoFrameOrientation = frameOrientation;
 this.scale = scale;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public YoGraphicPosition(String name, YoFramePoint framePoint, double scale, AppearanceDefinition appearance, GraphicType type)
{
 super(name);
 framePoint.checkReferenceFrameMatch(ReferenceFrame.getWorldFrame());
 this.x = framePoint.getYoX();
 this.y = framePoint.getYoY();
 this.z = framePoint.getYoZ();
 this.scale = scale;
 this.type = type;
 this.appearance = appearance;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public void setPose(FramePose framePose)
{
 yoFramePoint.checkReferenceFrameMatch(framePose.getReferenceFrame());
 framePose.getPosition(tempPoint);
 yoFramePoint.setPoint(tempPoint);
 framePose.getOrientation(tempQuaternion);
 yoFrameOrientation.set(tempQuaternion);
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public void setConstantPose(FramePose constantPose)
{
 position.checkReferenceFrameMatch(constantPose);
 position.set(constantPose.getX(), constantPose.getY(), constantPose.getZ());
 orientation.set(constantPose.getYaw(), constantPose.getPitch(), constantPose.getRoll());
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public void setDesiredCapturePointState(YoFramePoint2d currentDesiredCapturePointPosition, YoFrameVector2d currentDesiredCapturePointVelocity)
{
 // Do not set the Z to zero!
 desiredCapturePointPosition.checkReferenceFrameMatch(currentDesiredCapturePointPosition);
 desiredCapturePointPosition.setX(currentDesiredCapturePointPosition.getX());
 desiredCapturePointPosition.setY(currentDesiredCapturePointPosition.getY());
 desiredCapturePointVelocity.checkReferenceFrameMatch(currentDesiredCapturePointVelocity);
 desiredCapturePointVelocity.setX(currentDesiredCapturePointVelocity.getX());
 desiredCapturePointVelocity.setY(currentDesiredCapturePointVelocity.getY());
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public void setDesiredCapturePointState(FramePoint2d currentDesiredCapturePointPosition, FrameVector2d currentDesiredCapturePointVelocity)
{
 // Do not set the Z to zero!
 desiredCapturePointPosition.checkReferenceFrameMatch(currentDesiredCapturePointPosition);
 desiredCapturePointPosition.setX(currentDesiredCapturePointPosition.getX());
 desiredCapturePointPosition.setY(currentDesiredCapturePointPosition.getY());
 desiredCapturePointVelocity.checkReferenceFrameMatch(currentDesiredCapturePointVelocity);
 desiredCapturePointVelocity.setX(currentDesiredCapturePointVelocity.getX());
 desiredCapturePointVelocity.setY(currentDesiredCapturePointVelocity.getY());
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public YoGraphicCoordinateSystem(String name, YoFramePoint framePoint, YoFrameOrientation orientation, double scale)
{
 super(name);
 ReferenceFrame.getWorldFrame().checkReferenceFrameMatch(framePoint);
 framePoint.checkReferenceFrameMatch(orientation.getReferenceFrame());
 x = framePoint.getYoX();
 y = framePoint.getYoY();
 z = framePoint.getYoZ();
 yaw = orientation.getYaw();
 pitch = orientation.getPitch();
 roll = orientation.getRoll();
 this.scale = scale;
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com