gpt4 book ai didi

us.ihmc.robotics.referenceFrames.ZUpPreserveYReferenceFrame类的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 13:23:31 27 4
gpt4 key购买 nike

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

ZUpPreserveYReferenceFrame介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public ZUpPreserveYReferenceFrame(ReferenceFrame worldFrame, FramePoint3D origin, String name)
{
 super(name, worldFrame, false, true);
 this.worldFrame = worldFrame;
 this.origin = new FramePoint3D(origin);
 
 this.update();
}

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

private static CenterOfMassCalculator createCenterOfMassCalculatorInJointZUpFrame(RigidBodyBasics rootBody, boolean preserveY)
  {
   if (DEBUG) System.out.println("\nCenterOfMassCalibrationTool: rootBody = " + rootBody);

   JointBasics parentJoint = rootBody.getParentJoint();
   if (DEBUG) System.out.println("parentJoint = " + parentJoint);

   ReferenceFrame jointFrame = parentJoint.getFrameAfterJoint();
   if (DEBUG) System.out.println("jointFrame = " + jointFrame);

   String jointName = parentJoint.getName();
   if (DEBUG) System.out.println("jointName = " + jointName);

   ReferenceFrame jointZUpFrame;
   
   if (preserveY)
   {
     jointZUpFrame = new ZUpPreserveYReferenceFrame(ReferenceFrame.getWorldFrame(), jointFrame, jointName + "ZUp");
   }
   else
   {
     jointZUpFrame = new ZUpFrame(ReferenceFrame.getWorldFrame(), jointFrame, jointName + "ZUp");
   }
   
   CenterOfMassCalculator centerOfMassCalculator = new CenterOfMassCalculator(rootBody, jointZUpFrame);

   return centerOfMassCalculator;
  }
}

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

jointZUpFrame = new ZUpPreserveYReferenceFrame(ReferenceFrame.getWorldFrame(), jointFrame, jointName + "ZUp");

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

private static CenterOfMassCalculator createCenterOfMassCalculatorInJointZUpFrame(RigidBody rootBody, boolean preserveY)
  {
   if (DEBUG) System.out.println("\nCenterOfMassCalibrationTool: rootBody = " + rootBody);

   InverseDynamicsJoint parentJoint = rootBody.getParentJoint();
   if (DEBUG) System.out.println("parentJoint = " + parentJoint);

   ReferenceFrame jointFrame = parentJoint.getFrameAfterJoint();
   if (DEBUG) System.out.println("jointFrame = " + jointFrame);

   String jointName = parentJoint.getName();
   if (DEBUG) System.out.println("jointName = " + jointName);

   ReferenceFrame jointZUpFrame;
   
   if (preserveY)
   {
     jointZUpFrame = new ZUpPreserveYReferenceFrame(ReferenceFrame.getWorldFrame(), jointFrame, jointName + "ZUp");
   }
   else
   {
     jointZUpFrame = new ZUpFrame(ReferenceFrame.getWorldFrame(), jointFrame, jointName + "ZUp");
   }
   
   RigidBody[] rigidBodies = ScrewTools.computeSubtreeSuccessors(rootBody.getParentJoint());
   CenterOfMassCalculator centerOfMassCalculator = new CenterOfMassCalculator(rigidBodies, jointZUpFrame);

   return centerOfMassCalculator;
  }
}

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

public ZUpPreserveYReferenceFrame(ReferenceFrame worldFrame, FramePoint origin, String name)
{
 super(name, worldFrame, false, false, true);
 this.worldFrame = worldFrame;
 this.origin = new FramePoint(origin);
 
 this.update();
}

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