- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.plotting.YoArtifactPosition
类的一些代码示例,展示了YoArtifactPosition
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoArtifactPosition
类的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.plotting.YoArtifactPosition
类名称:YoArtifactPosition
暂无
代码示例来源:origin: us.ihmc/ihmc-graphics-description
@Override
public YoArtifactPosition createArtifact()
{
return new YoArtifactPosition(getName(), x, y, type, getColor(), scale);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
@Override
public void drawHistoryEntry(Graphics2DAdapter graphics, double[] entry)
{
tempPoint.set(entry[0], entry[1]);
drawLocal(graphics);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
@Override
public YoArtifact duplicate(YoVariableRegistry newRegistry)
{
return new YoArtifactPosition(getName(), point.duplicate(newRegistry), graphicType, color, radii.getX());
}
}
代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit
public ActualCMPComputer(boolean createViz, SimulationConstructionSet scs, FloatingRootJointRobot simulatedRobot)
{
this.simulatedRobot = simulatedRobot;
simulateDT = scs.getDT();
gravity = simulatedRobot.getGravityZ();
momentumChange = FilteredVelocityYoFrameVector
.createFilteredVelocityYoFrameVector("rateOfChangeLinearMomentum", "", alpha, simulateDT, registry, yoLinearMomentum);
if (createViz)
{
yoGraphicsListRegistry = new YoGraphicsListRegistry();
YoArtifactPosition cmpViz = new YoArtifactPosition("SimulationCMP", yoCmp.getYoX(), yoCmp.getYoY(), GraphicType.BALL_WITH_CROSS, Color.RED, 0.005);
cmpViz.setVisible(visibleByDefault);
yoGraphicsListRegistry.registerArtifact(getClass().getSimpleName(), cmpViz);
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry);
}
else
{
yoGraphicsListRegistry = null;
}
}
代码示例来源:origin: us.ihmc/IHMCStateEstimation
YoGraphicPosition copInWorld = new YoGraphicPosition(sidePrefix + "StateEstimatorCoP", copPositionsInWorld.get(foot), 0.005, YoAppearance.DeepPink());
YoArtifactPosition artifact = copInWorld.createArtifact();
artifact.setVisible(false);
yoGraphicsListRegistry.registerArtifact("StateEstimator", artifact);
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
public ActualCMPComputer(boolean createViz, SimulationConstructionSet scs, HumanoidFloatingRootJointRobot simulatedRobot)
{
this.simulatedRobot = simulatedRobot;
simulateDT = scs.getDT();
gravity = simulatedRobot.getGravityZ();
momentumChange = FilteredVelocityYoFrameVector.createFilteredVelocityYoFrameVector("rateOfChangeLinearMomentum", "", alpha, simulateDT, registry, yoLinearMomentum);
if (createViz)
{
yoGraphicsListRegistry = new YoGraphicsListRegistry();
YoArtifactPosition cmpViz = new YoArtifactPosition("SimulationCMP", yoCmp.getYoX(), yoCmp.getYoY(),
GraphicType.BALL_WITH_CROSS, Color.RED , 0.005);
cmpViz.setVisible(visibleByDefault);
yoGraphicsListRegistry.registerArtifact(getClass().getSimpleName(), cmpViz);
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry);
}
else
{
yoGraphicsListRegistry = null;
}
}
代码示例来源: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/IHMCGraphicsDescription
public YoArtifactPosition createArtifact()
{
return new YoArtifactPosition(getName(), x, y, type, this.getColor(), scale);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
yoGraphicsListRegistry.registerYoGraphic(listName, copViz);
YoArtifactPosition artifact = copViz.createArtifact();
artifact.setVisible(VISUALIZE);
yoGraphicsListRegistry.registerArtifact(listName, artifact);
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
@Override
public void drawHistoryEntry(Graphics2DAdapter graphics, double[] entry)
{
tempPoint.set(entry[0], entry[1]);
drawLocal(graphics);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
private static YoArtifactPosition yoArtifactPositionFromMessage(String name, YoVariable<?>[] vars, double[] consts, AppearanceDefinition appearance)
{
return new YoArtifactPosition(name, (YoDouble) vars[0], (YoDouble) vars[1], YoGraphicPosition.GraphicType.values()[(int) (double) consts[1]],
appearance.getColor().get(), consts[0]);
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
new YoGraphicPosition(caption, yoPlanePoint, 0.005, YoAppearance.Blue(), GraphicType.SOLID_BALL);
YoArtifactPosition planePointArtifact = planePointViz.createArtifact();
planePointArtifact.setVisible(VISUALIZE);
yoGraphicsListRegistry.registerArtifact(listName, planePointArtifact);
代码示例来源:origin: us.ihmc/ihmc-graphics-description
@Override
public void draw(Graphics2DAdapter graphics)
{
tempPoint.set(point);
drawLocal(graphics);
}
代码示例来源: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/CommonWalkingControlModules
YoGraphicPosition unprojectedDesiredCMPViz = new YoGraphicPosition("Unprojected Desired CMP", yoUnprojectedDesiredCMP, 0.008, Purple(), YoGraphicPosition.GraphicType.BALL_WITH_ROTATED_CROSS);
YoArtifactPosition artifact = unprojectedDesiredCMPViz.createArtifact();
artifact.setVisible(false);
yoGraphicsListRegistry.registerArtifact(graphicListName, artifact);
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
@Override
public void draw(Graphics2DAdapter graphics)
{
point.get(tempPoint);
drawLocal(graphics);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
YoArtifactPosition capturePointViz = new YoArtifactPosition("Capture Point", yoCapturePoint, GraphicType.BALL_WITH_ROTATED_CROSS, Blue().getAwtColor(),
0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), capturePointViz);
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);
YoArtifactPosition expectedCMPViz = new YoArtifactPosition("Expected Projection", yoExpectedCMP, GraphicType.BALL, LawnGreen().getAwtColor(),
0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), expectedCMPViz);
YoArtifactPosition finalCapturePointViz = new YoArtifactPosition("Final Capture Point", yoFinalCapturePoint, GraphicType.BALL_WITH_ROTATED_CROSS,
Beige().getAwtColor(), 0.01);
graphicsListRegistry.registerArtifact(getClass().getSimpleName(), finalCapturePointViz);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
yoGraphicsListRegistry.registerArtifact(graphicListName, achievedCMPViz.createArtifact());
YoArtifactPosition perfectCMPArtifact = perfectCMPViz.createArtifact();
perfectCMPArtifact.setVisible(false);
yoGraphicsListRegistry.registerArtifact(graphicListName, perfectCMPArtifact);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public ExplorationHelper(ContactableFoot contactableFoot, FootControlHelper footControlHelper, String prefix, YoVariableRegistry registry)
{
footholdExplorationActive = new BooleanYoVariable(prefix + "FootholdExplorationActive", registry);
timeExploring = new DoubleYoVariable(prefix + "TimeExploring", registry);
startTime = new DoubleYoVariable(prefix + "StartTime", registry);
yoCurrentCorner = new IntegerYoVariable(prefix + "CurrentCornerExplored", registry);
centerOfPressureCommand.setContactingRigidBody(contactableFoot.getRigidBody());
explorationParameters = footControlHelper.getWalkingControllerParameters().getOrCreateExplorationParameters(registry);
if (explorationParameters != null)
copCommandWeight = explorationParameters.getCopCommandWeight();
else
copCommandWeight = null;
soleFrame = footControlHelper.getContactableFoot().getSoleFrame();
partialFootholdControlModule = footControlHelper.getPartialFootholdControlModule();
YoGraphicsListRegistry graphicObjectsListRegistry = footControlHelper.getMomentumBasedController().getDynamicGraphicObjectsListRegistry();
if (graphicObjectsListRegistry != null)
{
yoDesiredCop = new YoFramePoint2d(prefix + "DesiredExplorationCop", ReferenceFrame.getWorldFrame(), registry);
String name = prefix + "Desired Center of Pressure for Exploration";
YoArtifactPosition artifact = new YoArtifactPosition(name, yoDesiredCop.getYoX(), yoDesiredCop.getYoY(), GraphicType.BALL, Color.BLUE, 0.003);
graphicObjectsListRegistry.registerArtifact(prefix + getClass().getSimpleName(), artifact);
}
else
{
yoDesiredCop = null;
}
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
return new YoArtifactPosition(name, (DoubleYoVariable) vars[0], (DoubleYoVariable) vars[1],
YoGraphicPosition.GraphicType.values()[(int) (double) consts[1]], appearance.getColor().get(), consts[0]);
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.setRootTransform()方法的一些代码示例,展示了YoGraphic.
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.toString()方法的一些代码示例,展示了YoGraphic.toString
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.isGraphicObjectShowing()方法的一些代码示例,展示了YoGr
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.setVisible()方法的一些代码示例,展示了YoGraphic.setVis
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.containsNaN()方法的一些代码示例,展示了YoGraphic.conta
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.update()方法的一些代码示例,展示了YoGraphic.update()的具
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.computeRotationTranslation()方法的一些代码示例,展示了
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic.hideGraphicObject()方法的一些代码示例,展示了YoGraphic
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsList类的一些代码示例,展示了YoGraphicsList类的具体用法。这些代码
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition类的一些代码示例,展示了YoGraphicPosition类的具体用
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry类的一些代码示例,展示了YoGraphicsListReg
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicVector类的一些代码示例,展示了YoGraphicVector类的具体用法。这些
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPolygon类的一些代码示例,展示了YoGraphicPolygon类的具体用法。
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicReferenceFrame类的一些代码示例,展示了YoGraphicReferen
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicCoordinateSystem类的一些代码示例,展示了YoGraphicCoord
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicLineSegment类的一些代码示例,展示了YoGraphicLineSegmen
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphic类的一些代码示例,展示了YoGraphic类的具体用法。这些代码示例主要来源于Git
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicShape类的一些代码示例,展示了YoGraphicShape类的具体用法。这些代码
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicText类的一些代码示例,展示了YoGraphicText类的具体用法。这些代码示例
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicCylinder类的一些代码示例,展示了YoGraphicCylinder类的具体用
我是一名优秀的程序员,十分优秀!