gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicShape.()方法的使用及代码示例

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

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

YoGraphicShape.<init>介绍

暂无

代码示例

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

private void setupNextFootstepVisualization()
{
 nextFootstepPoses = new ArrayList<>();
 for (int i = 0; i < numberOfFootstepsToConsider; i++)
 {
   Graphics3DObject nextFootstepGraphic = new Graphics3DObject();
   nextFootstepGraphic.addExtrudedPolygon(contactPointsInFootFrame, footstepHeight, nextFootstepColor);
   YoFramePoseUsingYawPitchRoll nextFootstepPose = new YoFramePoseUsingYawPitchRoll("NextFootstep" + i + "Pose", worldFrame, registry);
   nextFootstepPoses.add(nextFootstepPose);
   graphicsListRegistry
      .registerYoGraphic("UpcomingFootsteps", new YoGraphicShape("NextFootstep" + i + "Viz", nextFootstepGraphic, nextFootstepPose, 1.0));
 }
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

@Override
  public YoGraphic duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicShape(getName(), getLinkGraphics(), yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale);
  }
}

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

private void setupCurrentFootPoseVisualization()
{
 currentFootLocations = new SideDependentList<>();
 for (RobotSide side : RobotSide.values())
 {
   Graphics3DObject footstepGraphic = new Graphics3DObject();
   footstepGraphic.addExtrudedPolygon(contactPointsInFootFrame, footstepHeight, side == RobotSide.LEFT ? leftFootstepColor : rightFootstepColor);
   YoFramePoseUsingYawPitchRoll footPose = new YoFramePoseUsingYawPitchRoll(side.getCamelCaseName() + "FootPose", worldFrame, registry);
   currentFootLocations.put(side, footPose);
   graphicsListRegistry.registerYoGraphic("currentFootPose", new YoGraphicShape(side.getCamelCaseName() + "FootViz", footstepGraphic, footPose, 1.0));
 }
}

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

YoGraphicShape comViz = new YoGraphicShape(rigidBodyName + "CoMEllipsoid", createEllipsoid(inertiaMatrix, mass, appearance), comPosition,
   comOrientation, 1.0);
yoGraphics.add(comViz);

代码示例来源:origin: us.ihmc/simulation-construction-set-test

boxPosition.set(boxSize / 2.0, boxSize / 2.0, boxSize / 2.0);
YoFrameYawPitchRoll boxOrientation = new YoFrameYawPitchRoll("boxOrientation", worldFrame, registry);
YoGraphicShape yoGraphicBoxGhost = new YoGraphicShape("boxGhost", boxGhostGraphics, boxPosition, boxOrientation, boxSize);

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