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

x33g5p2x  于2022-02-05 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(187)

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

YoAppearance.Orange介绍

暂无

代码示例

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

private static Link randomBody(Random random)
{
 Link ret = new Link("floatingBody");
 ret.setMass(random.nextDouble());
 ret.setComOffset(random.nextDouble(), random.nextDouble(), random.nextDouble());
 ret.setMomentOfInertia(getRotationalInertiaMatrixOfSolidEllipsoid(ret.getMass(), random.nextDouble(), random.nextDouble(),
     random.nextDouble()));
 Graphics3DObject linkGraphics = new Graphics3DObject();
 linkGraphics.addCoordinateSystem(COORDINATE_SYSTEM_LENGTH);
 createInertiaEllipsoid(ret, linkGraphics, YoAppearance.Orange());
 ret.setLinkGraphics(linkGraphics);
 return ret;
}

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

private static Link randomBodyNoYCoMOffset(Random random)
{
 Link ret = new Link("floatingBody");
 ret.setMass(random.nextDouble());
 ret.setComOffset(random.nextDouble(), 0.0, random.nextDouble());
 ret.setMomentOfInertia(getRotationalInertiaMatrixOfSolidEllipsoid(ret.getMass(), random.nextDouble(), random.nextDouble(),
     random.nextDouble()));
 Graphics3DObject linkGraphics = new Graphics3DObject();
 linkGraphics.addCoordinateSystem(COORDINATE_SYSTEM_LENGTH);
 createInertiaEllipsoid(ret, linkGraphics, YoAppearance.Orange());
 ret.setLinkGraphics(linkGraphics);
 return ret;
}

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

private CombinedTerrainObject3D setUpWedgeBarrier(String name, Point2D location)
{
 CombinedTerrainObject3D combinedTerrainObject = new CombinedTerrainObject3D(name);
 AppearanceDefinition appearance = YoAppearance.Orange();
 combinedTerrainObject.addRamp(location.getX() - wedgeBarrierLength, location.getY() - wedgeBarrierWength / 2, location.getX(),
                location.getY() + wedgeBarrierWength / 2, wedgeBarrierHeight, appearance);
 return combinedTerrainObject;
}

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

private static Link link21(Random random, double l2, double r2)
  {
   Link ret = new Link("link2");
   ret.setMass(random.nextDouble());
   ret.setComOffset(0.0, 0.0, l2 / 2.0);

//    ret.setComOffset(0.0, 0.0, 0.0);
   ret.setMomentOfInertia(getRotationalInertiaMatrixOfSolidEllipsoid(ret.getMass(), r2, r2, l2 / 2.0));

   Graphics3DObject linkGraphics = new Graphics3DObject();
   linkGraphics.addCoordinateSystem(COORDINATE_SYSTEM_LENGTH);
   createInertiaEllipsoid(ret, linkGraphics, YoAppearance.Orange());
   ret.setLinkGraphics(linkGraphics);

   return ret;
  }

代码示例来源:origin: us.ihmc/ihmc-model-file-loader

graphics.translate(jointContactPoint.getRight());
double radius = 0.01;
graphics.addSphere(radius, YoAppearance.Orange());

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

graphics3DObject.addSphere(0.1, YoAppearance.Orange());
   graphics3DObject.addSphere(0.025, YoAppearance.Orange());

代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit

obj.addEllipsoid(a, b, c, YoAppearance.Orange());
obj.rotate(-Math.PI / 4.0, Axis.X);

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

obj.addEllipsoid(a, b, c, YoAppearance.Orange());
obj.rotate(-Math.PI / 4.0, Axis.X);

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

break;
case INTERSECTION_BUT_OUTSIDE_TRAJECTORY:
 appearance = YoAppearance.Orange();
 size = 0.013;
 break;

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

color = YoAppearance.Orange();

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

color = YoAppearance.Orange();

代码示例来源:origin: us.ihmc/ihmc-model-file-loader

scsLink.addEllipsoidFromMassProperties(YoAppearance.Orange());

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

private void createFloatingRobot()
{
 Robot floatingRobot = new Robot("floatingRobot");
 Vector3D position = new Vector3D(0.0, 0.02, 1.1);
 double length = 0.01;
 floatingRobot.setGravity(0.0, 0.0, 0.0);
 horizontalJoint = new SliderJoint("y", position, floatingRobot, Axis.Y);
 floatingRobot.addRootJoint(horizontalJoint);
 Link linkHorizontal = new Link("linkHorizontal");
 linkHorizontal.setMass(0.5);
 linkHorizontal.setComOffset(length / 2.0, 0.0, 0.0);
 linkHorizontal.setMomentOfInertia(0.0, 0.01, 0.0);
 Graphics3DObject linkHorizontalGraphics = new Graphics3DObject();
 linkHorizontalGraphics.addCylinder(length * 10, 0.005, YoAppearance.Orange());
 linkHorizontal.setLinkGraphics(linkHorizontalGraphics);
 horizontalJoint.setLink(linkHorizontal);
 verticalJoint = new SliderJoint("z", new Vector3D(0.0, 0.0, 0.0), floatingRobot, Axis.Z);
 Link linkVertical = new Link("linkVertical");
 linkVertical.setMass(0.5);
 linkVertical.setComOffset(length / 2.0, 0.0, 0.0);
 linkVertical.setMomentOfInertia(0.0, 0.01, 0.0);
 Graphics3DObject linkVerticalGraphics = new Graphics3DObject();
 linkVerticalGraphics.addCylinder(length, 0.005, YoAppearance.Blue());
 linkVertical.setLinkGraphics(linkVerticalGraphics);
 verticalJoint.setLink(linkVertical);
 horizontalJoint.addJoint(verticalJoint);
 createFloatingRobotController();
 robots[0] = floatingRobot;
 robots[0].setController(floatingRobotController);
}

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

YoGraphicPosition position1 = new YoGraphicPosition("contactFrame1", contactFrameOnePosition, pointSize, YoAppearance.Orange());

相关文章