|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.conditionModel.AbstractCondition
com.kuka.roboticsAPI.conditionModel.MotionCondition
com.kuka.roboticsAPI.conditionModel.MotionPathCondition
public class MotionPathCondition
A Motion Path Condition is true if a given absolute distance has been passed by the motion or is
remaining until the motion is completed. Thus, the distance is either seen from the start pose of the motion (START)
or negative from the end pose of the motion (DEST). By specifying a delay, the condition can be configured to fire
before the specified distance is reached.
| Constructor Summary | |
|---|---|
MotionPathCondition(ReferenceType reference,
double distance,
long delay)
Creates a new instance of the motion path condition. |
|
| Method Summary | |
|---|---|
static MotionPathCondition |
createFromDelay(ReferenceType reference,
long delay)
Creates a new instance of the motion path condition which has a distance of zero millimeters. |
static MotionPathCondition |
createFromDistance(ReferenceType reference,
double distance)
Creates a new instance of the motion path condition which has a delay of zero milliseconds. |
long |
getDelay()
Gets the delay which causes the motion condition to fire before the specified distance is reached. |
double |
getDistance()
Gets the distance that has to be passed by the motion or that has to be remaining until the condition is fired. |
ReferenceType |
getReference()
Gets the reference pose that is used for measurement, i.e. the START or the DESTINATION pose of the current motion. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.conditionModel.MotionCondition |
|---|
getController, getMotionInstruction, setMotionInstruction |
| Methods inherited from class com.kuka.roboticsAPI.conditionModel.AbstractCondition |
|---|
and, invert, or, xor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MotionPathCondition(ReferenceType reference,
double distance,
long delay)
For creation of motion path conditions with distances or delays of zero, helper methods
createFromDistance(com.kuka.roboticsAPI.conditionModel.ReferenceType, double) and createFromDelay(com.kuka.roboticsAPI.conditionModel.ReferenceType, long) may be used. This condition can only be used when
commanding a motion, for example in combination with triggerWhen() and breakWhen(). Usage within a condition
observer will lead to an exception.
reference - The reference pose that is used for measurement. Must not be null.distance - The distance in [mm] from the given reference. Must be zero or positive if START is given, zero or
negative if DEST is given as reference.delay - The delay in [ms]. Must be zero or positive if START is given, zero or negative if DEST is given as
reference.
IllegalArgumentException - if an invalid argument is given| Method Detail |
|---|
public static MotionPathCondition createFromDistance(ReferenceType reference,
double distance)
reference - The reference pose that is used for measurement. Must not be null.distance - The distance in [mm] from the given reference. Must be zero or positive if START is given, zero or
negative if DEST is given as reference.
IllegalArgumentException - if an invalid argument is given
public static MotionPathCondition createFromDelay(ReferenceType reference,
long delay)
reference - The reference pose that is used for measurement. Must not be null.delay - The delay in [ms]. Must be zero or positive if START is given, zero or negative if DEST is given as
reference.
IllegalArgumentException - if an invalid argument is givenpublic ReferenceType getReference()
public double getDistance()
public long getDelay()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||