|
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<Double>
dlife.robot.OdometrySensor
public abstract class OdometrySensor
Abstract base class for Sensors that access a robot's Odometry data from.
| Field Summary | |
|---|---|
static int |
ANGLE_COORDINATE
The Angle Coordinate of the odometry data. |
static int |
DISTANCE_COORDINATE
The Distance Coordinate of the odometry data. |
| 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 | |
|---|---|
OdometrySensor()
Create a new OdometrySensor. |
|
| Method Summary | |
|---|---|
protected DeviceDisplay[] |
createGUIObjects()
Construct the GUI object for this OdometrySensor. |
double |
getAngleDegrees()
Get the Angle coordinate (in degrees) from the robot's odometry device. |
double |
getAngleRadians()
Get the Angle coordinate (in radians) from the robot's odometry device. |
int |
getDistance()
Get the Distance coordinate (in millimeters) from the robot's odometry device. |
abstract void |
reset()
Reset the robot's odometry device to (0,0). |
void |
startUp()
When the OdometrySensor is started it resets the sensor to (0,0). |
| 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 |
|---|
freeze, getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, readStateFromRobot, 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 |
| Field Detail |
|---|
public static final int DISTANCE_COORDINATE
public static final int ANGLE_COORDINATE
| Constructor Detail |
|---|
public OdometrySensor()
| Method Detail |
|---|
public void startUp()
startUp in class Devicepublic int getDistance()
public double getAngleDegrees()
public double getAngleRadians()
protected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Devicepublic abstract void reset()
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||