examples.dlife.robot.pioneer
Class PioneerTrackBall

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

public class PioneerTrackBall
extends Controller

The Pioneer's PTZ camera will track the Aibo's pink ball (as long as it is not moved too quickly or backlit too strongly!).

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 PioneerTrackBall.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.
  18. Click "Run"

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

Version:
Aug 5, 2008
Author:
Grant Braught, Dickinson College

Constructor Summary
PioneerTrackBall()
           
 
Method Summary
 void startUp(Robot robot)
          This method is invoked automatically when the Start Up button in the ContolCenter is clicked.
 void step()
          This method is invoked either once when the Step button is clicked or periodically when the Run button is clicked.
 
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

PioneerTrackBall

public PioneerTrackBall()
Method Detail

startUp

public void startUp(Robot robot)
             throws VideoSourceCreationFailedException
Description copied from class: dlife.robot.Controller
This method is invoked automatically when the Start Up button in the ContolCenter is clicked. This is typically where Sensors and Effectors are created and added to the Robot.

Specified by:
startUp in class Controller
Parameters:
robot - the Robot that this Controller will be controlling.
Throws:
VideoSourceCreationFailedException

step

public void step()
Description copied from class: dlife.robot.Controller
This method is invoked either once when the Step button is clicked or periodically when the Run button is clicked. The rate at which step is invoked varies from Robot to Robot and is dependent on the computer being used as well as the amount of processing done in step, the number and type of sensors attached to the Robot and the robot's communication latency.

Specified by:
step in class Controller