gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFrameConvexPolygon2d.hide()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 06:16:49 27 4
gpt4 key购买 nike

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

YoFrameConvexPolygon2d.hide介绍

暂无

代码示例

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

public void hide()
{
 yoNextFootstepPolygon.hide();
}

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

public void hide()
{
 yoCaptureRegionPolygon.hide();
}

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

public void clearAndHide()
{
 hide();
 setToNaN();
}

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

public void reset()
{
 shrinkCounter.set(0);
 footholdState.set(null);
 yoUnsafePolygon.hide();
 yoShrunkFootPolygon.hide();
 yoFullSupportAfterShrinking.hide();
 for (RotationCalculatorType calculatorType : RotationCalculatorType.values)
 {
   if (!rotationCalculators.containsKey(calculatorType)) continue;
   rotationCalculators.get(calculatorType).reset();
 }
 footCoPOccupancyGrid.reset();
 shrunkFootPolygon.setIncludingFrameAndUpdate(defaultFootPolygon);
 backupFootPolygon.setIncludingFrameAndUpdate(defaultFootPolygon);
}

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

public void setConvexPolygon2d(List<FramePoint> framePoints)
{
 if (framePoints == null)
 {
   hide();
   setToNaN();
   return;
 }
 try
 {
   convexPolygon2dForWriting.clear(referenceFrame);
   convexPolygon2dForWriting.setAndUpdate(framePoints);
   getYoValuesFromFrameConvexPolygon2d();
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling setConvexPolygon2d(List<FramePoint>).");
 }
}

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

public void setConvexPolygon2d(FramePoint2d[] framePoints)
{
 if (framePoints == null)
 {
   hide();
   setToNaN();
   return;
 }
 try
 {
   convexPolygon2dForWriting.clear(referenceFrame);
   convexPolygon2dForWriting.setAndUpdate(framePoints);
   getYoValuesFromFrameConvexPolygon2d();
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling setConvexPolygon2d(List<FramePoint>).");
 }
}

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

public void setFrameConvexPolygon2d(FrameConvexPolygon2d polygon)
{
 if (polygon == null)
 {
   hide();
   setToNaN();
   return;
 }
 try
 {
   polygon.checkReferenceFrameMatch(referenceFrame);
   convexPolygon2dForWriting.setAndUpdate(polygon);
   getYoValuesFromFrameConvexPolygon2d();
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling setConvexPolygon2d(FrameConvexPolygon2d).");
 }
}

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

public void setConvexPolygon2d(ConvexPolygon2d polygon)
{
 if (polygon == null)
 {
   hide();
   setToNaN();
   return;
 }
 try
 {
   convexPolygon2dForWriting.clear(referenceFrame);
   convexPolygon2dForWriting.setAndUpdate(polygon);
   getYoValuesFromFrameConvexPolygon2d();
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling setConvexPolygon2d(ConvexPolygon2d).");
 }
}

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

public void setConvexPolygon2d(FramePoint[] framePoints)
{
 if (framePoints == null)
 {
   hide();
   setToNaN();
   return;
 }
 try
 {
   convexPolygon2dForWriting.clear(referenceFrame);
   convexPolygon2dForWriting.setAndUpdate(framePoints);
   getYoValuesFromFrameConvexPolygon2d();
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling setConvexPolygon2d(FramePoint[]).");
 }
}

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

private void visualize()
{
 supportPolygonViz.setFrameConvexPolygon2d(supportPolygonInWorld);
 for (RobotSide robotSide : RobotSide.values)
 {
   YoFrameConvexPolygon2d footPolygonViz = footPolygonsViz.get(robotSide);
   FrameConvexPolygon2d footPolygon = footPolygonsInWorldFrame.get(robotSide);
   if (footPolygon.isEmpty())
    footPolygonViz.hide();
   else
    footPolygonViz.setFrameConvexPolygon2d(footPolygon);
 }
}

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

private void doNothing()
{
 footholdState.set(PartialFootholdState.FULL);
 yoUnsafePolygon.hide();
 shrunkFootPolygonInWorld.setIncludingFrame(shrunkFootPolygon);
 shrunkFootPolygonInWorld.changeFrameAndProjectToXYPlane(worldFrame);
 yoShrunkFootPolygon.setFrameConvexPolygon2d(shrunkFootPolygonInWorld);
 unsafeArea.set(0.0);
}

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