|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.robotics.localization.OdometryPoseProvider
public class OdometryPoseProvider
A PoseProvider keeps track of the robot Pose
.
It does this using odometry (dead reckoning)
data contained in a Move
, which is supplied by a MoveProvider
. When the PoseProivder is constructed, it registers
as listener with its MoveProvider,
Constructor Summary | |
---|---|
OdometryPoseProvider(MoveProvider mp)
Allocates a new OdometryPoseProivder and registers it with the MovePovider as a listener. |
Method Summary | |
---|---|
Pose |
getPose()
returns a new pose that represents the current location and heading of the robot. |
void |
moveStarted(Move move,
MoveProvider mp)
called by a MoveProvider when movement starts |
void |
moveStopped(Move move,
MoveProvider mp)
called by a MoveProvider when movement ends |
void |
setPose(Pose aPose)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OdometryPoseProvider(MoveProvider mp)
Method Detail |
---|
public Pose getPose()
getPose
in interface PoseProvider
public void moveStarted(Move move, MoveProvider mp)
moveStarted
in interface MoveListener
move
- - the event that just startedmp
- the MoveProvider that called this methodpublic void setPose(Pose aPose)
setPose
in interface PoseProvider
public void moveStopped(Move move, MoveProvider mp)
moveStopped
in interface MoveListener
move
- - the event that just startedmp
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |