gpt4 book ai didi

us.ihmc.yoVariables.variable.YoFramePoint3D.setToNaN()方法的使用及代码示例

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

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

YoFramePoint3D.setToNaN介绍

暂无

代码示例

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

@Override
public void setPositionToNaN()
{
 position.setToNaN();
}

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

@Override
public void setPositionToNaN()
{
 position.setToNaN();
}

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

@Override
public void setPositionToNaN()
{
 position.setToNaN();
}

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

@Override
public void setPositionToNaN()
{
 position.setToNaN();
}

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

public void setToNaN()
{
 for (int i = 0; i < ccwOrderedYoFramePoints.length; i++)
   ccwOrderedYoFramePoints[i].setToNaN();
}

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

public void setToNaN()
{
 pointOne.setToNaN();
 pointTwo.setToNaN();
 pointThree.setToNaN();
 this.update();
}

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

public void setToNaN()
{
 start.setToNaN();
 end.setToNaN();
 vector.setToNaN();
}

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

@Override
public void setToNaN()
{
 position.setToNaN();
 orientation.setToNaN();
}

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

public void hide()
{
 base.setToNaN();
 vector.setToNaN();
}

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

public void set(List<? extends Point3DReadOnly> points)
{
 if (points.size() > this.ccwOrderedYoFramePoints.length)
   throw new RuntimeException("Cannot plot more vertices than the maximum number");
 numberOfPoints.set(points.size());
 for (int i = 0; i < numberOfPoints.getValue(); i++)
   ccwOrderedYoFramePoints[i].set(points.get(i));
 for (int i = numberOfPoints.getValue(); i < ccwOrderedYoFramePoints.length; i++)
   ccwOrderedYoFramePoints[i].setToNaN();
}

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

public void setPoseToNaN()
{
 yoFramePoint.setToNaN();
 if (isUsingYawPitchRoll())
   yoFrameYawPitchRoll.setToNaN();
 else
   yoFrameQuaternion.setToNaN();
}

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

public void set(Point3DReadOnly[] points)
{
 if (points.length > this.ccwOrderedYoFramePoints.length)
   throw new RuntimeException("Cannot plot more vertices than the maximum number");
 numberOfPoints.set(points.length);
 for (int i = 0; i < numberOfPoints.getValue(); i++)
   ccwOrderedYoFramePoints[i].set(points[i]);
 for (int i = numberOfPoints.getValue(); i < ccwOrderedYoFramePoints.length; i++)
   ccwOrderedYoFramePoints[i].setToNaN();
}

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

public void hide()
{
 position.setToNaN();
 if (isUsingYawPitchRoll())
   yawPitchRoll.setToNaN();
 else
   quaternion.setToNaN();
}

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

public void clear()
{
 currentSolutionQuality.set(Double.POSITIVE_INFINITY);
 yoDesiredChestOrientation.setToNaN();
 yoDesiredPelvisOrientation.setToNaN();
 yoDesiredPelvisPosition.setToNaN();
 for (RobotSide robotSide : RobotSide.values)
 {
   yoDesiredHandPositions.get(robotSide).setToNaN();
   yoDesiredHandOrientations.get(robotSide).setToNaN();
 }
}

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

private void setupVisualization(String prefix, YoGraphicsListRegistry graphicsListRegistry, YoVariableRegistry registry)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(prefix + "VisGraph");
 for (int i = 0; i < bodyPathPointsForVisualization; i++)
 {
   YoFramePoint3D point = new YoFramePoint3D(prefix + "BodyPathPoint" + i, ReferenceFrame.getWorldFrame(), registry);
   point.setToNaN();
   bodyPathPoints.add(point);
   YoGraphicPosition pointVisualization = new YoGraphicPosition(prefix + "BodyPathPoint" + i, point, 0.02, YoAppearance.Yellow());
   yoGraphicsList.add(pointVisualization);
 }
 graphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
}

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

private void updateBodyPathVisualization()
{
 Pose2D tempPose = new Pose2D();
 for (int i = 0; i < bodyPathPointsForVisualization; i++)
 {
   double percent = (double) i / (double) (bodyPathPointsForVisualization - 1);
   bodyPathPlanner.getPointAlongPath(percent, tempPose);
   Point3D position = new Point3D();
   position.set(tempPose.getPosition());
   Point3DReadOnly projectedPoint = PlanarRegionTools.projectPointToPlanesVertically(position, planarRegionsList);
   if (projectedPoint != null)
   {
    bodyPathPoints.get(i).set(projectedPoint);
   }
   else
   {
    bodyPathPoints.get(i).setToNaN();
   }
 }
}

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

public YoGraphicPolygon3D(String name, int maxNumberOfPolygonVertices, double height, AppearanceDefinition appearance, YoVariableRegistry registry)
{
 super(name);
 ccwOrderedYoFramePoints = new YoFramePoint3D[maxNumberOfPolygonVertices];
 ccwOrderedPoints = new ArrayList<>(maxNumberOfPolygonVertices);
 for (int i = 0; i < maxNumberOfPolygonVertices; i++)
 {
   ccwOrderedYoFramePoints[i] = new YoFramePoint3D(name + "Point" + i, ReferenceFrame.getWorldFrame(), registry);
   ccwOrderedYoFramePoints[i].setToNaN();
   ccwOrderedPoints.add(new Point3D());
 }
 this.height = height;
 this.appearance = appearance;
 numberOfPoints = new YoInteger(name + "NumberOfPoints", registry);
 graphics3dObject = new Graphics3DObject();
 graphics3dObject.setChangeable(true);
 instruction = new Graphics3DAddMeshDataInstruction(EMPTY_MESH, appearance);
 graphics3dObject.addInstruction(instruction);
}

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

yoPoint.setToNaN();
YoGraphicPosition yoGraphic = new YoGraphicPosition("ActiveNode " + i, yoPoint, 0.025, YoAppearance.Green());
activeNodeGraphicsQueue.add(yoGraphic);
yoPoint.setToNaN();
YoGraphicPosition yoGraphic = new YoGraphicPosition("InactiveNode " + i, yoPoint, 0.025, YoAppearance.Red());
inactiveNodeGraphicsQueue.add(yoGraphic);

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

rayPointsToPack.get(rayIndex).setToNaN();

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

rayPointsToPack.get(rayIndex).setToNaN();

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