public class RigidTransform
extends java.lang.Object
Constructor and Description |
---|
RigidTransform() |
RigidTransform(Translation translation,
Rotation rotation) |
Modifier and Type | Method and Description |
---|---|
static RigidTransform |
exp(Twist twist)
ethaneade.com/lie_groups.pdf
Exponential map for 2D rigid transformation
Basically this converts a
Twist ---(exponential map)---> transformation
Kind of like an differential position ---(integral)---> position |
Rotation |
getRotation() |
Translation |
getTranslation() |
java.lang.String |
toString() |
RigidTransform |
transform(RigidTransform other)
Transforms (rotates + translates) this transformation matrix by another transformation matrix
Basically multiplies two transformation matrices (see above the class declaration) together.
|
public RigidTransform(Translation translation, Rotation rotation)
public RigidTransform()
public static RigidTransform exp(Twist twist)
Twist
---(exponential map)---> transformation
Kind of like an differential position ---(integral)---> position
Twist: [[dx] [dy] [dtheta]]
Rotation: [[cos(dtheta), -sin(dtheta)] [sin(dtheta), cos(dtheta)]]
Translation: [[sin(dtheta)/dtheta, -(1-cos(dtheta)/detheta)] * [[dx] [(1-cos(dtheta)/dtheta), sin(dtheta)/dtheta) ]] [dy]]
twist
- Input twistpublic Translation getTranslation()
public Rotation getRotation()
public RigidTransform transform(RigidTransform other)
In other words, we first rotation this translation vector by the other rotation vector (taking into account this rotation vector), then we translate this translation vector by the other translation vector
other
- Transformation matrix to transform this matrix bypublic java.lang.String toString()
toString
in class java.lang.Object