|
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.ArraySensor<Float>
dlife.robot.aibo.AiboBackButtons
public class AiboBackButtons
A collection containing all buttons located on the physical Aibo's back. There are 3 buttons and their values will be stored in this structure. The button values are pressure sensitive floats between 0.0 and 1.0.
| Field Summary | |
|---|---|
static int |
FRONT
Index of the value of the Aibo's front-most back button in the values array of this ArraySensor. |
static int |
MIDDLE
Index of the value of the Aibo's middle back button in the values array of this ArraySensor. |
static int |
REAR
Index of the value of the Aibo's read-most back button in the values array of this ArraySensor. |
| Fields inherited from class dlife.robot.ArraySensor |
|---|
length, values |
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
AiboBackButtons()
Construct a new AiboBackButtons sensor. |
|
| Method Summary | |
|---|---|
protected DeviceDisplay[] |
createGUIObjects()
Build the GUI for this AiboBackButtons Sensor. |
void |
freeze()
Does nothing. |
float |
getFrontButton()
Get the value of the Aibo's front-most back button. |
float |
getMiddleButton()
Get the value of the Aibo's middle back button. |
float |
getRearButton()
Get the value of the Aibo's rear back button. |
void |
readStateFromRobot()
Uses the getButton method to retrieve the button values and stores them in the values array for later access |
| Methods inherited from class dlife.robot.ArraySensor |
|---|
getAverage, getAverage, getMaximum, getMaximum, getMaximumIndex, getMaximumIndex, getMinimum, getMinimum, getMinimumIndex, getMinimumIndex, getNumValues, getSubset, getValue, getValues |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, shutDown, startAutoReadTimer, startUp, 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 FRONT
public static final int MIDDLE
public static final int REAR
| Constructor Detail |
|---|
public AiboBackButtons()
| Method Detail |
|---|
public void freeze()
freeze in class Devicepublic void readStateFromRobot()
readStateFromRobot in class Devicepublic float getFrontButton()
public float getMiddleButton()
public float getRearButton()
protected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Device
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||