gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicReferenceFrame类的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 23:08:40 25 4
gpt4 key购买 nike

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

YoGraphicReferenceFrame介绍

暂无

代码示例

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

static YoGraphicReferenceFrame createAsRemoteYoGraphic(String name, YoVariable<?>[] yoVariables, double[] constants)
{
 return new YoGraphicReferenceFrame(name, yoVariables, constants);
}

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

private void updateSensorVisualizer()
{
 if (dynamicGraphicForceSensorMeasurementFrame != null)
   dynamicGraphicForceSensorMeasurementFrame.update();
 if (dynamicGraphicForceSensorFootFrame != null)
   dynamicGraphicForceSensorFootFrame.update();
}

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

@Override
  public void update()
  {
   if (referenceFrame != null)
     this.setToReferenceFrame(referenceFrame);
  }
}

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

private static YoGraphicReferenceFrame yoGraphicReferenceFrameFromMessage(String name, YoVariable<?>[] vars, double[] consts,
                                     AppearanceDefinition appearance)
{
 return YoGraphicReferenceFrame.createAsRemoteYoGraphic(name, vars, consts);
}

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

private void setupDynamicGraphicObjects(YoGraphicsListRegistry yoGraphicsListRegistry, List<? extends IMUSensorReadOnly> imuProcessedOutputs)
{
 for (int i = 0; i < imuProcessedOutputs.size(); i++)
 {
   YoGraphicReferenceFrame dynamicGraphicMeasurementFrame = new YoGraphicReferenceFrame(imuProcessedOutputs.get(i).getMeasurementFrame(), registry, 1.0);
   dynamicGraphicMeasurementFrames.add(dynamicGraphicMeasurementFrame);
 }
 yoGraphicsListRegistry.registerYoGraphics("imuFrame", dynamicGraphicMeasurementFrames);
}

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

private void updateDynamicGraphicReferenceFrames()
  {
   for (YoGraphicReferenceFrame frame : dynamicGraphicReferenceFrames)
   {
     frame.update();
   }
  }
}

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

@Override
  public void update()
  {
   this.setToReferenceFrame(referenceFrame);
  }
}

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

public VisualizeFramesController(ArrayList<ReferenceFrame> referenceFrames, YoGraphicsListRegistry yoGraphicsListRegistry, double coordinateSystemLength)
{
 for (ReferenceFrame frame : referenceFrames)
 {
   YoGraphicReferenceFrame dynamicGraphicReferenceFrame = new YoGraphicReferenceFrame(frame, registry, coordinateSystemLength);
   dynamicGraphicReferenceFrames.add(dynamicGraphicReferenceFrame);
   yoGraphicsList.add(dynamicGraphicReferenceFrame);
 }
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

@Override
  public void doControl()
  {
   for (YoGraphicReferenceFrame yoGraphicReferenceFrame : yoGraphicReferenceFrames)
   {
     yoGraphicReferenceFrame.update();
   }
  }
}

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

frameViz.setToReferenceFrame(controlFrame);

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

public CommonHumanoidReferenceFramesVisualizer(CommonHumanoidReferenceFrames referenceFrames, YoGraphicsListRegistry yoGraphicsListRegistry, YoVariableRegistry parentRegistry)
{
 String vizName = referenceFrames.getClass().getSimpleName();
 for (RobotSide robotSide : RobotSide.values)
 {
   YoGraphicReferenceFrame yoGraphic = new YoGraphicReferenceFrame(referenceFrames.getAnkleZUpFrame(robotSide), registry, 0.2);
   yoGraphicsListRegistry.registerYoGraphic(vizName, yoGraphic);
   referenceFramesVisualizers.add(yoGraphic);
 }
 YoGraphicReferenceFrame midFeetFrame = new YoGraphicReferenceFrame(referenceFrames.getMidFeetZUpFrame(), registry, 0.2);
 yoGraphicsListRegistry.registerYoGraphic(vizName, midFeetFrame);
 referenceFramesVisualizers.add(midFeetFrame);
 YoGraphicReferenceFrame comFrame = new YoGraphicReferenceFrame(referenceFrames.getCenterOfMassFrame(), registry, 0.2);
 yoGraphicsListRegistry.registerYoGraphic(vizName, comFrame);
 referenceFramesVisualizers.add(comFrame);
 YoGraphicReferenceFrame pelvisFrame = new YoGraphicReferenceFrame(referenceFrames.getPelvisFrame(), registry, 0.2);
 yoGraphicsListRegistry.registerYoGraphic(vizName, pelvisFrame);
 referenceFramesVisualizers.add(pelvisFrame);
 parentRegistry.addChild(registry);
}

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

