本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.Green()
方法的一些代码示例,展示了YoAppearance.Green()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Green()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:Green
暂无
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
private void addSupportBaseControlGraphics(YoGraphicsListRegistry yoGraphicsListRegistry)
{
addSupportBaseGraphics(yoGraphicsListRegistry,baseControlPoints,baseControlPointsList,baseControlLinesList,"baseControl",YoAppearance.Green());
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
private void addSupportBaseControlGraphics(YoGraphicsListRegistry yoGraphicsListRegistry)
{
addSupportBaseGraphics(yoGraphicsListRegistry,baseControlPoints,baseControlPointsList,baseControlLinesList,"baseControl",YoAppearance.Green());
}
代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit
public static Graphics3DObject createSphereObject(double radius)
{
Graphics3DObject sphere = new Graphics3DObject();
sphere.addSphere(radius, YoAppearance.Green());
return sphere;
}
代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit
public static Graphics3DObject createSphereObject(double radius)
{
Graphics3DObject sphere = new Graphics3DObject();
sphere.addSphere(radius, YoAppearance.Green());
return sphere;
}
代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit
public static Graphics3DObject createSphereObject(double radius)
{
Graphics3DObject sphere = new Graphics3DObject();
sphere.addSphere(radius, YoAppearance.Green());
return sphere;
}
代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit
public static Graphics3DObject createSphereObject(double radius)
{
Graphics3DObject sphere = new Graphics3DObject();
sphere.addSphere(radius, YoAppearance.Green());
return sphere;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private CombinedTerrainObject3D setupWallSlightlyInFront(String name)
{
CombinedTerrainObject3D combinedTerrainObject = new CombinedTerrainObject3D(name);
double xStart = 0.6;
AppearanceDefinition appearance = YoAppearance.Green();
appearance.setTransparency(0.25);
combinedTerrainObject.addBox(xStart, wallMinY, xStart + 0.1, wallMaxY, 0.5, 1.8, appearance);
return combinedTerrainObject;
}
代码示例来源:origin: us.ihmc/valkyrie
private void addIntertialEllipsoidsToVisualizer(FloatingRootJointRobot valkyrieRobot)
{
ArrayList<Joint> joints = new ArrayList<>();
joints.add(valkyrieRobot.getRootJoint());
HashSet<Link> links = getAllLinks(joints, new HashSet<Link>());
for (Link l : links)
{
AppearanceDefinition appearance = YoAppearance.Green();
appearance.setTransparency(0.6);
l.addEllipsoidFromMassProperties(appearance);
l.addCoordinateSystemToCOM(0.5);
// l.addBoxFromMassProperties(appearance);
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private CombinedTerrainObject3D setupStepInFront(String name, double stepHeight)
{
CombinedTerrainObject3D combinedTerrainObject = new CombinedTerrainObject3D(name);
double xStart = 0.3;
double stepWidth = 0.5;
AppearanceDefinition appearance = YoAppearance.Green();
appearance.setTransparency(0.25);
combinedTerrainObject.addBox(xStart, -stepWidth/2.0, xStart + stepWidth, stepWidth/2.0, 0.0, stepHeight, appearance);
return combinedTerrainObject;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private CombinedTerrainObject3D setupWall(String name)
{
CombinedTerrainObject3D combinedTerrainObject = new CombinedTerrainObject3D(name);
double xStart = wallDistance;
double wallMinY = -1000;
double wallMaxY = 1000;
double wallZStart = -1000;
double wallZEnd = 1000;
AppearanceDefinition appearance = YoAppearance.Green();
appearance.setTransparency(0.25);
combinedTerrainObject.addBox(xStart, wallMinY, xStart + 0.1, wallMaxY, wallZStart, wallZEnd, appearance);
return combinedTerrainObject;
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public void createVisualizerForConstantCMPs(YoGraphicsList yoGraphicsList, ArtifactList artifactList)
{
for (int i = 0; i < entryCMPs.size(); i++)
{
YoGraphicPosition entryCMPViz = new YoGraphicPosition("Entry CMP" + i, entryCMPsInWorldFrameReadOnly.get(i), CMP_POINT_SIZE, YoAppearance.Green(),
GraphicType.SOLID_BALL);
yoGraphicsList.add(entryCMPViz);
artifactList.add(entryCMPViz.createArtifact());
}
for (int i = 0; i < exitCMPs.size(); i++)
{
YoGraphicPosition exitCMPViz = new YoGraphicPosition("Exit CMP" + i, exitCMPsInWorldFrameReadOnly.get(i), CMP_POINT_SIZE, YoAppearance.Green(),
GraphicType.BALL);
yoGraphicsList.add(exitCMPViz);
artifactList.add(exitCMPViz.createArtifact());
}
}
代码示例来源:origin: us.ihmc/IHMCFootstepPlanning
public PlanarRegionBaseOfCliffAvoider(YoVariableRegistry parentRegistry, YoGraphicsListRegistry yoGraphicsListRegistry)
{
parentRegistry.addChild(registry);
if (yoGraphicsListRegistry == null)
{
visualize = false;
}
if (visualize)
{
beforeAdjustmentPosition = new YoGraphicPosition("beforeAdjustmentPosition", "", registry, 0.02, YoAppearance.Red());
afterAdjustmentPosition = new YoGraphicPosition("afterAdjustmentPosition", "", registry, 0.02, YoAppearance.Green());
yoGraphicsListRegistry.registerYoGraphic(getClass().getSimpleName(), beforeAdjustmentPosition);
yoGraphicsListRegistry.registerYoGraphic(getClass().getSimpleName(), afterAdjustmentPosition);
}
else
{
beforeAdjustmentPosition = null;
afterAdjustmentPosition = null;
}
}
代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit
public static Graphics3DNode setupStaticBox(Graphics3DAdapter graphics3DAdapter)
{
Graphics3DNode box = new Graphics3DNode("box", Graphics3DNodeType.JOINT);
Graphics3DObject boxGraphics = new Graphics3DObject();
boxGraphics.addCube(1.0, 1.0, 1.0, YoAppearance.Green());
box.setGraphicsObject(boxGraphics);
graphics3DAdapter.addRootNode(box);
return box;
}
代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit
public static Graphics3DNode setupStaticBox(Graphics3DAdapter graphics3DAdapter)
{
Graphics3DNode box = new Graphics3DNode("box", Graphics3DNodeType.JOINT);
Graphics3DObject boxGraphics = new Graphics3DObject();
boxGraphics.addCube(1.0, 1.0, 1.0, YoAppearance.Green());
box.setGraphicsObject(boxGraphics);
graphics3DAdapter.addRootNode(box);
return box;
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static AppearanceDefinition[] getStandardRoyGBivRainbow()
{
AppearanceDefinition[] rainbow = new AppearanceDefinition[] { YoAppearance.Red(), YoAppearance.OrangeRed(), YoAppearance.Yellow(),
YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Indigo(), YoAppearance.Purple()};
return rainbow;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public static AppearanceDefinition[] getStandardRoyGBivRainbow()
{
AppearanceDefinition[] rainbow = new AppearanceDefinition[] { YoAppearance.Red(), YoAppearance.OrangeRed(), YoAppearance.Yellow(),
YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Indigo(), YoAppearance.Purple()};
return rainbow;
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
private static Link thigh()
{
AppearanceDefinition thighApp = YoAppearance.Green();
Link ret = new Link("thigh");
ret.setMass(THIGH_MASS); // 2.35);
ret.setMomentOfInertia(0.0437, 0.0437, 0.0054);
ret.setComOffset(0.0, 0.0, -THIGH_LENGTH / 2.0);
Graphics3DObject linkGraphics = new Graphics3DObject();
linkGraphics.addCylinder(THIGH_LENGTH, THIGH_RAD, thighApp);
ret.setLinkGraphics(linkGraphics);
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint3D[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
for (int i = 0; i < basePoints.length; i++)
{
YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
yoGraphicsList.add(baseControlPointViz);
basePointsList.add(baseControlPointViz);
for (int j = i + 1; j < basePoints.length; j++)
{
YoGraphicLineSegment yoGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
1.0, appearance, false);
yoGraphicsList.add(yoGraphicLineSegment);
linesList.add(yoGraphicLineSegment);
}
}
if (yoGraphicsListRegistry != null)
yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
yoGraphicsList.hideYoGraphics();
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
for (int i = 0; i < basePoints.length; i++)
{
YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
yoGraphicsList.add(baseControlPointViz);
basePointsList.add(baseControlPointViz);
for (int j = i + 1; j < basePoints.length; j++)
{
YoGraphicLineSegment dynamicGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
1.0, appearance, false);
yoGraphicsList.add(dynamicGraphicLineSegment);
linesList.add(dynamicGraphicLineSegment);
}
}
if (yoGraphicsListRegistry != null)
yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
yoGraphicsList.hideYoGraphics();
}
代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit
sphereObject.addCoordinateSystem(1.0);
sphereObject.translate(translation);
sphereObject.addSphere(0.5, YoAppearance.Green());
内容来源于网络,如有侵权,请联系作者删除!