本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.update()
方法的一些代码示例,展示了YoGraphicPosition.update()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicPosition.update()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition
类名称:YoGraphicPosition
方法名:update
暂无
代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test
private void hideGraphics(YoGraphicPosition graphics)
{
graphics.setPositionToNaN();
graphics.update();
}
代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit
@Override
public void initialize()
{
robot.update();
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
{
initialPositions.get(i).set(externalForcePoints.get(i).getYoPosition());
desiredHeight.add(initialPositions.get(i).getZ() / initialPositions.size());
efp_positionViz.get(i).update();
}
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
initialPositions.get(i).setZ(desiredHeight.getDoubleValue());
doControl();
}
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
@Override
public void initialize()
{
robot.update();
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
{
externalForcePoints.get(i).getYoPosition().get(initialPositions.get(i));
desiredHeight.add(initialPositions.get(i).getZ() / initialPositions.size());
efp_positionViz.get(i).update();
}
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
initialPositions.get(i).setZ(desiredHeight.getDoubleValue());
doControl();
}
代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test
private void setGraphics(YoGraphicPosition graphics, FootstepNode node)
{
graphics.setPosition(node.getX(), node.getY(), 0.0);
graphics.update();
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
private void updateContactPointDynamicGraphicObjects(int i, ContactPointInterface contactPoint)
{
if (contactPoint.isInContact())
{
contactPoint.getPosition(tempFramePoint);
tempFramePoint.changeFrame(worldFrame);
contactPointsWorld.get(i).set(tempFramePoint);
normalVectors.get(i).set(tempFrameVector);
dynamicGraphicPositions.get(i).showGraphicObject();
dynamicGraphicVectors.get(i).showGraphicObject();
}
else
{
contactPointsWorld.get(i).setToNaN();
normalVectors.get(i).set(Double.NaN, Double.NaN, Double.NaN);
dynamicGraphicPositions.get(i).hideGraphicObject();
dynamicGraphicVectors.get(i).hideGraphicObject();
}
dynamicGraphicPositions.get(i).update();
dynamicGraphicVectors.get(i).update();
}
}
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
@Override
public void doControl()
{
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
{
initialPositions.get(i).setZ(desiredHeight.getDoubleValue());
ExternalForcePoint efp = externalForcePoints.get(i);
efp.getYoPosition().get(proportionalTerm);
proportionalTerm.sub(initialPositions.get(i));
proportionalTerm.scale(-holdPelvisKp.getDoubleValue());
// proportionalTerm.setZ(Math.max(proportionalTerm.getZ(), 0.0));
efp.getYoVelocity().get(derivativeTerm);
derivativeTerm.scale(-holdPelvisKv.getDoubleValue());
pdControlOutput.add(proportionalTerm, derivativeTerm);
efp.setForce(pdControlOutput);
efp.getYoForce().getYoZ().add(robotWeight / efp_offsetFromRootJoint.size());
efp_positionViz.get(i).update();
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
private boolean isPositionReachable(int xIndex, int yIndex, int zIndex)
{
voxel3dGrid.getVoxel(voxelLocation, xIndex, yIndex, zIndex);
modifiableVoxelLocation.setIncludingFrame(voxelLocation);
modifiableVoxelLocation.changeFrame(ReferenceFrame.getWorldFrame());
currentEvaluationPosition.setPosition(modifiableVoxelLocation);
currentEvaluationPosition.update();
return solver.solveFor(voxelLocation);
}
代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit
@Override
public void doControl()
{
for (int i = 0; i < efp_offsetFromRootJoint.size(); i++)
{
initialPositions.get(i).setZ(desiredHeight.getDoubleValue());
ExternalForcePoint efp = externalForcePoints.get(i);
proportionalTerm.set(efp.getYoPosition());
proportionalTerm.sub(initialPositions.get(i));
proportionalTerm.scale(-holdPelvisKp.getDoubleValue());
// proportionalTerm.setZ(Math.max(proportionalTerm.getZ(), 0.0));
derivativeTerm.set(efp.getYoVelocity());
derivativeTerm.scale(-holdPelvisKv.getDoubleValue());
pdControlOutput.add(proportionalTerm, derivativeTerm);
efp.setForce(pdControlOutput);
efp.getYoForce().getYoZ().add(robotWeight / efp_offsetFromRootJoint.size());
efp_positionViz.get(i).update();
}
}
代码示例来源:origin: us.ihmc/ihmc-manipulation-planning
yoFramePointTreeReachingTime.set(pointTreeReachingTime);
currentTimeInvalidViz.update();
treeReachingTimeViz.update();
currentTimeLineViz.update();
currentTimeViz.update();
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
footPositionGraphics.get(robotQuadrant).update();
内容来源于网络,如有侵权,请联系作者删除!