|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.robotics.proposal.DeadReckonerPoseProvider
public class DeadReckonerPoseProvider
A PoseProvider that keeps track of coordinates using dead reckoning, by monitoring Pilot movements. Question: What about a robot that is helped along with a Compass? Should the compass go in a DeadReckoner constructor, or a Pilot constructor? The PoseProvider seems more logical but Lawrie wants it to only accept a Pilot. Provisional name: DeadReckonerPoseProvider Alternate names: DeadReckonerPoseProvider, DeadReckoner, OrienteeringPoseProvider, OdometryPoseProvider
Constructor Summary | |
---|---|
DeadReckonerPoseProvider(MovementProvider mp)
Internally, the constructor listens to movements from the Pilot. |
Method Summary | |
---|---|
Pose |
getPose()
|
void |
movementStarted(Movement event,
MovementProvider mp)
Called when a Movement Provider starts a move |
void |
movementStopped(Movement event,
MovementProvider mp)
Called by the movementr provider when a move stops |
void |
setPosition(Point p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeadReckonerPoseProvider(MovementProvider mp)
mp
- the movement providerMethod Detail |
---|
public Pose getPose()
getPose
in interface PoseProvider
public void movementStarted(Movement event, MovementProvider mp)
MoveListener
movementStarted
in interface MoveListener
event
- the movementmp
- the movement providerpublic void movementStopped(Movement event, MovementProvider mp)
MoveListener
movementStopped
in interface MoveListener
event
- the movementmp
- movement providerpublic void setPosition(Point p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |