|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.geometricModel.TreeUtilities
public final class TreeUtilities
Helper class which implements the transformation calculation between two frames in the frame-tree.
| Method Summary | |
|---|---|
static void |
buildFramePath(ObjectFrame frame,
ObjectFrame strip,
StringBuilder sb)
Adds the path of the given frame from its root to the given StringBuilder. |
static ITransformation |
calculateTransformation(AbstractFrame source,
AbstractFrame destination,
boolean staticPathOnly)
Calculates the transformation from the given source to the destination. |
static PositionInformation |
calculateTransformationFrameWithRedundancy(AbstractFrame source,
AbstractFrame destination)
Calculates the transformation from the given source to the destination. |
static void |
dumpTree(PrintStream out,
ObjectFrame start)
Dumps the frame tree starting from the given frame. |
static AbstractFrame |
findCommonRoot(AbstractFrame frame1,
AbstractFrame frame2,
boolean onlyStatic)
Finds the first common ancestor of the given frames in the tree. |
static String |
getFramePath(ObjectFrame frame,
ObjectFrame strip)
Returns the path of the given frame from its root. |
static List<AbstractFrame> |
getPathToRoot(AbstractFrame startFrame,
boolean onlyStatic)
Returns a list of frames that contains the path from the given frame along it's parents to the root of the tree. |
static boolean |
havePath(AbstractFrame source,
AbstractFrame destination)
Determines if the two given frames have a path (can have dynamic frames in between) in the tree that connects the two. |
static boolean |
haveStaticPath(AbstractFrame source,
AbstractFrame destination)
Determines if the two given frames have a static path in the tree that connects the two. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getFramePath(ObjectFrame frame,
ObjectFrame strip)
frame - a framestrip - if this frame is an ancestor, strip its path from the result.
May be null.
public static void buildFramePath(ObjectFrame frame,
ObjectFrame strip,
StringBuilder sb)
StringBuilder. If the frame is null, nothing will be appended.
frame - a framestrip - if this frame is an ancestor, strip its path from the result.
May be null.sb - the string builder to which the path will be appended
public static List<AbstractFrame> getPathToRoot(AbstractFrame startFrame,
boolean onlyStatic)
startFrame - the frame from which to start the search.onlyStatic - if true, stop the search at the first dynamic frame
public static AbstractFrame findCommonRoot(AbstractFrame frame1,
AbstractFrame frame2,
boolean onlyStatic)
frame1 - first frameframe2 - second frameonlyStatic - if true, no dynamic frames will be traversed
public static ITransformation calculateTransformation(AbstractFrame source,
AbstractFrame destination,
boolean staticPathOnly)
No checks on the parameters are performed. This must be done by the caller.
source - The source frame.destination - The destination frame.staticPathOnly - Indicates if the user only wants to walk along a static path.
public static PositionInformation calculateTransformationFrameWithRedundancy(AbstractFrame source,
AbstractFrame destination)
No checks on the parameters are performed. This must be done by the caller.
source - The source frame.destination - The destination frame.
PositionInformation containing the transformation
from the source frame to the destination frame and the redundancy
information gathered along the path for both current and
commanded position. The parent of the created frames is the given
source frame.
public static boolean havePath(AbstractFrame source,
AbstractFrame destination)
No checks on the parameters are performed. This must be done by the caller.
source - The source frame.destination - The destination frame.
public static boolean haveStaticPath(AbstractFrame source,
AbstractFrame destination)
No checks on the parameters are performed. This must be done by the caller.
source - the source frame.destination - the destination frame.
true if a static path exists.
public static void dumpTree(PrintStream out,
ObjectFrame start)
dumpTree(World.Current) will print out all frames connected to the world.
out - the stream to dump the tree tostart - the start frame.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||