public void addLogPlaybackListener(YoVariableLogPlaybackListener listener) { listener.setYoVariableRegistry(scs.getRootRegistry()); robot.addLogPlaybackListener(listener); }
private void setReadEveryNTicksTextFieldToCurrentValue(final JTextField textField) { String everyNTicksString = Integer.toString(robot.getReadEveryNTicks()); textField.setText(everyNTicksString); }
final long startTimestamp = robot.getTimestamp(start); final long endTimestamp = robot.getTimestamp(end);
this.timestamp = new LongYoVariable("timestamp", getRobotsYoVariableRegistry()); this.robotTime = new DoubleYoVariable("robotTime", getRobotsYoVariableRegistry()); JointUpdater.getJointUpdaterList(getRootJoints(), jointStates, jointUpdaters); currentRecordTick = new IntegerYoVariable("currentRecordTick", getRobotsYoVariableRegistry()); positionChannel(0); readLogLine(); initialTimestamp = logLine.getLong(0); positionChannel(0);
robot = new YoVariableLogPlaybackRobot(selectedFile, robotDescription, jointStates, parser.getYoVariablesList(), logProperties ,scs); scs.setTimeVariableName(robot.getRobotsYoVariableRegistry().getName() + ".robotTime"); try players = new MultiVideoDataPlayer(selectedFile, logProperties, robot.getTimestamp());
final MarkableJSlider slider = new MarkableJSlider(0, robot.getNumberOfEntries() - 1, 0); final JLabel currentTime = new JLabel(String.valueOf(robot.getFinalTimestamp())); robot.addCurrentRecordTickListener(new VariableChangedListener()
public void wasRewound() { int position = currentRecordTick.getIntegerValue(); try { positionChannel(position); } catch (IOException e) { throw new RuntimeException("Cannot skip to position " + position); } }
this.timestamp = new YoLong("timestamp", getRobotsYoVariableRegistry()); this.robotTime = new YoDouble("robotTime", getRobotsYoVariableRegistry()); JointUpdater.getJointUpdaterList(getRootJoints(), jointStates, jointUpdaters); currentRecordTick = new YoInteger("currentRecordTick", getRobotsYoVariableRegistry()); positionChannel(0); readLogLine(); initialTimestamp = logLine.getLong(0); positionChannel(0);
robot = new YoVariableLogPlaybackRobot(selectedFile, robotDescription, jointStates, parser.getYoVariablesList(), logProperties ,scs); scs.setTimeVariableName(robot.getRobotsYoVariableRegistry().getName() + ".robotTime"); try players = new MultiVideoDataPlayer(selectedFile, logProperties, robot.getTimestamp());
final MarkableJSlider slider = new MarkableJSlider(0, robot.getNumberOfEntries() - 1, 0); final JLabel currentTime = new JLabel(String.valueOf(robot.getFinalTimestamp())); robot.addCurrentRecordTickListener(new VariableChangedListener()
public void seek(int position) { currentRecordTick.set(position); try { positionChannel(position); } catch (IOException e) { throw new RuntimeException(e); } }
final long startTimestamp = robot.getTimestamp(start); final long endTimestamp = robot.getTimestamp(end);
public void seek(int position) { currentRecordTick.set(position); try { positionChannel(position); } catch (IOException e) { throw new RuntimeException(e); } }
private void setReadEveryNTicksTextFieldToCurrentValue(final JTextField textField) { String everyNTicksString = Integer.toString(robot.getReadEveryNTicks()); textField.setText(everyNTicksString); }
public void addLogPlaybackListener(YoVariableLogPlaybackListener listener) { listener.setYoVariableRegistry(scs.getRootRegistry()); robot.addLogPlaybackListener(listener); }
final long startTimestamp = robot.getTimestamp(start); final long endTimestamp = robot.getTimestamp(end); new Thread("IHMC-LogVisualizerGUI")
@Override public void notifyOfRewind() { int position = currentRecordTick.getIntegerValue(); try { positionChannel(position); } catch (IOException e) { throw new RuntimeException("Cannot skip to position " + position); } }
scs.addJLabel(label); String everyNTicksString = Integer.toString(robot.getReadEveryNTicks()); final JTextField textField = new JTextField(everyNTicksString, 3); textField.addActionListener(new ActionListener()
final long startTimestamp = robot.getTimestamp(start); final long endTimestamp = robot.getTimestamp(end); new Thread()
scs.addJLabel(label); String everyNTicksString = Integer.toString(robot.getReadEveryNTicks()); final JTextField textField = new JTextField(everyNTicksString, 3); textField.addActionListener(new ActionListener()