|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.math.geometry.AbstractTransformation
public abstract class AbstractTransformation
Represents a transformation in 3-dimensional space. A transformation consists of a spatial rotation and a translation.
The Robotics API always assumes the translation vector to be given in [mm].
By default all computations will be done on the MatrixTransformation
representation of the rotation.
Note: When operating on AbstractTransformation there is no guarantee
that the type is immutable, unless you have explicitly converted it to an
immutable type before.
| Constructor Summary | |
|---|---|
AbstractTransformation()
|
|
| Method Summary | |
|---|---|
Point3D |
applyTo(Point3D point)
Applies this transformation to the given point. |
Vector3D |
applyTo(Vector3D vector)
Applies this transformation to the given vector. |
ITransformation |
compose(ITransformation other)
If the transformations A and B are represented as homogeneous matrices, then the effect of A.compose(B) is that of the matrix multiplication A*B. |
double |
distanceTo(ITransformation other)
Calculates the euclidean distance of the origin of this transformation to the origin of the given transformation. |
abstract IRotation |
getRotation()
Returns the rotation corresponding to this transformation. |
abstract Vector3D |
getTranslation()
Returns the translation part of the transformation, i.e. the upper-right 3x1 part of the corresponding homogeneous transformation matrix. |
ITransformation |
invert()
Returns an inverted transformation, i.e. a transformation that reverses the effect of this one. |
double |
rotationalDistanceTo(ITransformation other)
Calculates the rotational distance from this transformation to the other transformation. |
String |
toString()
Returns a textual description of the transformation. |
ITransformation |
transformationTo(ITransformation other)
Calculates the transformation needed to move this transformation into the other transformation. |
ITransformation |
withRotation(IRotation rotation)
Returns a new instance (copy) of the transformation, with the rotational part replaced by the given rotation. |
ITransformation |
withTranslation(Vector3D translation)
Returns a new instance (copy) of the transformation, with the translational part replaced by the given translation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTransformation()
| Method Detail |
|---|
public Vector3D applyTo(Vector3D vector)
ITransformation
See class info of ITransformation or Vector3D for more information
applyTo in interface ITransformationvector - the vector to be transformed
public Point3D applyTo(Point3D point)
ITransformation
applyTo in interface ITransformationpoint - the point to be transformed
public ITransformation compose(ITransformation other)
ITransformation
compose in interface ITransformationother - the transformation to combine with this one
public ITransformation invert()
ITransformation
invert in interface ITransformationpublic String toString()
This implementation will return a description of origin in cartesian coordinates and rotation in Euler Z-Y-X angles with KUKA notation (A, B, C). The following string can be regarded as typical:
"[X=100.00 Y=-234.23 Z=-3.00 A=1.23 B=3.14 C=-0.13]"
toString in class Objectpublic abstract IRotation getRotation()
ITransformation
getRotation in interface ITransformationpublic abstract Vector3D getTranslation()
ITransformation
getTranslation in interface ITransformationpublic ITransformation withRotation(IRotation rotation)
rotation - the rotational part of the transformation (the upper-left 3x3
part of a homogeneous transformation matrix).
public ITransformation withTranslation(Vector3D translation)
translation - the translational part of the transformation (the upper-right
3x1 part of a homogeneous transformation matrix).
public ITransformation transformationTo(ITransformation other)
ITransformation
trafo1.compose(trafo1.rotationTo(trafo2)) is equal to trafo2
transformationTo in interface ITransformationother - another transformation
public double distanceTo(ITransformation other)
ITransformation
distanceTo in interface ITransformationother - another transformation
public double rotationalDistanceTo(ITransformation other)
ITransformationUse this function to compare the orientations of two transformations.
rotationalDistanceTo in interface ITransformationother - another transformation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||