Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private double |
distanceUSSensor |
private double |
lastTheta |
private double |
minimumDistance |
private static float |
NO_WALL |
private Odometer |
odo |
static int |
ROTATION_SPEED |
(package private) int |
step |
private static double |
THETA_THRESHOLD |
private USSensor |
usSensor |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
USLocalizer(Odometer odometer,
USSensor usSensor,
double distanceUSSensor)
USLocalizer Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
doLocalization()
Run to localize robot
|
void |
run()
Called by doLocalization()
Do not call directly
|
private boolean |
seesWall()
Checks if the robot sees a wall during localizing
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final float NO_WALL
private static final double THETA_THRESHOLD
public static int ROTATION_SPEED
private Odometer odo
private USSensor usSensor
private double lastTheta
int step
private double minimumDistance
private double distanceUSSensor