examples.dlife.robot.hemisson
Class HemissonDrone
java.lang.Object
dlife.robot.Controller
examples.dlife.robot.hemisson.HemissonDrone
public class HemissonDrone
- extends Controller
A drone controller for the Hemisson. This Controller loads all of the sensors
and effectors provided by the Hemisson base and allows the robot to be
controlled via the GUI.
To run this example:
- Complete the Basic dLife Installation.
- Complete the Hemisson
Setup.
- Launch the
dlife.robot.gui.controlcenter
- Select
dlife.robot.hemisson.Hemisson in the "Robot:" drop down
list.
- Click the button next to the "Controller:" label.
- Navigate to the
dLifeDist/examples/dlife/robot/hemisson/
directory.
- Choose the
HemissonDrone.class file.
- Click the "Start Up" button.
- Choose the connection mechanism to be used:
- Serial Port: Use the file chooser to select the device file to which the
Hemisson is connected.
- Bluetooth: Select the desired Hemisson from the drop down list. Initially
you will need to know the Bluetooth address of the Hemisson in order to
identify the one to which you want to connect. You may optionally associate a
name with the robot's bluetooth address using the text field and the "Set"
button, making it easier to identify in the future.
- Click "Connect"
- 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.
The source code for this class is contained in the file:
- Version:
- Jun 30, 2007
- Author:
- Grant Braught, Dickinson College
|
Method Summary |
void |
startUp(Robot robot)
Create one instance of each type of Hemisson sensor and effector and add
them to the robot. |
void |
step()
This step method does not do anything. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HemissonDrone
public HemissonDrone()
startUp
public void startUp(Robot robot)
- Create one instance of each type of Hemisson sensor and effector 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 Hemisson can be
controlled via the GUI controls.
- Specified by:
step in class Controller