|
||||||||||
| 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<PositionHold>
com.kuka.roboticsAPI.motionModel.PositionHold
public final class PositionHold
Using the PositionHold command will bring the given robots into the mode where it holds it's position with the specified control mode. It is intended to use the position hold command with an impedance mode.
Please note, if a timeout value for the PositionHold command has been defined, this will be used as a command stop condition, otherwise this command has no implicit stop condition. In this case it has to be cancelled manually using the cancel-method of the ExecutionEngine or you have to specify your own stop condition.
| Constructor Summary | |
|---|---|
PositionHold(IMotionControlMode controlMode,
long timeout,
TimeUnit timeUnit)
It is recommended to set the controlMode explicitly. |
|
| Method Summary | |
|---|---|
PositionHold |
breakWhen(ICondition condition)
Adds a condition to this motion. |
long |
getRampTimeMs()
Get the configured ramp time for the PositionHold-command. |
long |
getTimeoutMillis()
Get the timeout for the PositionHold-command. |
boolean |
getWaitForStop()
Get if the PositionHold will wait for the robot to stop. |
PositionHold |
setRampTime(long rampTime,
TimeUnit timeUnit)
Sets the interval that will be used to reach the configured impedance mode. |
PositionHold |
setWaitForStop(boolean wait)
Specifies if this PositionHold will wait for the robot to stop before it starts holding the position. |
String |
toString()
|
PositionHold |
triggerWhen(ICondition condition,
ITriggerAction action)
Adds a trigger to this motion. |
| Methods inherited from class com.kuka.roboticsAPI.motionModel.KROSMotion |
|---|
acquireResources, addMotionOverlay, getConditions, getMode, getMotionOverlaySupport, getSCSupport, getTriggerSupport, hasConditions, hasMotionOverlay, hasTrigger, isApplicableFor, setMode |
| 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, 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 |
|---|
public PositionHold(IMotionControlMode controlMode,
long timeout,
TimeUnit timeUnit)
controlMode - the control mode for the position hold command.timeout - The maximum time the position hold command is active. For
endless timeout use a value < 0.timeUnit - The unit of the timeout. Null means endless timeout.| Method Detail |
|---|
public long getTimeoutMillis()
public PositionHold setWaitForStop(boolean wait)
setWaitForStop(false)
Default value is TRUE
For internal use only! Will be removed in future versions.
wait - TRUE will cause the robot to wait for a stop before
it starts holding the position FALSE will cause the robot to try to hold the
position instantly (not recommended!)
public boolean getWaitForStop()
For internal use only! Will be removed in future versions.
true if the PositionHold waits for the robot to
stop, false otherwise.
public PositionHold setRampTime(long rampTime,
TimeUnit timeUnit)
Default value is 0.2s
For internal use only! Will be removed in future versions.
rampTime - The time interval that will be used. The ramp time is clipped
by the timeout parameter of this motion.timeUnit - The unit of the ramp time.
public long getRampTimeMs()
For internal use only! Will be removed in future versions.
public PositionHold breakWhen(ICondition condition)
KROSMotion
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.
breakWhen in class KROSMotion<PositionHold>condition - The condition. null is not allowed.
public PositionHold triggerWhen(ICondition condition,
ITriggerAction action)
KROSMotionICallbackAction
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.
triggerWhen in class KROSMotion<PositionHold>condition - The condition. null is not allowed.action - The action to execute when the condition is evaluated to
true
ICallbackAction,
StartRecordingAction,
StopRecordingActionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||