us.ihmc.simulationconstructionset.SimulationConstructionSet.getStandardSimulationGUI()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(73)

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

SimulationConstructionSet.getStandardSimulationGUI介绍

暂无

代码示例

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

@Override
  public void actionPerformed(ActionEvent e)
  {
   scs.getStandardSimulationGUI().selectPanel("Dashboard");
  }
});

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

@Override
  public void actionPerformed(ActionEvent e)
  {
   scs.getStandardSimulationGUI().selectPanel("Dashboard");
  }
});

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

/**
  * Create video from current viewport using the file path and file header
  * @param dataAndVideosTagDirectory
  * @param fileHeader
  */
  private void createVideo(File dataAndVideosTagDirectory, String fileHeader)
  {
   File video = new File(dataAndVideosTagDirectory, fileHeader + "_Video.mov");
   scs.getStandardSimulationGUI().getViewportPanel().getStandardGUIActions().createVideo(video);
  }
}

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

scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);

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

StandardSimulationGUI scsGUI = scs.getStandardSimulationGUI();

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

public MidiSliderBoard(SimulationConstructionSet scs, boolean showVirtualSliderBoard, boolean showSliderBoardVisualizer)
{
 this((YoVariableHolder) scs);
 boolean showSCSWindows = scs != null && scs.getSimulationConstructionSetParameters().getShowWindows();
 if ((showSCSWindows && preferedDevice.equals(Devices.VIRTUAL)) || (showVirtualSliderBoard || alwaysShowVirtualSliderBoard))
 {
      if ((scs == null) || (scs.getStandardSimulationGUI() != null))
   {
    PrintTools.info(this, "Setting Up Virtual Slider Board");
    virtualSliderBoard = new VirtualSliderBoardGui(this, closeableAndDisposableRegistry);
   }
 }
 else if (!preferedDevice.equals(Devices.VIRTUAL) && showSliderBoardVisualizer)
 {
   visualizer = new MidiSliderBoardConfigurationVisualizer(controlsHashTable);
 }
 if (scs != null)
 {
   printIfDebug("Attaching exit action listener " + getClass().getSimpleName() + " to SCS");
   scs.attachExitActionListener(this);
 }
}

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

scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);

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

public RobotFreezeFramer(Robot robot, Joint rootJoint, SimulationConstructionSet scs)
{
 this.robot = robot;
 this.graphicsRobot = scs.getStandardSimulationGUI().getGraphicsRobot(robot);
 this.graphics3dAdapter = scs.getGraphics3dAdapter();
 if(rootJoint != null)
 {
   this.rootJoint = graphicsRobot.getGraphicsJoint(rootJoint);
 }
 else
 {
   this.rootJoint = graphicsRobot.getRootNode();
 }
 
 doFreezeFrame.set(false);
 freezeInterval.set(1.0);
 nextFreezeTime.set(1.0);
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer

scs.getStandardSimulationGUI().addJComponentToMainPanel(gui, BorderLayout.SOUTH);

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

public <T extends RobotControllerWithAttachRobot> SimulationConstructionSet setupSCS(T controller) throws InterruptedException
{
 boolean showGUI = true;
 FallingBrickRobot robot = new FallingBrickRobot();
 controller.attachRobot(robot);
 assertFalse(controller.getYoVariableRegistry() == null);
 robot.setController(controller);
 
 SimulationConstructionSetParameters parameters = SimulationConstructionSetParameters.createFromSystemProperties();;
 parameters.setCreateGUI(showGUI);
 parameters.setDataBufferSize(2000);
 SimulationConstructionSet scs = new SimulationConstructionSet(robot, parameters);
 scs.setFrameMaximized();
 scs.startOnAThread();
 Thread.sleep(DELAY_TIME_FOR_HUMAN_CONVENIENT_VIEWING);
 StandardSimulationGUI scsGUI = scs.getStandardSimulationGUI();
 EntryBoxArrayPanel temp = scsGUI.getEntryBoxArrayPanel();
 temp.removeAllEntryBoxes();
 scsGUI.getEntryBoxArrayPanel().updateUI();
 Thread.sleep(DELAY_TIME_FOR_HUMAN_CONVENIENT_VIEWING);
 return scs;
}

相关文章

微信公众号

最新文章

更多

SimulationConstructionSet类方法