|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lejon.DriveModel
org.lejon.DDModel
High-level implementation of a dual differential drive architecture for processing odometric navigation actions. The application submits MotionCommands defining actions, i.e. figures TRANSLATE, CURVE or ROTATE with its special parameters. The parameters are evaluated and the low-level layer is set up accordingly. If an action is executed the application can request MotionReports containing information about the state of the running action. Also, if an action is finished the application will be notified from a MotionEventListener if present.
Field Summary |
Fields inherited from class org.lejon.DriveModel |
IDLE, MOVING, PAUSE, SETUP |
Method Summary | |
void |
cancel()
Changes to execution state IDLE. |
MotionReport |
getMotionReport()
Returns the up-to-date motion report for the current action. |
static DDModel |
instance(DriveParameters parameters)
Returns the singleton instance of this class instantiated with the drive parameters. |
void |
move()
Executes the latest action that has been set up. |
void |
pause()
Pauses the running action. |
void |
resume()
Restarts the action that is paused. |
void |
setMotionCommand(MotionCommand motionCommand)
Sets up a new action. |
void |
steeringFinished()
Is called from the Steerer thread when the requested action is completely finished. |
Methods inherited from class org.lejon.DriveModel |
addMotionEventListener, removeMotionEventListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DDModel instance(DriveParameters parameters)
parameters
- the drive parameters
public void setMotionCommand(MotionCommand motionCommand)
setMotionCommand
in class DriveModel
motionCommand
- a motion command defining the new action.public MotionReport getMotionReport()
getMotionReport
in class DriveModel
public void move()
move
in class DriveModel
public void pause()
pause
in class DriveModel
public void resume()
resume
in class DriveModel
public void cancel()
cancel
in class DriveModel
public void steeringFinished()
SteeringEventListener
steeringFinished
in interface SteeringEventListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |