examples.dlife.robot.pioneer
Class PioneerCameraDrone
java.lang.Object
dlife.robot.Controller
examples.dlife.robot.pioneer.PioneerCameraDrone
public class PioneerCameraDrone
- extends Controller
A drone controller for the Pioneer PTZ camera and streaming video. This
Controller loads loads the CannonVCC50i PTZ controller and starts up a Camera
device for the streaming video. The video can be seen/filtered and the PTZ
can be controlled via the ControlCenter.
To run this example:
- Complete the Basic dLife Installation.
- Complete the Pioneer
Setup.
- Start
the PioneerServer.
- Start the
VisionServer on the Pioneer's on-board computer.
- 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
PioneerCameraDrone.class file.
- Click the "Start Up" button.
- Enter the IP and Port number for the PioneerServer in the dialog that
appears.
- Click "Connect"
- Enter the IP and Port number for the VisionServer running on the pioneer
in the dialog that appears.
- Click "Connect"
- Select and configure the video source from the Pioneer using the dialog
that appears.
- Click "Connect"
- GUI displays for the PTZ, the Camera and image Filters will then appear
in the ControlCenter.
The source code for this class is contained in the file:
- Version:
- Jun 18, 2008
- Author:
- Grant Braught, Dickinson College
|
Method Summary |
void |
startUp(Robot robot)
Create the PTZ and Camera 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 |
PioneerCameraDrone
public PioneerCameraDrone()
startUp
public void startUp(Robot robot)
throws VideoSourceCreationFailedException
- Create the PTZ and Camera and add them to the robot.
- Specified by:
startUp in class Controller
- Parameters:
robot - the Robot that this Controller will be controlling.
- Throws:
VideoSourceCreationFailedException - if the PioneerCamera cannot be
created or is canceled.
step
public void step()
- This step method does not do anything. The PioneerDrone can be controlled
via the GUI controls.
- Specified by:
step in class Controller