examples.dlife.robot.pioneer
Class PioTriangle

java.lang.Object
  extended by dlife.robot.Controller
      extended by dlife.robot.controllers.fsm.FiniteStateController
          extended by examples.dlife.robot.pioneer.PioTriangle

public class PioTriangle
extends FiniteStateController

The Pioneer uses its odometry to move in the shape of an (almost) equilateral triangle. This is also a demonstration of a simple finite state controller.

To run this example:

  1. Complete the Basic dLife Installation.
  2. Complete the Pioneer Setup.
  3. Start the PioneerServer.

  4. Launch the dlife.robot.gui.controlcenter
  5. Select dlife.robot.pioneer.Pioneer in the "Robot:" drop down list.
  6. Click the button next to the "Controller:" label.
  7. Navigate to the dLifeDist/examples/dlife/robot/pioneer/ directory.
  8. Choose the PioTriangle.class file.
  9. Click the "Start Up" button.
  10. Enter the IP and Port number for the PioneerServer in the dialog that appears.
  11. Click "Connect"
  12. GUI displays for the sensors and effectors being used will then appear in the ControlCenter.
  13. Click "Run"

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

Version:
Sep 4, 2008
Author:
Grant Braught, Dickinson College
See Also:
FiniteStateController

Constructor Summary
PioTriangle()
           
 
Method Summary
 void startUp(Robot robot)
          This method is invoked automatically when the Start Up button in the ContolCenter is clicked.
 
Methods inherited from class dlife.robot.controllers.fsm.FiniteStateController
addState, getCurrentState, getInitialState, peekReturnState, popReturnState, pushReturnState, setInitialState, step
 
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

PioTriangle

public PioTriangle()
Method Detail

startUp

public void startUp(Robot robot)
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.