|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
dlife.robot.Device
dlife.robot.PanTiltZoomEffector
dlife.robot.pioneer.PioneerPTZ
public abstract class PioneerPTZ
Abstract base class for all PTZ effectors for the Pioneer. This class provides the basic methods for controlling and accessing the pan, tilt and zoom. Concrete base classes for specific camera models may wish to add additional methods for model specific features.
NOTE: Pan and tilt positions for the Pioneer PTZ are set in degrees. For pan 0 degrees is directly forward with negative values being CW and positive values being CCW when looking down from above the robot. For tilt 0 degrees is horizontal with positive values being above horizontal and negative values being below horizontal. Zoom values are in arbitrary units with larger values indicating greater zoom.
| Field Summary |
|---|
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
PioneerPTZ()
Construct a new PioneerPTZ. |
|
| Method Summary | |
|---|---|
void |
freeze()
Does nothing. |
double |
getPan()
Get the pan setting. |
double |
getTilt()
Get the tilt setting. |
double |
getZoom()
Get the zoom setting. |
void |
pan(double newPan)
Pan to the indicated position. |
void |
panTilt(double newPan,
double newTilt)
Set both the pan and tilt of the camera. |
void |
readStateFromRobot()
Read the current pan, tilt and zoom values from the camera and cache them for use by the accessors. |
void |
tilt(double newTilt)
Tilt to the indicated position. |
void |
zoom(double newZoom)
Zoom to the indicated level. |
| Methods inherited from class dlife.robot.PanTiltZoomEffector |
|---|
center, createGUIObjects, getCenterPan, getCenterTilt, getMaxPan, getMaxTilt, getMaxZoom, getMinPan, getMinTilt, getMinZoom, panTiltZoom, startUp |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, shutDown, startAutoReadTimer, stopAutoReadTimer |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PioneerPTZ()
| Method Detail |
|---|
public double getPan()
getPan in class PanTiltZoomEffectorpublic double getTilt()
getTilt in class PanTiltZoomEffectorpublic double getZoom()
getZoom in class PanTiltZoomEffectorpublic void pan(double newPan)
pan in class PanTiltZoomEffectornewPan - the new pan position in degrees. Positive values are
clockwise looking down on the robot from above.
RobotCommunicationException - if unable to communicate with the
Pioneer.public void tilt(double newTilt)
tilt in class PanTiltZoomEffectornewTilt - the new tilt position in degrees. Positive values are
tilted up from horizontal.
RobotCommunicationException - if unable to communicate with the
Pioneer.public void zoom(double newZoom)
zoom in class PanTiltZoomEffectornewZoom - the new zoom. Zoom values are in arbitrary zoom units with
larger values indicating greater zoom.
RobotCommunicationException - if unable to communicate with the
Pioneer.
public void panTilt(double newPan,
double newTilt)
panTilt in class PanTiltZoomEffectornewPan - the new pan position in degrees. Positive values are
clockwise looking down on the robot from above.newTilt - the new tilt position in degrees. Positive values are
tilted up from horizontal.
RobotCommunicationException - if unable to communicate with the
Pioneer.public void readStateFromRobot()
NOTE: The positions read will actually be the last positions requested. Thus if the camera is in motion the positions read may not be the current camera positions.
readStateFromRobot in class DeviceRobotCommunicationException - if unable to communicate with the
Pioneer.public void freeze()
freeze in class Device
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||