|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.XYTheta
com.kuka.nav.TupleSE2
public class TupleSE2
Class to represent a tuple of 2-dimensional coordinates (x, y) together with a rotation component (theta).
| Field Summary |
|---|
| Fields inherited from class com.kuka.nav.XYTheta |
|---|
_theta, _x, _y |
| Constructor Summary | |
|---|---|
TupleSE2()
Constructs the tuple (0, 0, 0). |
|
TupleSE2(double x,
double y,
double theta)
Constructor. |
|
TupleSE2(TupleSE2 other)
Copy constructor. |
|
TupleSE2(XYTheta obj)
Constructs a tuple and sets its attribute to the attribute values of the given tuple. |
|
| Method Summary | |
|---|---|
TupleSE2 |
invert()
Interprets this TupleSE2 as a coordinate transformation, inverts it and returns the result. |
static TupleSE2 |
min(TupleSE2 o1,
TupleSE2 o2)
Returns a tuple with minimum x, y and theta values from the two input tuples. |
TupleSE2 |
multiply(TupleSE2 other)
'Multiplies' this tuple with the passed one, i.e. calculates the transformation of this TupleSE2 by applying the passed TupleSE2 to it. |
double |
norm()
Returns the euclidean norm of the (x, y) component of this tuple. |
TupleSE2 |
substract(TupleSE2 other)
Subtracts the passed TupleSE2 from this TupleSE2 by subtracting all three contained elements and returns the result. |
String |
toString()
|
TupleSE2 |
withTheta(double newTheta)
Returns a new TupleSE2 with a changed theta-coordinate. |
TupleSE2 |
withX(double newX)
Returns a new TupleSE2 with a changed x-coordinate. |
TupleSE2 |
withY(double newY)
Returns a new TupleSE2 with a changed y-coordinate. |
| Methods inherited from class com.kuka.nav.XYTheta |
|---|
copy, equals, getTheta, getX, getY, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TupleSE2()
public TupleSE2(XYTheta obj)
obj - tuple whose attribute values are copiedpublic TupleSE2(TupleSE2 other)
other - the tuple to copy
public TupleSE2(double x,
double y,
double theta)
x - The x-coordinate.y - The y-coordinate.theta - The theta-coordinate.| Method Detail |
|---|
public TupleSE2 withX(double newX)
XYTheta
withX in class XYThetanewX - the new x coordinate
public TupleSE2 withY(double newY)
XYTheta
withY in class XYThetanewY - the new y coordinate
public TupleSE2 withTheta(double newTheta)
XYTheta
withTheta in class XYThetanewTheta - the new theta coordinate
public TupleSE2 substract(TupleSE2 other)
other - the tuple to substract from this tuple
public TupleSE2 invert()
public TupleSE2 multiply(TupleSE2 other)
other - the tuple to 'multiply' with
public double norm()
public static TupleSE2 min(TupleSE2 o1,
TupleSE2 o2)
o1 - input tupleo2 - input tuple
public String toString()
toString in class XYTheta
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||