|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.RoboticsAPIUtilities
public final class RoboticsAPIUtilities
Utility class with some helper methods.
| Method Summary | ||
|---|---|---|
static String |
determineToolName(Robot robot)
Determines a tool name for the robot. |
|
static JointPosition |
getCorrespondingJoints(Device device,
AbstractFrame frame)
Gets the corresponding joint position from a frame (if present). |
|
static JointPosition |
getJointsForDestination(ObjectFrame defaultMotionFrame,
AbstractFrame destination)
Calculates a joint position for a given destination and a given motion center. |
|
static Robot |
getRobotIfFrameIsAttachedToFlange(AbstractFrame frame)
|
|
static
|
searchDevice(Class<T> deviceClass,
AbstractFrame frame)
Finds an attached device that can be located from the given frame. |
|
static Robot |
searchRobot(AbstractFrame frame)
Finds an attached robot of the given frame. |
|
static
|
trySearchDevice(Class<T> deviceClass,
AbstractFrame frame)
Finds an attached device that can be located from the given frame. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Device> T trySearchDevice(Class<T> deviceClass,
AbstractFrame frame)
Returns null if no device was found.
T - The device type.deviceClass - The type of device for which the method should check.frame - The frame from which the method starts to search a device.
public static <T extends Device> T searchDevice(Class<T> deviceClass,
AbstractFrame frame)
If no device is found during the walk, this method will fail.
T - The device type.deviceClass - The type of device for which the method should check.frame - The frame from which the method starts to search a device.
IllegalStateException - if no attached device was found.public static Robot searchRobot(AbstractFrame frame)
If no robot is found during the walk, this method will fail.
frame - The frame from which the method starts to search a robot
public static String determineToolName(Robot robot)
robot - The robot.
public static JointPosition getJointsForDestination(ObjectFrame defaultMotionFrame,
AbstractFrame destination)
defaultMotionFrame - The defaultMotionFrame.destination - The destination.
public static JointPosition getCorrespondingJoints(Device device,
AbstractFrame frame)
device - The device for which we want the joints.frame - The frame for which we want the corresponding joints.
public static Robot getRobotIfFrameIsAttachedToFlange(AbstractFrame frame)
frame - Frame to check if it is a child frame of a robot flange
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||