examples.dlife.robot.hemisson
Class HemissonApproach

java.lang.Object
  extended by dlife.robot.Controller
      extended by examples.dlife.robot.hemisson.HemissonApproach

public class HemissonApproach
extends Controller

The Hemisson will move forward until it gets close to an obstacle. When it is close to an obstacle it stops and beeps for 1 second.

To run this example:

  1. Complete the Basic dLife Installation.
  2. Complete the Hemisson Setup.

  3. Launch the dlife.robot.gui.controlcenter
  4. Select dlife.robot.hemisson.Hemisson in the "Robot:" drop down list.
  5. Click the button next to the "Controller:" label.
  6. Navigate to the dLifeDist/examples/dlife/robot/hemisson/ directory.
  7. Choose the HemissonApproach.class file.
  8. Click the "Start Up" button.
  9. Choose the connection mechanism to be used:
  10. Click "Connect"
  11. The Hemisson will beep and flash its lights to indicate that a connection has been established. GUI displays for all of the sensors and effectors will then appear in the ControlCenter.
  12. Click "Run"

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

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

Constructor Summary
HemissonApproach()
           
 
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

HemissonApproach

public HemissonApproach()
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.

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