|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Navigator
Generic interface implemented by classes that support two dimensional navigation.
| Method Summary | |
|---|---|
void |
go(float heading)
Drive the robot indefinitely in the direction specified. |
void |
moveTo(float x,
float y)
Move the robot to the specified coordinates. |
void |
moveTo(float x,
float y,
boolean wait)
Move the robot to the specified coordinates. |
void |
moveTo(float x,
float y,
NavigatorListener listener)
Move the robot to the specified coordinates. |
void |
stop()
Stop the robot. |
void |
turnTo(float heading)
Turn the robot to the specified heading. |
void |
turnTo(float heading,
boolean wait)
Turn the robot to the specified heading. |
void |
turnTo(float heading,
NavigatorListener listener)
Turn the robot to the specified heading. |
| Method Detail |
|---|
void go(float heading)
heading - direction in radians to head toward
void moveTo(float x,
float y)
This method does not return until the robot has reached the destination.
x - x coordinate to move toy - y coordinate to move to
void moveTo(float x,
float y,
boolean wait)
x - x coordinate to move toy - y coordinate to move towait - true if the method should wait for the operation to terminate
void moveTo(float x,
float y,
NavigatorListener listener)
This method returns without waiting for the movement to complete.
x - x coordinate to move toy - y coordinate to move tolistener - listener to call when the operation terminates, may be nullvoid stop()
void turnTo(float heading)
This method does not return until the robot is facing the new heading.
heading - heading to turn to in radians
void turnTo(float heading,
boolean wait)
heading - heading to turn to in radianswait - true if the method should wait for the operation to terminate
void turnTo(float heading,
NavigatorListener listener)
This method returns without waiting for the turn to complete.
heading - heading to turn to in radianslistener - listener to call when the operation terminates, may be null
|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||