examples.dlife.robot.pioneer
Class PioneerCameraDrone

java.lang.Object
  extended by dlife.robot.Controller
      extended by examples.dlife.robot.pioneer.PioneerCameraDrone

public class PioneerCameraDrone
extends Controller

A drone controller for the Pioneer PTZ camera and streaming video. This Controller loads loads the CannonVCC50i PTZ controller and starts up a Camera device for the streaming video. The video can be seen/filtered and the PTZ can be controlled via the ControlCenter.

To run this example:

  1. Complete the Basic dLife Installation.
  2. Complete the Pioneer Setup.
  3. Start the PioneerServer.
  4. Start the VisionServer on the Pioneer's on-board computer.

  5. Launch the dlife.robot.gui.controlcenter
  6. Select dlife.robot.pioneer.Pioneer in the "Robot:" drop down list.
  7. Click the button next to the "Controller:" label.
  8. Navigate to the dLifeDist/examples/dlife/robot/pioneer/ directory.
  9. Choose the PioneerCameraDrone.class file.
  10. Click the "Start Up" button.
  11. Enter the IP and Port number for the PioneerServer in the dialog that appears.
  12. Click "Connect"
  13. Enter the IP and Port number for the VisionServer running on the pioneer in the dialog that appears.
  14. Click "Connect"
  15. Select and configure the video source from the Pioneer using the dialog that appears.
  16. Click "Connect"
  17. GUI displays for the PTZ, the Camera and image Filters will then appear in the ControlCenter.

The source code for this class is contained in the file:

Version:
Jun 18, 2008
Author:
Grant Braught, Dickinson College

Constructor Summary
PioneerCameraDrone()
           
 
Method Summary
 void startUp(Robot robot)
          Create the PTZ and Camera and add them to the robot.
 void step()
          This step method does not do anything.
 
Methods inherited from class dlife.robot.Controller
shutDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PioneerCameraDrone

public PioneerCameraDrone()
Method Detail

startUp

public void startUp(Robot robot)
             throws VideoSourceCreationFailedException
Create the PTZ and Camera and add them to the robot.

Specified by:
startUp in class Controller
Parameters:
robot - the Robot that this Controller will be controlling.
Throws:
VideoSourceCreationFailedException - if the PioneerCamera cannot be created or is canceled.

step

public void step()
This step method does not do anything. The PioneerDrone can be controlled via the GUI controls.

Specified by:
step in class Controller