us.ihmc.yoVariables.variable.YoFramePoseUsingYawPitchRoll.setFromReferenceFrame()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(108)

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

YoFramePoseUsingYawPitchRoll.setFromReferenceFrame介绍

[英]Sets this frame pose to the origin of the passed in reference frame.
[中]将此帧姿势设置为传入参照帧的原点。

代码示例

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

private void updateCurrentFootsteps()
{
 for (RobotSide side : RobotSide.values)
 {
   YoFramePoseUsingYawPitchRoll footPose = currentFootLocations.get(side);
   if (contactStates.get(side).inContact())
   {
    footPose.setFromReferenceFrame(feet.get(side).getSoleFrame());
   }
   else
   {
    footPose.setToNaN();
   }
 }
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test

private void update(double dt)
{
 solePose.setFromReferenceFrame(swingOverPlanarRegionsTrajectoryExpander.getSolePoseReferenceFrame());
 for (SwingOverPlanarRegionsTrajectoryCollisionType swingOverPlanarRegionsTrajectoryCollisionType : SwingOverPlanarRegionsTrajectoryCollisionType.values())
 {
   intersectionMap.get(swingOverPlanarRegionsTrajectoryCollisionType)
          .setPosition(swingOverPlanarRegionsTrajectoryExpander.getClosestPolygonPoint(swingOverPlanarRegionsTrajectoryCollisionType));
 }
 double sphereRadius = swingOverPlanarRegionsTrajectoryExpander.getSphereRadius();
 collisionSphere.setRadii(new Vector3D(sphereRadius, sphereRadius, sphereRadius));
 collisionSphere.update();
 scs.tickAndUpdate(scs.getTime() + dt);
}

相关文章