gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry.registerArtifactList()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 14:30:40 28 4
gpt4 key购买 nike

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

YoGraphicsListRegistry.registerArtifactList介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void registerArtifactLists(ArrayList<ArtifactList> artifactLists)
{
 for (ArtifactList artifactList : artifactLists)
 {
   registerArtifactList(artifactList);
 }
}

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

public void registerArtifactLists(ArrayList<ArtifactList> artifactLists)
{
 for (ArtifactList artifactList : artifactLists)
 {
   registerArtifactList(artifactList);
 }
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void registerArtifacts(String listName, Artifact[] artifacts)
{
 ArtifactList list = new ArtifactList(listName, artifacts);
 registerArtifactList(list);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void registerArtifacts(String listName, ArrayList<Artifact> artifacts)
{
 ArtifactList list = new ArtifactList(listName, artifacts);
 registerArtifactList(list);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void registerArtifact(String listName, Artifact artifact)
{
 ArtifactList list = new ArtifactList(listName, artifact);
 registerArtifactList(list);
}

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

public void registerArtifact(String listName, Artifact artifact)
{
 ArtifactList list = new ArtifactList(listName, artifact);
 registerArtifactList(list);
}

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

public void registerArtifacts(String listName, Artifact[] artifacts)
{
 ArtifactList list = new ArtifactList(listName, artifacts);
 registerArtifactList(list);
}

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

public void registerArtifacts(String listName, ArrayList<Artifact> artifacts)
{
 ArtifactList list = new ArtifactList(listName, artifacts);
 registerArtifactList(list);
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

private void registerArtifacts(String name, YoGraphicsListRegistry yoGraphicsListRegistry)
{
 if (yoGraphicsListRegistry != null)
 {
   artifactList = new ArtifactList(name + "Balls");
   for (YoGraphicPosition yoGraphicPosition : yoGraphicPositions)
   {
    artifactList.add(yoGraphicPosition.createArtifact());
   }
   yoGraphicsListRegistry.registerArtifactList(artifactList);
 }
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

yoGraphicsListRegistry.registerArtifactList(artifactList);

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

yoGraphicsListRegistry.registerArtifactList(artifactList);

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

yoGraphicsListRegistry.registerArtifactList(artifactList);

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

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry, boolean visualize)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 YoGraphicPosition previousExitCMP = new YoGraphicPosition("previousExitCMP", previousStanceExitCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition entryCMP = new YoGraphicPosition("entryCMP", stanceEntryCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition exitCMP = new YoGraphicPosition("exitCMP", stanceExitCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition finalICP = new YoGraphicPosition("finalICP", this.finalICP, 0.005, YoAppearance.Black(), GraphicType.SOLID_BALL);
 yoGraphicsList.add(finalICP);
 artifactList.add(previousExitCMP.createArtifact());
 artifactList.add(entryCMP.createArtifact());
 artifactList.add(exitCMP.createArtifact());
 artifactList.add(finalICP.createArtifact());
 artifactList.setVisible(visualize);
 yoGraphicsList.setVisible(visualize);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

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

public SimpleDesiredHeadingControlModuleVisualizer(ProcessedSensorsInterface processedSensors, YoVariableRegistry registry,
   YoGraphicsListRegistry yoGraphicsListRegistry)
{
 this.processedSensors = processedSensors;
 desiredHeadingLine = new YoFrameLineSegment2d("desiredHeadingLine", "", ReferenceFrame.getWorldFrame(), registry);
 finalHeadingLine = new YoFrameLineSegment2d("finalHeadingLine", "", ReferenceFrame.getWorldFrame(), registry);
 if (yoGraphicsListRegistry != null)
 {
   ArtifactList artifactList = new ArtifactList("Simple Desired Heading");
   YoArtifactLineSegment2d yoFrameLineSegment2dArtifact = new YoArtifactLineSegment2d("Desired Heading Line", desiredHeadingLine, Color.MAGENTA);
   artifactList.add(yoFrameLineSegment2dArtifact);
   yoFrameLineSegment2dArtifact = new YoArtifactLineSegment2d("Final Heading Line", finalHeadingLine, Color.ORANGE);
   artifactList.add(yoFrameLineSegment2dArtifact);
   yoGraphicsListRegistry.registerArtifactList(artifactList);
 }
}

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

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 referenceCMPsCalculator.createVisualizerForConstantCMPs(yoGraphicsList, artifactList);
 for (int i = 0; i < numberFootstepsToConsider.getIntegerValue() - 1; i++)
 {
   YoGraphicPosition icpEarlyCornerPointsViz = new YoGraphicPosition("EntryCornerPoints" + i,
      entryCornerPoints.get(i).buildUpdatedYoFramePointForVisualizationOnly(), ICP_CORNER_POINT_SIZE, YoAppearance.Blue(), GraphicType.SOLID_BALL);
   yoGraphicsList.add(icpEarlyCornerPointsViz);
   artifactList.add(icpEarlyCornerPointsViz.createArtifact());
   YoGraphicPosition lateCornerPointsViz = new YoGraphicPosition("ExitCornerPoints" + i,
      exitCornerPoints.get(i).buildUpdatedYoFramePointForVisualizationOnly(), ICP_CORNER_POINT_SIZE, YoAppearance.Blue(), GraphicType.BALL);
   yoGraphicsList.add(lateCornerPointsViz);
   artifactList.add(lateCornerPointsViz.createArtifact());
 }
 YoGraphicPosition singleSupportInitialICPViz = new YoGraphicPosition("singleSupportInitialICP",
    singleSupportInitialICP.buildUpdatedYoFramePointForVisualizationOnly(), 0.004, YoAppearance.Chocolate(), GraphicType.SOLID_BALL);
 yoGraphicsList.add(singleSupportInitialICPViz);
 artifactList.add(singleSupportInitialICPViz.createArtifact());
 YoGraphicPosition singleSupportFinalICPViz = new YoGraphicPosition("singleSupportFinalICP",
    singleSupportFinalICP.buildUpdatedYoFramePointForVisualizationOnly(), 0.004, YoAppearance.Chocolate(), GraphicType.BALL);
 yoGraphicsList.add(singleSupportFinalICPViz);
 artifactList.add(singleSupportFinalICPViz.createArtifact());
 icpSingleSupportTrajectoryGenerator.createVisualizers(yoGraphicsList, artifactList);
 artifactList.setVisible(VISUALIZE);
 yoGraphicsList.setVisible(VISUALIZE);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

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

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry, boolean visualize)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 YoGraphicPosition actualEndOfStateICP = new YoGraphicPosition("actualEndOfStateICP", this.actualEndOfStateICP, 0.005, YoAppearance.Aquamarine(),
    GraphicType.SOLID_BALL);
 YoGraphicPosition nominalReferenceICP = new YoGraphicPosition("nominalReferenceICP", this.nominalReferenceICP, 0.01, YoAppearance.LightYellow(),
    GraphicType.BALL);
 YoGraphicPosition nominalEndOfStateICP = new YoGraphicPosition("nominalEndOfStateICP", this.nominalEndOfStateICP, 0.01, YoAppearance.Green(),
    GraphicType.SOLID_BALL);
 yoGraphicsList.add(actualEndOfStateICP);
 yoGraphicsList.add(nominalReferenceICP);
 yoGraphicsList.add(nominalEndOfStateICP);
 artifactList.add(actualEndOfStateICP.createArtifact());
 artifactList.add(nominalReferenceICP.createArtifact());
 artifactList.add(nominalEndOfStateICP.createArtifact());
 yoGraphicsList.setVisible(visualize);
 artifactList.setVisible(visualize);
 YoGraphicPosition referenceICP = new YoGraphicPosition("controllerReferenceICP", controllerReferenceICP, 0.005, YoAppearance.Yellow(), GraphicType.BALL_WITH_CROSS);
 YoGraphicPosition referenceCMP = new YoGraphicPosition("controllerReferenceCMP", controllerReferenceCMP, 0.005, YoAppearance.Beige(), GraphicType.BALL_WITH_CROSS);
 String name = "ICPOptimization";
 yoGraphicsListRegistry.registerArtifact(name, referenceICP.createArtifact());
 yoGraphicsListRegistry.registerArtifact(name, referenceCMP.createArtifact());
 yoGraphicsListRegistry.registerYoGraphic(name, referenceICP);
 yoGraphicsListRegistry.registerYoGraphic(name, referenceCMP);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

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

public BipedSupportPolygons(SideDependentList<ReferenceFrame> ankleZUpFrames, ReferenceFrame midFeetZUpFrame,
   SideDependentList<ReferenceFrame> soleZUpFrames, YoVariableRegistry parentRegistry, YoGraphicsListRegistry yoGraphicsListRegistry)
{
 this.ankleZUpFrames = ankleZUpFrames;
 this.midFeetZUp = midFeetZUpFrame;
 this.soleZUpFrames = soleZUpFrames;
 supportPolygonViz = new YoFrameConvexPolygon2d("combinedPolygon", "", worldFrame, 2 * maxNumberOfContactPointsPerFoot, registry);
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 YoArtifactPolygon supportPolygonArtifact = new YoArtifactPolygon("Combined Polygon", supportPolygonViz, Color.pink, false);
 artifactList.add(supportPolygonArtifact);
 for (RobotSide robotSide : RobotSide.values)
 {
   footPolygonsInWorldFrame.put(robotSide, new FrameConvexPolygon2d());
   footPolygonsInSoleFrame.put(robotSide, new FrameConvexPolygon2d());
   footPolygonsInSoleZUpFrame.put(robotSide, new FrameConvexPolygon2d());
   footPolygonsInAnkleZUp.put(robotSide, new FrameConvexPolygon2d());
   footPolygonsInMidFeetZUp.put(robotSide, new FrameConvexPolygon2d());
   String robotSidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
   YoFrameConvexPolygon2d footPolygonViz = new YoFrameConvexPolygon2d(robotSidePrefix + "FootPolygon", "", worldFrame, maxNumberOfContactPointsPerFoot, registry);
   footPolygonsViz.put(robotSide, footPolygonViz);
   YoArtifactPolygon footPolygonArtifact = new YoArtifactPolygon(robotSide.getCamelCaseNameForMiddleOfExpression() + " Foot Polygon", footPolygonViz, defaultFeetColors.get(robotSide), false);
   artifactList.add(footPolygonArtifact);
 }
 if (yoGraphicsListRegistry != null)
 {
   yoGraphicsListRegistry.registerArtifactList(artifactList);
 }
 parentRegistry.addChild(registry);
}

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

yoGraphicsListRegistry.registerArtifactList(artifacts);

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

yoFootPolygon.set(footPolygonInWorld);
yoGraphicsListRegistry.registerArtifactList(artifacts);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com