示例#1
0
    private void initComponents() {
      posePanel = new PosePanel();
      waypointPanel = new WaypointPanel();
      cameraPanel = new CameraPanel();

      // Put everything together, using a vertical BoxLayout
      setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));

      posePanel.setBorder(BorderFactory.createTitledBorder("Pose"));
      posePanel.setWorldPanel(_worldPanel);
      add(posePanel);

      add(Box.createRigidArea(new Dimension(0, 5)));

      waypointPanel.setBorder(BorderFactory.createTitledBorder("Waypoint"));
      waypointPanel.setWorldPanel(_worldPanel);
      add(waypointPanel);

      add(Box.createRigidArea(new Dimension(0, 5)));

      cameraPanel.setBorder(BorderFactory.createTitledBorder("Camera"));
      add(cameraPanel);
    }
示例#2
0
 public void setUpdateRate(long period_ms) {
   posePanel.setUpdateRate(period_ms);
   waypointPanel.setUpdateRate(period_ms);
   cameraPanel.setUpdateRate(period_ms);
 }
示例#3
0
 public void setVehicle(AsyncVehicleServer vehicle) {
   posePanel.setVehicle(vehicle);
   waypointPanel.setVehicle(vehicle);
   cameraPanel.setVehicle(vehicle);
 }