|
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.aibo.AiboHeadEffector
public class AiboHeadEffector
An AiboHeadEffector allows control of the pan, tilt and nod of the Aibo's head. When started up an AiboHeadEffector sends a message to the Aibo to start the head control service. The AiboHeadEffector then connects to that service and communicates directly with it.
| Field Summary | |
|---|---|
static int |
HEAD_CONTROL_PORT
The port on which the Aibo Head Remote Control service listens for connections. |
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
AiboHeadEffector(Aibo newAibo)
Create a new AiboHeadEffector. |
|
| Method Summary | |
|---|---|
void |
center()
Centers the AIBO's head. |
protected DeviceDisplay[] |
createGUIObjects()
Build the GUI for this AiboHeadEffector. |
void |
freeze()
Does nothing. |
float |
getCenterNod()
Get center nod. |
float |
getCenterPan()
Get center pan. |
float |
getCenterTilt()
Get center tilt. |
float |
getMaxNod()
Get max nod. |
float |
getMaxPan()
Get max pan. |
float |
getMaxTilt()
Get max tilt. |
float |
getMinNod()
Get min nod. |
float |
getMinPan()
Get min pan. |
float |
getMinTilt()
Get min tilt. |
float |
getNod()
Get the current nod. |
float |
getPan()
Get the current pan. |
float |
getSentNod()
Get the last nod value that was sent to the Aibo. |
float |
getSentPan()
Get the last pan value that was sent to the Aibo. |
float |
getSentTilt()
Get the last tilt value that was sent to the Aibo. |
float |
getTilt()
Get the current tilt. |
void |
nod(float newNod)
Send a nod command to the Head Control. |
void |
pan(float newPan)
Send a pan command to the Head Control. |
void |
panTilt(float newPan,
float newTilt)
Send a combination pan-tilt command. |
void |
panTiltNod(float newPan,
float newTilt,
float newNod)
Send a combination pan-tilt-nod command. |
void |
readStateFromRobot()
Updates the pan, tilt and nod values in this effector based upon what is returned in the Aibo's world state. |
void |
shutDown()
Shutdown the AiboHeadEffector. |
void |
startUp()
Startup the AiboHeadEffector. |
void |
tilt(float newTilt)
Send a tilt command to the Head Control. |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, 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 |
| Field Detail |
|---|
public static final int HEAD_CONTROL_PORT
| Constructor Detail |
|---|
public AiboHeadEffector(Aibo newAibo)
newAibo - the instance of Aibo that should be used to initialize the
Head Control.| Method Detail |
|---|
public void startUp()
startUp in class Devicepublic void shutDown()
shutDown in class Deviceprotected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Devicepublic void freeze()
freeze in class Devicepublic void readStateFromRobot()
readStateFromRobot in class Devicepublic float getSentPan()
public float getSentTilt()
public float getSentNod()
public float getMaxPan()
public float getMinPan()
public float getCenterPan()
public float getMaxNod()
public float getMinNod()
public float getCenterNod()
public float getMaxTilt()
public float getMinTilt()
public float getCenterTilt()
public float getPan()
public float getNod()
public float getTilt()
public void pan(float newPan)
newPan - the pan value.public void tilt(float newTilt)
newTilt - the tilt value.public void nod(float newNod)
newNod - the nod value.public void center()
public void panTilt(float newPan,
float newTilt)
newPan - the pan value (-1 to 1)newTilt - the tilt value (-1 to 1)
public void panTiltNod(float newPan,
float newTilt,
float newNod)
newPan - the pan value (-1 to 1)newTilt - the tilt value (-1 to 1)newNod - the nod value (0 to 1)
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||