本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.addButton()
方法的一些代码示例,展示了SimulationConstructionSet.addButton()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.addButton()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:addButton
暂无
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
public void addButtonToSimulationConstructionSetGUI(AbstractButton button)
{
scs.addButton(button);
}
代码示例来源:origin: us.ihmc/RobotDataCommunication
public void addButtonToSimulationConstructionSetGUI(AbstractButton button)
{
scs.addButton(button);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public void addButtonToSimulationConstructionSetGUI(AbstractButton button)
{
scs.addButton(button);
}
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
public void addPushButtonToSCS(final SimulationConstructionSet scs)
{
if (scs != null)
{
JButton button = new JButton("PushRobot");
button.setToolTipText("Click to push the robot as defined in the variables 'pushDirection' and 'pushMagnitude'");
ActionListener listener = new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
pushCondition = null;
applyForce();
}
};
button.addActionListener(listener);
scs.addButton(button);
}
}
代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit
public void addPushButtonToSCS(final SimulationConstructionSet scs)
{
if (scs != null)
{
JButton button = new JButton("PushRobot");
button.setToolTipText("Click to push the robot as defined in the variables 'pushDirection' and 'pushMagnitude'");
ActionListener listener = new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
pushCondition = null;
applyForce();
}
};
button.addActionListener(listener);
scs.addButton(button);
}
}
代码示例来源:origin: us.ihmc/acsell
public static void createDashboard(final SimulationConstructionSet scs, YoVariableHolder registry)
{
StepprDashboard stepprDashboard = new StepprDashboard(registry);
scs.addExtraJpanel(stepprDashboard, "Dashboard", true);
scs.attachPlaybackListener(stepprDashboard);
JButton showDashboard = new JButton("Show dashboard");
showDashboard.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
scs.getStandardSimulationGUI().selectPanel("Dashboard");
}
});
scs.addButton(showDashboard);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
@Override
public void run()
{
connectButton = new ConnectButton(connection);
connectButton.setRequestFocusEnabled(false);
simulationConstructionSet.addButton(connectButton);
pauseButton = new PauseButton();
pauseButton.setRequestFocusEnabled(false);
if (debug)
simulationConstructionSet.addButton(pauseButton);
recordCheckBox = new RecordCheckBox();
recordCheckBox.setRequestFocusEnabled(false);
recordCheckBox.setSelected(false);
simulationConstructionSet.addCheckBox(recordCheckBox);
}
});
代码示例来源:origin: us.ihmc/Vicon
scs.addButton(pauseButton);
pauseButton.addActionListener(new ActionListener()
代码示例来源:origin: us.ihmc/ihmc-mocap
scs.addButton(pauseButton);
pauseButton.addActionListener(new ActionListener()
代码示例来源:origin: us.ihmc/acsell
public static void createDashboard(final SimulationConstructionSet scs, YoVariableRegistry registry)
{
final WandererDashboard wandererDashboard = new WandererDashboard(registry);
scs.addExtraJpanel(wandererDashboard, "Dashboard", true);
scs.attachPlaybackListener(wandererDashboard);
final WandererExpoFrame wandererExpoFrame = new WandererExpoFrame(registry,false);
wandererExpoFrame.setVisible(true);
scs.attachPlaybackListener(wandererExpoFrame);
JButton showDashboard = new JButton("Show dashboard");
showDashboard.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
scs.getStandardSimulationGUI().selectPanel("Dashboard");
}
});
scs.addButton(showDashboard);
}
代码示例来源:origin: us.ihmc/valkyrie
public ValkyrieDataFileNamespaceRenamer()
{
SimulationConstructionSet scs = new SimulationConstructionSet(new Robot("null"));
YoVariableRegistry rootRegistry = scs.getRootRegistry();
NameSpaceRenamer valkyrieNameSpaceRenamer = new ValkyrieNameSpaceRenamer();
ChangeNamespacesToMatchSimButton changeNamespacesToMatchSimButton = new ChangeNamespacesToMatchSimButton("ChangeValkyrieNamespaces", rootRegistry, valkyrieNameSpaceRenamer);
scs.addButton(changeNamespacesToMatchSimButton);
NameSpaceRenamer stepprNameSpaceRenamer = new StepprNameSpaceRenamer();
ChangeNamespacesToMatchSimButton changeStepprNamespacesToMatchSimButton = new ChangeNamespacesToMatchSimButton("ChangeStepprNamespaces", rootRegistry, stepprNameSpaceRenamer);
scs.addButton(changeStepprNamespacesToMatchSimButton);
scs.startOnAThread();
}
代码示例来源:origin: us.ihmc/valkyrie
public static void main(String[] args)
{
final SimulationConstructionSet scs;
// initialize SCS
DRCRobotModel robotModel = new ValkyrieRobotModel(RobotTarget.REAL_ROBOT, false);
final FloatingRootJointRobot robot =robotModel.createHumanoidFloatingRootJointRobot(false);
SimulationConstructionSetParameters parameters = new SimulationConstructionSetParameters();
parameters.setDataBufferSize(65536);
scs = new SimulationConstructionSet(robot, parameters);
// add sysid button
JButton button = new JButton("findCOM");
button.addActionListener(new LinkComIDActionListener(scs.getDataBuffer(), robot));
scs.addButton(button);
scs.startOnAThread();
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
public DRCLogProcessor() throws IOException
{
drcRobotModel = createDRCRobotModel();
logVisualizer = new LogVisualizer();
scs = logVisualizer.getSimulationConstructionSet();
plotter = logVisualizer.getPlotter();
int numberOfTicksBeforeUpdatingGraphs = 500;
scs.setFastSimulate(true, numberOfTicksBeforeUpdatingGraphs);
logDataProcessorWrapper = new LogDataProcessorWrapper(scs);
sdfRobot = logVisualizer.getSDFRobot();
scs.addButton(new UpdateLogDataProcessorButton(logDataProcessorWrapper));
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
simulationConstructionSet.addButton(updateDiagnosticsWhenHangingHelpersButton);
simulationConstructionSet.addButton(optimizeDiagnosticsWhenHangingHelpersButton);
simulationConstructionSet.addButton(cutBufferButton);
simulationConstructionSet.addButton(copyMeasuredTorqueToAppliedTorqueButton);
代码示例来源:origin: us.ihmc/valkyrie
simulationConstructionSet.addButton(new UpdateDataAndComputeTorqueOffsetsBasedOnAveragesButton(humanoidDiagnosticsWhenHangingSimulation));
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
TorqueSpeedDataExporter dataExporter = new TorqueSpeedDataExporter(scs, robot);
exportTorqueAndSpeedButton.addActionListener(dataExporter);
scs.addButton(exportTorqueAndSpeedButton);
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
TorqueSpeedDataExporter dataExporter = new TorqueSpeedDataExporter(scs, robot);
exportTorqueAndSpeedButton.addActionListener(dataExporter);
scs.addButton(exportTorqueAndSpeedButton);
代码示例来源:origin: us.ihmc/acsell
simulationConstructionSet.addButton(printTorqueOffsetsButton);
内容来源于网络,如有侵权,请联系作者删除!