|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.motionModel.stopConditions.MotionStopCondition
com.kuka.roboticsAPI.motionModel.stopConditions.ForceStopCondition
public class ForceStopCondition
A stop condition describing valid ranges for forces.
| Constructor Summary | |
|---|---|
ForceStopCondition()
Creates a new force stop condition. |
|
| Method Summary | |
|---|---|
double |
getFeasibleMax()
Get a feasible max value for this stop condition. |
double |
getFeasibleMin()
Get a feasible min value for this stop condition. |
ObjectFrame |
getMeasureFrame()
Gets the measure frame at which the force will get measured. |
Frame |
getPositionOfMeasureFrameWhenFired()
Returns the position of the measure frame relative to world. |
DoubleRange[] |
getRanges()
Gets all ranges of this stop condition in the following order: fX, fY, fZ, tX, tY, tZ in [N] or [Nm], respectively. |
ForceStopCondition |
markAsErrorStopCondition()
/** Marks this stop condition as an error stop condition. |
ForceStopCondition |
markAsErrorStopCondition(String errorMessage)
Marks this stop condition as an error stop condition. |
ForceStopCondition |
setMeasureFrame(ObjectFrame measureFrame)
Sets the frame at which the force will get measured. |
void |
setReturnValues(ITransformation worldBase,
ITransformation retVal,
ITransformation flangeMeasureFrame)
Sets the values when the stop condition hits. |
String |
toString()
|
ForceStopCondition |
validForce(Vector forceThreshold)
Defines the valid force given through a vector in X, Y and Z directions. |
ForceStopCondition |
validForceX(double min,
double max)
Defines the valid force in X range. |
ForceStopCondition |
validForceY(double min,
double max)
Defines the valid force in Y range. |
ForceStopCondition |
validForceZ(double min,
double max)
Defines the valid force in Z range. |
ForceStopCondition |
validTorqueX(double min,
double max)
Defines the valid torque around X axis. |
ForceStopCondition |
validTorqueY(double min,
double max)
Defines the valid torque around Y axis. |
ForceStopCondition |
validTorqueZ(double min,
double max)
Defines the valid torque around Z axis. |
| Methods inherited from class com.kuka.roboticsAPI.motionModel.stopConditions.MotionStopCondition |
|---|
and, getErrorMessage, invert, or, xor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForceStopCondition()
By default, the defaultMotionFrame of the object being moved will be the frame, where force measurement will take
place. To use a different frame for force measurement, use the
setMeasureFrame(ObjectFrame) method.
| Method Detail |
|---|
public ForceStopCondition markAsErrorStopCondition()
If the motion is stopped due to this stop condition, the assigned container goes to state invalid and will throw an appropriate exception with no error message.
markAsErrorStopCondition in class MotionStopConditionpublic ForceStopCondition markAsErrorStopCondition(String errorMessage)
If the motion is stopped due to this stop condition, the assigned container goes to state invalid and will throw an appropriate exception with the specified error message.
markAsErrorStopCondition in class MotionStopConditionerrorMessage - The optional error message which should be inserted by the
SunriseController. May be null.
public ForceStopCondition validForce(Vector forceThreshold)
Note that the values are interpreted as absolute values an will be used to define a range from -value to +value. Please note also that if a value of the vector is less than 1.0, it will be interpreted as 0 and not added to the stop condition.
forceThreshold - The threshold. Values in [N]. If value is less or bigger than
the feasible min or maximum, the value will get clipped.
public ForceStopCondition validForceX(double min,
double max)
min - The minimum. Value in [N]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [N]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition validForceY(double min,
double max)
min - The minimum. Value in [N]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [N]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition validForceZ(double min,
double max)
min - The minimum. Value in [N]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [N]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition validTorqueX(double min,
double max)
min - The minimum. Value in [Nm]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [Nm]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition validTorqueY(double min,
double max)
min - The minimum. Value in [Nm]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [Nm]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition validTorqueZ(double min,
double max)
min - The minimum. Value in [Nm]. If value is less than the feasible
min, this value will get clipped.max - The maximum. Value in [Nm]. If value is greater than the
feasible max, this value will get clipped.
public ForceStopCondition setMeasureFrame(ObjectFrame measureFrame)
The must exist a connection between the robot flange on which the force is measured and the specified measure frame, otherwise, the command will fail.
measureFrame - The frame.
public ObjectFrame getMeasureFrame()
public DoubleRange[] getRanges()
public final double getFeasibleMax()
public final double getFeasibleMin()
public String toString()
toString in class Objectpublic Frame getPositionOfMeasureFrameWhenFired()
public void setReturnValues(ITransformation worldBase,
ITransformation retVal,
ITransformation flangeMeasureFrame)
worldBase - The offset from the world to the moving robot.retVal - The value containing the position of the flange when the stop
condition has fired.flangeMeasureFrame - The offset from the moving robot flange to the measure frame.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||