|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PoseController
The PoseController guides a Pilot to a destination. It can not plan a route, but will try to navigate to a set of coordinates and possibly avoid obstacles along the way. The PoseController constructor very likely accepts a Pilot and PoseProvider.
| Method Summary | |
|---|---|
ArcPilot |
getPilot()
Note: There is no corresponding setPilot() method because the type of robot vehicle could not change after the program starts, unless it was physically a transformer robot. |
PoseProvider |
getPoseProvider()
Get a reference to the PoseProvider being used as a localizer. |
Pose |
goTo(float x,
float y)
Travels to the coordinates specified. |
Pose |
goTo(Point destination)
Travels to the coordinates in the destination Point. |
void |
setPoseProvider(PoseProvider replacement)
Sets a new PoseProvider for the PoseController robot to use. |
| Method Detail |
|---|
Pose goTo(Point destination)
destination -
Pose goTo(float x,
float y)
x - the x coordinate of the target pointy - the y co-ordinate of the target point
ArcPilot getPilot()
PoseProvider getPoseProvider()
void setPoseProvider(PoseProvider replacement)
replacement - the new PoseProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||