|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.commandModel.Action<T>
com.kuka.roboticsAPI.motionModel.Motion<T>
com.kuka.roboticsAPI.motionModel.KROSMotion<T>
T - Type of the overriding classpublic abstract class KROSMotion<T extends KROSMotion<T>>
This is the base class for all motion for serial kinematics commands.
| Constructor Summary | |
|---|---|
protected |
KROSMotion()
Creates a new instance with a default parameter set type. |
| Method Summary | |
|---|---|
void |
acquireResources(Device device)
Prepares the action. |
T |
addMotionOverlay(IMotionOverlay motionOverlay)
Adds the motion overlay parameter. |
T |
breakWhen(ICondition condition)
Adds a condition to this motion. |
Collection<ICondition> |
getConditions()
Gets all conditions defined for this motion. |
IMotionControlMode |
getMode()
Gets the control mode parameter. |
protected List<IMotionOverlay> |
getMotionOverlaySupport()
Gets the motion overlay parameter. |
protected List<ICondition> |
getSCSupport()
Gets the condition parameter. |
protected List<com.kuka.common.Pair<ICondition,ITriggerAction>> |
getTriggerSupport()
Gets the trigger parameter. |
boolean |
hasConditions()
Returns true if there are conditions defined for this
motion. |
boolean |
hasMotionOverlay()
Returns true if there are motion overlays defined for this
motion. |
boolean |
hasTrigger()
Returns true if there are trigger defined for this motion. |
boolean |
isApplicableFor(IMotionControlMode newMotionControlMode)
Each motion has to determine if it supports the given motion control mode. |
T |
setMode(IMotionControlMode mode)
Sets the MODE parameter. |
T |
triggerWhen(ICondition condition,
ITriggerAction action)
Adds a trigger to this motion. |
| Methods inherited from class com.kuka.roboticsAPI.commandModel.Action |
|---|
addParameter, addParams, getParams, releaseResources, removeParameter, self |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.kuka.roboticsAPI.commandModel.IAction |
|---|
releaseResources |
| Methods inherited from interface com.kuka.roboticsAPI.motionModel.IParameterizable |
|---|
getParams |
| Constructor Detail |
|---|
protected KROSMotion()
| Method Detail |
|---|
protected List<ICondition> getSCSupport()
protected List<com.kuka.common.Pair<ICondition,ITriggerAction>> getTriggerSupport()
protected List<IMotionOverlay> getMotionOverlaySupport()
public T breakWhen(ICondition condition)
The execution of the motion will be finished if the specified condition
is evaluated to true. If the next motion is ready to be
executed at that moment - it will start immediately.
condition - The condition. null is not allowed.
public T triggerWhen(ICondition condition,
ITriggerAction action)
ICallbackAction
The specified action will be executed whenever the specified condition is
evaluated to true. If the execution of the action is still
in progress, when the next trigger occurs, the action is not executed
again. The action is only executed when the trigger occurs while no
action execution is in progress. Action callback has a method to
determine the number of missed triggers.
condition - The condition. null is not allowed.action - The action to execute when the condition is evaluated to
true
ICallbackAction,
StartRecordingAction,
StopRecordingActionpublic boolean hasConditions()
true if there are conditions defined for this
motion.
hasConditions in interface IKROSMotiontrue if there are conditions set for this motion.public boolean hasTrigger()
IKROSMotiontrue if there are trigger defined for this motion.
hasTrigger in interface IKROSMotiontrue if there are trigger set for this motion.public Collection<ICondition> getConditions()
getConditions in interface IKROSMotionpublic T setMode(IMotionControlMode mode)
setMode in class Motion<T extends KROSMotion<T>>mode - The mode parameter. null is not allowed.
public T addMotionOverlay(IMotionOverlay motionOverlay)
motionOverlay - The motion overlay parameter. null is not
allowed.
public boolean hasMotionOverlay()
IKROSMotiontrue if there are motion overlays defined for this
motion.
hasMotionOverlay in interface IKROSMotiontrue if there are motion overlays set for this
motion.public IMotionControlMode getMode()
getMode in interface IKROSMotionpublic boolean isApplicableFor(IMotionControlMode newMotionControlMode)
isApplicableFor in interface IKROSMotionnewMotionControlMode - The new motion control mode.
public void acquireResources(Device device)
An action is part of an instruction, and the prepare method passes the device part of the instruction to the action so that it can determine if the device is appropriate for the action.
acquireResources in interface IActionacquireResources in class Motion<T extends KROSMotion<T>>device - The device part of the instruction in which the action is
contained.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||