本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.Aqua()
方法的一些代码示例,展示了YoAppearance.Aqua()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Aqua()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:Aqua
暂无
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public BasisVectorVisualizer(String name, int rhoSize, double vizScaling, YoGraphicsListRegistry yoGraphicsListRegistry,
YoVariableRegistry parentRegistry)
{
AppearanceDefinition basisAppearance = YoAppearance.Aqua();
this.rhoSize = rhoSize;
YoGraphicsList yoGraphicsList = new YoGraphicsList(name);
for (int i = 0; i < rhoSize; i++)
{
String prefix = name + i;
YoFrameVector basisVector = new YoFrameVector(prefix + "BasisVector", ReferenceFrame.getWorldFrame(), registry);
yoBasisVectors.put(i, basisVector);
YoFramePoint pointOfBasis = new YoFramePoint(prefix + "PointOfBasis", ReferenceFrame.getWorldFrame(), registry);
pointOfBases.put(i, pointOfBasis);
YoGraphicVector basisVisualizer = new YoGraphicVector(prefix + "BasisViz", pointOfBasis , basisVector, BASIS_VECTOR_SCALE * vizScaling,
basisAppearance, true);
basisVisualizers.put(i, basisVisualizer);
yoGraphicsList.add(basisVisualizer);
}
yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public void addPoints(List<Point3D> points)
{
if(!disableGraphics)
{
for(Point3D point : points)
{
Graphics3DObject testCubeGraphicObject = new Graphics3DObject();
testCubeGraphicObject.addCube(VOXEL_SIZE, VOXEL_SIZE, VOXEL_SIZE, YoAppearance.Aqua());
Graphics3DNode cubeNode = scs.addStaticLinkGraphics(testCubeGraphicObject, Graphics3DNodeType.VISUALIZATION);
cubeNode.translate(point.getX(), point.getY(), point.getZ());
if(rootNode == null)
rootNode = cubeNode;
else
rootNode.addChild(cubeNode);
}
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private static Link link22(Link link21)
{
Link ret = new Link("link22");
ret.setComOffset(link21.getComOffset());
ret.setMass(link21.getMass());
Matrix3D link2moi = new Matrix3D();
link21.getMomentOfInertia(link2moi);
ret.setMomentOfInertia(link2moi);
Graphics3DObject linkGraphics = new Graphics3DObject();
linkGraphics.addCoordinateSystem(COORDINATE_SYSTEM_LENGTH);
createInertiaEllipsoid(ret, linkGraphics, YoAppearance.Aqua());
ret.setLinkGraphics(linkGraphics);
return ret;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
linkGraphics.addSphere(SPHERE_R, YoAppearance.Aqua());
代码示例来源:origin: us.ihmc/simulation-construction-set-test
linkGraphics.addSphere(SPHERE_R, YoAppearance.Aqua());
代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test
YoAppearance.Aqua());
vectors.add(surfaceNormalGraphic);
内容来源于网络,如有侵权,请联系作者删除!