gpt4 book ai didi

us.ihmc.graphicsDescription.appearance.YoAppearance.DarkGreen()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 10:52:40 25 4
gpt4 key购买 nike

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

YoAppearance.DarkGreen介绍

暂无

代码示例

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

private ArrayList<Graphics3DObject> createGroundLinkGraphicsFromGroundProfile(GroundProfile3D groundProfile)
{
 ArrayList<Graphics3DObject> ret = new ArrayList<Graphics3DObject>();
 Graphics3DObject texturedGroundLinkGraphics = new Graphics3DObject();
 HeightMap heightMap = null;
 
 if (groundProfile != null) heightMap = groundProfile.getHeightMapIfAvailable();
 else if (groundProfile3D != null) heightMap = groundProfile3D.getHeightMapIfAvailable();
 
 texturedGroundLinkGraphics.addHeightMap(heightMap, 300, 300, YoAppearance.DarkGreen());
 ret.add(texturedGroundLinkGraphics);
 return ret;
}

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

private Graphics3DObject createGroundLinkGraphicsFromGroundProfile(GroundProfile3D groundProfile)
{
 Graphics3DObject texturedGroundLinkGraphics = new Graphics3DObject();
 HeightMap heightMap = null;
 if (groundProfile != null)
   heightMap = groundProfile.getHeightMapIfAvailable();
 texturedGroundLinkGraphics.addHeightMap(heightMap, 300, 300, YoAppearance.DarkGreen());
 return texturedGroundLinkGraphics;
}

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

public Graphics3DObject createLinkGraphics(AppearanceDefinition yoAppearance)
{
 Graphics3DObject ret = new Graphics3DObject();
 double polygonExtrusionHeight = height-baseZ;
 ret.translate(new Vector3D(0.0, 0.0, baseZ));
 ret.addExtrudedPolygon(convexPolygon2d, polygonExtrusionHeight, yoAppearance);
    
 if (this.shrunkenPolygon != null)
 {
   //      ret.translate(new Vector3d(0.0, 0.0, baseZ));
   ret.addExtrudedPolygon(shrunkenPolygon, polygonExtrusionHeight + 0.001, YoAppearance.DarkGreen());
 }
 
 return ret;
}

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

private Link exampleConeShape()
{
 Link ret = new Link("exampleArcTorusShape");
 Graphics3DObject linkGraphics = new Graphics3DObject();
 // Cone
 linkGraphics.translate(OFFSET, 0.0, 0.0);
 linkGraphics.addCoordinateSystem(COORD_LENGTH);
 linkGraphics.addCone(CONE_H, CONE_R, YoAppearance.DarkGreen());
 ret.setLinkGraphics(linkGraphics);
 return ret;
}

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

double zOffsetLowerArm = getChildJoint().getJointOffset().getZ() / 2.0;
  lowerArmGraphics.translate(0.0, 0.0, zOffsetLowerArm);
  lowerArmGraphics.addEllipsoid(0.05, 0.05, Math.abs(zOffsetLowerArm), YoAppearance.DarkGreen());
  return lowerArmGraphics;
case WRIST:

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

linkGraphics.addCone(CONE_H, CONE_R, YoAppearance.DarkGreen());

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

rightFootstepToExpandViz = new YoGraphicPolygon("rightFootstepToExpandViz", rightFootstepUnderConsideration, "rightFootstepToExpandPose", "", registry, 1.0, YoAppearance.Yellow());
leftAcceptedFootstepViz = new YoGraphicPolygon("leftAcceptedFootstepViz", leftAcceptedFootstep, "leftAcceptedFootstepPose", "", registry, 1.0, YoAppearance.Green());
rightAcceptedFootstepViz = new YoGraphicPolygon("rightAcceptedFootstepViz", rightAcceptedFootstep, "rightAcceptedFootstepPose", "", registry, 1.0, YoAppearance.DarkGreen());
leftRejectedFootstepViz = new YoGraphicPolygon("leftRejectedFootstepViz", leftRejectedFootstep, "leftRejectedFootstepPose", "", registry, 1.0, YoAppearance.Red());
rightRejectedFootstepViz = new YoGraphicPolygon("rightRejectedFootstepViz", rightRejectedFootstep, "rightRejectedFootstepPose", "", registry, 1.0, YoAppearance.DarkRed());

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

coneGraphic.translate(0.0, 0.0, coneHeight);
coneGraphic.rotate(Math.PI, Axis.Y);
coneGraphic.addCone(coneHeight, coneBaseRadius, YoAppearance.DarkGreen());
scs.addStaticLinkGraphics(coneGraphic);

代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test

stanceFramePose.setPosition(0.2, 0.26, 0.31);
stanceFramePose.setOrientationYawPitchRoll(0.0, stanceFootPitch.getDoubleValue(), 0.0);
YoGraphicPolygon stanceFootPolygon = createStaticFootstep("stance", stanceFramePose, YoAppearance.DarkGreen(), registry, yoGraphicsListRegistry);

代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test

heightMapGraphics.addHeightMap(heightMap, 300, 300, YoAppearance.DarkGreen());
scs.addStaticLinkGraphics(heightMapGraphics);

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