本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.DarkRed()
方法的一些代码示例,展示了YoAppearance.DarkRed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.DarkRed()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:DarkRed
暂无
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public SmartCMPProjector(YoGraphicsListRegistry graphicsListRegistry, YoVariableRegistry parentRegistry)
{
activeProjection.set(ProjectionMethod.NONE);
if (parentRegistry != null)
parentRegistry.addChild(registry);
if (graphicsListRegistry != null)
{
YoArtifactPosition desiredCMPViz = new YoArtifactPosition("Desired CMP Position", yoDesiredCMP, GraphicType.SOLID_BALL, DarkRed().getAwtColor(),
0.008);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), desiredCMPViz);
YoArtifactPosition projectedCMPViz = new YoArtifactPosition("Projected CMP Position", yoProjectedCMP, GraphicType.BALL_WITH_ROTATED_CROSS,
DarkRed().getAwtColor(), 0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), projectedCMPViz);
YoArtifactPolygon projectionAreaViz = new YoArtifactPolygon("CMP Projection Area", yoProjectionArea, Blue().getAwtColor(), false);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), projectionAreaViz);
}
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
public CenterOfPressureVisualizer(Map<RigidBody, FootSwitchInterface> footSwitches,
YoGraphicsListRegistry yoGraphicsListRegistry, YoVariableRegistry parentRegistry)
{
this.footSwitches = footSwitches;
footRigidBodies = footSwitches.keySet();
for (RigidBody rigidBody : footRigidBodies)
{
String rigidBodyName = rigidBody.getName();
rigidBodyName = WordUtils.capitalize(rigidBodyName);
YoFramePoint rawCoPPositionInWorld = new YoFramePoint("raw" + rigidBodyName + "CoPPositionsInWorld", worldFrame, registry);
footRawCoPPositionsInWorld.put(rigidBody, rawCoPPositionInWorld);
YoGraphicPosition copDynamicGraphic = new YoGraphicPosition("Meas " + rigidBodyName + "CoP", rawCoPPositionInWorld, 0.008, YoAppearance.DarkRed(), GraphicType.DIAMOND);
YoArtifactPosition copArtifact = copDynamicGraphic.createArtifact();
yoGraphicsListRegistry.registerArtifact("StateEstimator", copArtifact);
footList.add(rigidBody);
}
overallRawCoPPositionInWorld = new YoFramePoint("overallRawCoPPositionInWorld", worldFrame, registry);
YoGraphicPosition overallRawCoPDynamicGraphic = new YoGraphicPosition("Meas CoP", overallRawCoPPositionInWorld, 0.015, YoAppearance.DarkRed(), GraphicType.DIAMOND);
YoArtifactPosition overallRawCoPArtifact = overallRawCoPDynamicGraphic.createArtifact();
overallRawCoPArtifact.setVisible(false);
yoGraphicsListRegistry.registerArtifact("StateEstimator", overallRawCoPArtifact);
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private Link exampleArcTorusShape()
{
Link ret = new Link("exampleArcTorusShape");
Graphics3DObject linkGraphics = new Graphics3DObject();
// ArcTorus
linkGraphics.translate(OFFSET, 0.0, 0.0);
linkGraphics.addCoordinateSystem(COORD_LENGTH);
linkGraphics.addArcTorus(ARC_TORUS_START_ANG, ARC_TORUS_END_ANG, ARC_TORUS_MAJ_RAD, ARC_TORUS_MIN_RAD, YoAppearance.DarkRed());
ret.setLinkGraphics(linkGraphics);
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
YoArtifactPosition desiredCMPViz = new YoArtifactPosition("Desired CMP Position", yoDesiredCMP, GraphicType.SOLID_BALL, DarkRed().getAwtColor(),
0.008);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), desiredCMPViz);
DarkRed().getAwtColor(), 0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), projectedCMPViz);
yoProjectedCMP.set(projectedCMP);
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
valveLinkGraphics.addArcTorus(0.0, 2 * Math.PI, valveRadius - valveThickness / 2.0, valveThickness / 2.0, YoAppearance.DarkRed());
valveLinkGraphics.addCylinder(valveOffsetFromWall, spokesThickness / 2.0, YoAppearance.DarkRed());
valveLinkGraphics.transform(invertTransform);
valveLinkGraphics.addCylinder(spokeLength, spokesThickness / 2.0, YoAppearance.DarkRed());
valveLinkGraphics.transform(invertTransform);
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
steeringWheelLinkGraphics.addArcTorus(0.0, 2 * Math.PI, steeringWheelRadius, steeringWheelThickness / 2.0, YoAppearance.DarkRed());
steeringWheelLinkGraphics.translate(0.0, 0.0, -steeringColunmLength);
steeringWheelLinkGraphics.addCylinder(steeringColunmLength, spokesThickness / 2.0, YoAppearance.DarkRed());
steeringWheelLinkGraphics.translate(0.0, 0.0, steeringColunmLength);
steeringWheelLinkGraphics.transform(invertTransform);
steeringWheelLinkGraphics.addCylinder(steeringWheelRadius, spokesThickness / 2.0, YoAppearance.DarkRed());
steeringWheelLinkGraphics.transform(invertTransform);
代码示例来源:origin: us.ihmc/IHMCFootstepPlanning
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/simulation-construction-set-test
linkGraphics.addArcTorus(ARC_TORUS_START_ANG, ARC_TORUS_END_ANG, ARC_TORUS_MAJ_RAD, ARC_TORUS_MIN_RAD, YoAppearance.DarkRed());
代码示例来源:origin: us.ihmc/IHMCStateEstimation
AppearanceDefinition forceAppearance = YoAppearance.DarkRed();
AppearanceDefinition torqueAppearance = YoAppearance.DarkBlue();
wrenchVisualizer = new WrenchVisualizer("ForceSensorData", bodies, forceVizScaling, yoGraphicsListRegistry, registry, forceAppearance,
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
YoGraphicPosition finalDesiredCapturePointViz = new YoGraphicPosition("Final Desired Capture Point", yoFinalDesiredICP, 0.01, Beige(), GraphicType.BALL_WITH_ROTATED_CROSS);
YoGraphicPosition desiredCMPViz = new YoGraphicPosition("Desired CMP", yoDesiredCMP, 0.012, Purple(), GraphicType.BALL_WITH_CROSS);
YoGraphicPosition achievedCMPViz = new YoGraphicPosition("Achieved CMP", yoAchievedCMP, 0.005, DarkRed(), GraphicType.BALL_WITH_CROSS);
YoGraphicPosition perfectCMPViz = new YoGraphicPosition("Perfect CMP", yoPerfectCMP, 0.002, BlueViolet());
内容来源于网络,如有侵权,请联系作者删除!