|
||||||||||
| 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.JointStopCondition
public class JointStopCondition
Stop condition describing the valid joint ranges for joints of a robot.
| Constructor Summary | |
|---|---|
JointStopCondition()
Creates a new instance of the joint stop condition. |
|
JointStopCondition(Robot robot)
Creates a new instance of the joint stop condition for the specified robot. |
|
| Method Summary | |
|---|---|
double |
getFeasibleMax()
Get a feasible max value for this stop condition. |
double |
getFeasibleMin()
Get a feasible min value for this stop condition. |
DoubleRange[] |
getRanges()
Gets ranges for all joints. |
Robot |
getRobot()
Gets the robot for which the joint condition is created. |
JointStopCondition |
markAsErrorStopCondition()
/** Marks this stop condition as an error stop condition. |
JointStopCondition |
markAsErrorStopCondition(String errorMessage)
Marks this stop condition as an error stop condition. |
String |
toString()
|
JointStopCondition |
validIfBetween(int jointIndex,
double min,
double max)
Sets a VALID range for a joint with the specified index. |
JointStopCondition |
validIfGreaterThan(int jointIndex,
double min)
Sets a VALID range for a joint with the specified index that is greater than the specified value. |
JointStopCondition |
validIfLessThan(int jointIndex,
double max)
Sets a VALID range for a joint with the specified index that is less than the specified value. |
| 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 JointStopCondition()
Note: Is is recommended to use the other constructor with the robot so that the stop condition can allocate the correct ranges size.
public JointStopCondition(Robot robot)
robot - Robot for which the joint condition is created. Null for the
robot which performs the motion.| Method Detail |
|---|
public JointStopCondition 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 JointStopCondition 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 Robot getRobot()
public JointStopCondition validIfBetween(int jointIndex,
double min,
double max)
jointIndex - Index of a joint for which range should be set. Must be >= 0
and < joint count of the robot on which the condition will be
applied.min - Lower border of the range. In rad. If value is less than the
feasible min, this value will get clipped.max - Upper border of the range- In rad. If value is greater than
the feasible max, this value will get clipped.
public JointStopCondition validIfLessThan(int jointIndex,
double max)
jointIndex - Index of a joint for which range should be set. Must be >= 0
and < joint count of the robot on which the condition will be
applied.max - Upper border of the range- In rad. If value is greater than
the feasible max, this value will get clipped.
public JointStopCondition validIfGreaterThan(int jointIndex,
double min)
jointIndex - Index of a joint for which range should be set. Must be >= 0
and < joint count of the robot on which the condition will be
applied.min - Lower border of the range. In rad. If value is less than the
feasible min, this value will get clipped.
public DoubleRange[] getRanges()
public final double getFeasibleMax()
public final double getFeasibleMin()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||