examples.dlife.robot.hemisson
Class HemissonSonarDrone

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

public class HemissonSonarDrone
extends Controller

A drone controller for a Hemisson with a sonar sensor. The sonar sensor is set to the maximum number of echos and the maximum distance. It also creates a DiferentialDrive effector to allow the robot to be controlled via the GUI.

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 HemissonSonarDrone.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 and the GUI components for the Motion and Sonar will appear in the ControlCenter.

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

Version:
Jun 30, 2007
Author:
Grant Braught, Dickinson College

Constructor Summary
HemissonSonarDrone()
           
 
Method Summary
 void startUp(Robot robot)
          Create a HemissonSonar sensor and a DifferentialDrive 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

HemissonSonarDrone

public HemissonSonarDrone()
Method Detail

startUp

public void startUp(Robot robot)
Create a HemissonSonar sensor and a DifferentialDrive and add them to the robot.

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

step

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

Specified by:
step in class Controller