|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMotionContainer
Represents the execution state of robot motions.
| Method Summary | |
|---|---|
void |
append(IMotion motion)
Appends a motion to the executing motions. |
void |
await()
Blocks the calling thread until the container has finished it's execution. |
void |
await(long timeout,
TimeUnit unit)
Blocks the calling thread until the container has finished it's execution. |
void |
cancel()
Cancels all motions in this container. |
IMotion |
getCurrentMotion()
Returns the motion command that is being currently executed. |
String |
getErrorMessage()
Gets the error message for the container. |
ICondition |
getFiredBreakCondition()
Gets the user condition that has fired and caused the stopping of this motion container. |
IMotion |
getLastExecutedMotion()
Returns the last executed motion command, if the container is already finished. |
ICommandRuntimeData |
getRuntimeData()
Gets the custom runtime data associated with this container. |
MotionContainerState |
getState()
Returns the current state of this motion container. |
boolean |
hasError()
Checks if this container is in an error state. |
boolean |
hasFired(ICondition condition)
Tests whether the given condition has fired for this container. this is equivalent to {@code getFiredConditionInfo() ! |
boolean |
isFinished()
Checks if the container has finished it's execution either with a successful execution or with an error. |
| Method Detail |
|---|
IMotion getCurrentMotion()
If the motion consists of segments (for example spline command), the currently executed segment of the spline will be returned.
null.IMotion getLastExecutedMotion()
If not, the motion that is currently being executed will be returned. This is the part of the robot trajectory
where the robot is currently moving.
If the motion consists of segments (for example spline command), the currently executed segment of the spline
will be returned.
null.void append(IMotion motion)
motion - the motion to be appended
UnsupportedOperationException - appending of motions is not supported for this type or this
particular combination of motions
IllegalStateException - the execution of the stack has already been finished.void cancel()
void await()
ThreadInterruptedException - if the thread was interrupted while waiting
void await(long timeout,
TimeUnit unit)
throws TimeoutException
timeout - The timeout.unit - The unit of the timeout.
ThreadInterruptedException - if the thread was interrupted while waiting
TimeoutException - the wait timed outMotionContainerState getState()
Caution: Because this method is not synchronized to the motion container, its current state might have progressed to another state by the time this method returns.
boolean isFinished()
hasError().
true if the container execution is finished, otherwise false.boolean hasError()
true if this container is in an error state.String getErrorMessage()
boolean hasFired(ICondition condition)
getFiredConditionInfo() != null && getFiredConditionInfo().getFiredCondition() == condition
condition - the condition to test if it has fired.
true if the condition has fired, false otherwise.ICondition getFiredBreakCondition()
null if no user defined condition
has fired.
HINT regarding motion batches: if the motion contained in this container is a motion batch, only the fired
condition of the batch itself shows up in the info. The stop conditions that may have fired on the
motions within the batch don't stop the batch. That's why in this case the fired condition info will be
null.
null.ICommandRuntimeData getRuntimeData()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||