|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.SPRUtilities
public final class SPRUtilities
Utility class with some helper methods for mapping.
| Method Summary | ||
|---|---|---|
static Assignment |
findAssignment(SPR spr,
InPort inport)
Looks for assignment that connects the specified InPort in the given SPR. |
|
static
|
findCompound(SPR spr,
Class<T> cl)
Finds the first instance of the specified compound in the given SPR. |
|
static FreezeModule |
getFreezer(SunriseMappingToken info)
Gets the freezer module from the first SPR in the mapping information. |
|
static Transformation |
getToolOffset(Robot robot,
AbstractFrame defaultMotionFrame)
Gets the transformation between the flange of the specified robot and its defaultMotionFrame point. |
|
static MatrixTransformation |
getTransformationFromSunriseMatrix(double[] values)
Gets a matrix transformation based on the given values. |
|
static long |
sprIdFromString(String messageId)
Converts a message ID from string to long. |
|
static String |
sprIdToString(long sprId)
Converts SPR id to hexadecimal string representation with separator ".". |
|
static String |
sprIdToString(long sprId,
String separator)
Converts SPR id to hexadecimal string representation. |
|
static String |
sprIdToString(SPR spr)
Converts SPR id to hexadecimal string representation. |
|
static void |
twoInOneAssignment(SPR spr,
InPort destinationPort,
OutPort translationSourcePort,
OutPort rotationSourcePort)
Assigns translation and orientation parts of a matrix inports from two different outports. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void twoInOneAssignment(SPR spr,
InPort destinationPort,
OutPort translationSourcePort,
OutPort rotationSourcePort)
spr - SPR for which the assignements will be createddestinationPort - destination inporttranslationSourcePort - source outport for the translation part of the matrixrotationSourcePort - source outport for the rotation part of the matrix
public static Assignment findAssignment(SPR spr,
InPort inport)
spr - SPR to look for an assignment.inport - inport used in the assignment
public static FreezeModule getFreezer(SunriseMappingToken info)
info - The mapping information.
public static Transformation getToolOffset(Robot robot,
AbstractFrame defaultMotionFrame)
robot - robot for which the tool transformation should be calculated.defaultMotionFrame - The defaultMotionFrame which is moved.
public static <T extends ISprComponent> T findCompound(SPR spr,
Class<T> cl)
Also checks for the pipe. Observers are not checked.
T - Type of the compound.cl - Class of the compound.spr - The spr in which the compound is searched.
public static String sprIdToString(long sprId,
String separator)
String looks like "0007.0001.00000002". (ApiID.TypeId.CommandNumber)
sprId - id of the spr to correctseparator - separator string to separate the parts of the id string
public static String sprIdToString(long sprId)
String looks like "0007.0001.00000002". (ApiID.TypeId.CommandNumber)
sprId - id of the spr to correct
public static String sprIdToString(SPR spr)
String looks like "0007.0001.00000002". (ApiID.TypeId.CommandNumber)
spr - The spr where the spr id should be computed.
public static long sprIdFromString(String messageId)
messageId - Message ID as string.
public static MatrixTransformation getTransformationFromSunriseMatrix(double[] values)
values - The values in sunrise order. Expected order of the double
values: [r1c1, r1c2, r1c3, x, r2c1, r2c2, r2c3, y, r3c1, r3c2,
r3c3, z]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||