|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lejon.events.MotionReport
Wrapper class for motion specific information. If requested by the application the motion report will return the state of the motion, the time left since the motion was started, the distance travelled so far and the local coordinates of the drive's reference point. A motion report is local to its associated action. To be clear, it means that it is indenpendent from former actions excecuted by the application.
Constructor Summary | |
MotionReport()
Creates a new empty instance. |
Method Summary | |
float |
getDistance()
Returns the distance [cm] travelled in current action. |
Pose |
getPose()
Returns the current local pose. |
int |
getState()
Returns the current excecution state. |
int |
getTime()
Returns the time index at base 'timeBase'. |
void |
setDistance(float distance)
Sets the distance travelled so far. |
void |
setState(int state)
Sets the current excecution state. |
void |
setTime(int time)
Sets the time index. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MotionReport()
Method Detail |
public int getState()
public int getTime()
public float getDistance()
public Pose getPose()
public void setState(int state)
state
- the execution statepublic void setTime(int time)
time
- the time indexpublic void setDistance(float distance)
distance
- distance [cm].
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |