us.ihmc.robotics.graphics.YoGraphicPlanarRegionsList.<init>()方法的使用及代码示例

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

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

YoGraphicPlanarRegionsList.<init>介绍

[英]Create a YoGraphic for rendering PlanarRegionsLists.
[中]创建用于呈现平面区域列表的YoGraphic。

代码示例

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

/**
* Create a YoGraphic for remote visualization.
* @param name name of this YoGraphic.
* @param yoVariables the list of YoVariables needed for this YoGraphic expected to be in the same order as packed in {@link #getVariables()}.
* @param constants the list of constants (variables that will never change) needed for this YoGraphic expected to be in the same order as packed in {@link #getConstants()}.
* @return a YoGraphic setup for remote visualization.
*/
static YoGraphicPlanarRegionsList createAsRemoteYoGraphic(String name, YoVariable<?>[] yoVariables, double[] constants)
{
 return new YoGraphicPlanarRegionsList(name, yoVariables, constants);
}

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

/** {@inheritDoc} */
@Override
public YoGraphicPlanarRegionsList duplicate(YoVariableRegistry newRegistry)
{
 return new YoGraphicPlanarRegionsList(getName(), getVariables(), getConstants());
}

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

public FootstepPlanningToolboxController(RobotContactPointParameters<RobotSide> contactPointParameters, FootstepPlannerParameters footstepPlannerParameters,
                    VisibilityGraphsParameters visibilityGraphsParameters, StatusMessageOutputManager statusOutputManager,
                    YoVariableRegistry parentRegistry, YoGraphicsListRegistry graphicsListRegistry, double dt)
{
 super(statusOutputManager, parentRegistry);
 this.dt = dt;
 this.yoGraphicPlanarRegionsList = new YoGraphicPlanarRegionsList("FootstepPlannerToolboxPlanarRegions", 200, 30, registry);
 SideDependentList<ConvexPolygon2D> contactPointsInSoleFrame;
 if (contactPointParameters == null)
   contactPointsInSoleFrame = PlannerTools.createDefaultFootPolygons();
 else
   contactPointsInSoleFrame = createFootPolygonsFromContactPoints(contactPointParameters);
 footstepPlanningParameters = new YoFootstepPlannerParameters(registry, footstepPlannerParameters);
 this.visibilityGraphsParameters = new YoVisibilityGraphParameters(visibilityGraphsParameters, registry);
 plannerMap.put(FootstepPlannerType.PLANAR_REGION_BIPEDAL, createPlanarRegionBipedalPlanner(contactPointsInSoleFrame));
 plannerMap.put(FootstepPlannerType.PLAN_THEN_SNAP, new PlanThenSnapPlanner(new TurnWalkTurnPlanner(), contactPointsInSoleFrame));
 plannerMap.put(FootstepPlannerType.A_STAR, createAStarPlanner(contactPointsInSoleFrame));
 plannerMap
    .put(FootstepPlannerType.SIMPLE_BODY_PATH, new SplinePathWithAStarPlanner(footstepPlanningParameters, contactPointsInSoleFrame, parentRegistry, null));
 plannerMap.put(FootstepPlannerType.VIS_GRAPH_WITH_A_STAR,
         new VisibilityGraphWithAStarPlanner(footstepPlanningParameters, this.visibilityGraphsParameters, contactPointsInSoleFrame,
                           graphicsListRegistry, parentRegistry));
 activePlanner.set(FootstepPlannerType.PLANAR_REGION_BIPEDAL);
 graphicsListRegistry.registerYoGraphic("footstepPlanningToolbox", yoGraphicPlanarRegionsList);
 isDone.set(true);
 planId.set(FootstepPlanningRequestPacket.NO_PLAN_ID);
}

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

this.statusOutputManager = statusOutputManager;
this.tickDurationMs = tickDurationMs;
this.yoGraphicPlanarRegionsList = new YoGraphicPlanarRegionsList("FootstepPlannerPlanarRegions", 200, 30, registry);
goalRecommendationHandler = new PlannerGoalRecommendationHandler(allStepPlanningStages, stepPlanningStagesInProgress);

相关文章