examples.dlife.robot.pioneer
Class PioTriangle
java.lang.Object
dlife.robot.Controller
dlife.robot.controllers.fsm.FiniteStateController
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:
- Complete the Basic dLife Installation.
- Complete the Pioneer
Setup.
- Start the
PioneerServer.
- Launch the
dlife.robot.gui.controlcenter
- Select
dlife.robot.pioneer.Pioneer in the "Robot:" drop down
list.
- Click the button next to the "Controller:" label.
- Navigate to the
dLifeDist/examples/dlife/robot/pioneer/
directory.
- Choose the
PioTriangle.class file.
- Click the "Start Up" button.
- Enter the IP and Port number for the PioneerServer in the dialog that
appears.
- Click "Connect"
- GUI displays for the sensors and effectors being used will then appear in
the ControlCenter.
- 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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PioTriangle
public PioTriangle()
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.