private void updateGraphics()
{
 for (int i = 0; i < dynamicGraphicReferenceFrames.size(); i++)
 {
   dynamicGraphicReferenceFrames.get(i).update();
 }
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public InverseDynamicsMechanismReferenceFrameVisualizer(RigidBodyBasics rootBody, YoGraphicsListRegistry yoGraphicsListRegistry,
   double length)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(name);
 List<JointBasics> jointStack = new ArrayList<JointBasics>(rootBody.getChildrenJoints());
 while (!jointStack.isEmpty())
 {
   JointBasics joint = jointStack.get(0);
   ReferenceFrame referenceFrame = joint.getSuccessor().getBodyFixedFrame();
   YoGraphicReferenceFrame yoGraphicReferenceFrame = new YoGraphicReferenceFrame(referenceFrame, registry, false, length);
   yoGraphicsList.add(yoGraphicReferenceFrame);
   yoGraphicReferenceFrames.add(yoGraphicReferenceFrame);
   List<? extends JointBasics> childrenJoints = joint.getSuccessor().getChildrenJoints();
   jointStack.addAll(childrenJoints);
   jointStack.remove(joint);
 }
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
}

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

public void update()
  {
   for (int i = 0; i < referenceFramesVisualizers.size(); i++)
   {
     referenceFramesVisualizers.get(i).update();
   }
  }
}

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

cameraGraphic = new YoGraphicReferenceFrame(cameraReferenceFrame, registry, true, 0.5);
detectorGraphic = new YoGraphicReferenceFrame(detectorReferenceFrame, registry, true, 1.0);
locatedFiducialGraphic = new YoGraphicReferenceFrame(locatedFiducialReferenceFrame, registry, true, 0.1);
reportedFiducialGraphic = new YoGraphicReferenceFrame(reportedFiducialReferenceFrame, registry, true, 0.2);

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

@Override
public void doControl()
{
 for (int i = 0; i < yoGraphicReferenceFrames.size(); i++)
 {
   yoGraphicReferenceFrames.get(i).update();
 } 
}

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

private void createFrameVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry, FullHumanoidRobotModel fullRobotModel, String listName, boolean enable)
{
 YoGraphicsList list = new YoGraphicsList(listName);
 if (yoGraphicsListRegistry != null)
 {
   for (RobotSide robotSide : RobotSide.values)
   {
    ReferenceFrame handPositionControlFrame = fullRobotModel.getHandControlFrame(robotSide);
    if (handPositionControlFrame != null)
    {
      YoGraphicReferenceFrame dynamicGraphicReferenceFrame = new YoGraphicReferenceFrame(handPositionControlFrame, registry, 0.1);
      dynamicGraphicReferenceFrames.add(dynamicGraphicReferenceFrame);
      list.add(dynamicGraphicReferenceFrame);
    }
   }
   yoGraphicsListRegistry.registerYoGraphicsList(list);
   if (!enable)
    list.hideYoGraphics();
 }
}

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

private void updateVisualizers()
{
 if (copVisualizer != null)
   copVisualizer.update();
 if (visualizeMeasurementFrames)
 {
   for (int i = 0; i < dynamicGraphicMeasurementFrames.size(); i++)
    dynamicGraphicMeasurementFrames.get(i).update();
 }
 if (ENABLE_JOINT_TORQUES_FROM_FORCE_SENSORS_VIZ)
   jointTorqueFromForceSensorVisualizer.update();
}

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

cameraGraphic = new YoGraphicReferenceFrame(cameraReferenceFrame, registry, 0.5);
detectorGraphic = new YoGraphicReferenceFrame(detectorReferenceFrame, registry, 1.0);
locatedFiducialGraphic = new YoGraphicReferenceFrame(locatedFiducialReferenceFrame, registry, 0.1);
reportedFiducialGraphic = new YoGraphicReferenceFrame(reportedFiducialReferenceFrame, registry, 0.2);

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

private void initialize()
{
 sphereVoxelShape = new SphereVoxelShape(gridFrame, voxelSize, numberOfRays, numberOfRotationsAroundRay, SphereVoxelType.graspOrigin);
 voxel3dGrid = new Voxel3DGrid(gridFrame, sphereVoxelShape, gridSizeInNumberOfVoxels, voxelSize);
 if (reachabilityMapFileWriter != null)
   reachabilityMapFileWriter.initialize(solver.getRobotArmJoints(), voxel3dGrid);
 gridFrameViz.update();
 scs.addStaticLinkGraphics(ReachabilityMapTools.createBoundingBoxGraphics(voxel3dGrid.getMinPoint(), voxel3dGrid.getMaxPoint()));
}

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