|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.robotics.proposal.ArcPoseController
public class ArcPoseController
This class directs a pilot from the current known coordinates to a destination set of coordinates. The ArcPoseController is not capable of avoiding objects or planning a route. It can only drive in a straight line that is not obstructed.
Constructor Summary | |
---|---|
ArcPoseController(ArcPilot pilot,
PoseProvider 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArcPoseController(ArcPilot pilot, PoseProvider poseProvider)
Method Detail |
---|
public ArcPilot getPilot()
PoseController
getPilot
in interface PoseController
public PoseProvider getPoseProvider()
PoseController
getPoseProvider
in interface PoseController
public void setPoseProvider(PoseProvider replacement)
PoseController
setPoseProvider
in interface PoseController
replacement
- the new PoseProviderpublic Pose goTo(Point destination)
PoseController
goTo
in interface PoseController
public Pose goTo(float x, float y)
PoseController
goTo
in interface PoseController
x
- the x coordinate of the target pointy
- the y co-ordinate of the target point
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |