|
||||||||||
| 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
com.kuka.nav.Pose
public class Pose
The class holding a robot pose.
| Field Summary |
|---|
| Fields inherited from class com.kuka.nav.XYTheta |
|---|
_theta, _x, _y |
| Constructor Summary | |
|---|---|
Pose()
Creates a pose at (0,0,0). |
|
Pose(double x,
double y,
double theta)
Creates a pose at the specified coordinates. |
|
Pose(Pose pose)
Copy constructor. |
|
Pose(TupleSE2 t)
Creates a pose from a tuple t (consisting of a twodimensional coordinate and an angle). |
|
| Method Summary | |
|---|---|
Pose |
add(TupleSE2 other)
|
boolean |
approxEqualsCart(TupleSE2 pose)
Indicates whether the cartesian distance of the (x,y)-values and the distance of the angles of this pose and the given one are approximately equal with a tolerance of 1e-11. |
boolean |
approxEqualsCart(TupleSE2 pose,
double toleranceLinear,
double toleranceAngular)
Indicates whether the cartesian distance of the (x,y)-values and the distance of the angles of this pose and the given one are approximately equal with the given translational and rotational tolerance. |
boolean |
approxEqualsMax(TupleSE2 pose)
Indicates whether some other NavigationPose is "equal to" this one with a tolerance linear and angular tolerance of 1E-11 (with respect to the maximum norm). |
boolean |
approxEqualsMax(TupleSE2 pose,
double toleranceLinear,
double toleranceAngular)
Indicates whether some other NavigationPose is "equal to" this one with respect to the given tolerance (with respect to the maximum norm). |
Pose |
closestPose(Pose[] poses)
Picks the closest pose from an array of poses, using the 2d distance. |
Pose |
closestPose(Pose[] poses,
Pose velocity)
Picks the closest pose from an array of poses, using the a distance weighted by the maximum velocities in x- y- and theta direction. |
Pose |
copy()
|
double |
distanceRot(TupleSE2 pose)
Calculates the angular difference between this pose and the given one. |
double |
distanceTrans(TupleSE2 pose)
Calculates the euclidean square-norm of the robots pose to a given pose in the 2-dimensional phase space (x,y). |
Pose |
invert()
Interprets this TupleSE2 as a coordinate transformation, inverts it and returns the result. |
Pose |
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. |
static Pose |
parseNavigationPose(String poseString)
Parses a string and constructs a NavigationPose. |
Pose |
subtract(TupleSE2 other)
|
Position |
toPosition()
Returns the position of this pose. |
String |
toString()
|
Pose |
withTheta(double newTheta)
Returns a new TupleSE2 with a changed theta-coordinate. |
Pose |
withX(double newX)
Returns a new TupleSE2 with a changed x-coordinate. |
Pose |
withY(double newY)
Returns a new TupleSE2 with a changed y-coordinate. |
| Methods inherited from class com.kuka.nav.TupleSE2 |
|---|
min, norm, substract |
| Methods inherited from class com.kuka.nav.XYTheta |
|---|
equals, getTheta, getX, getY, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pose(double x,
double y,
double theta)
x - the x valuey - the z valuetheta - the theta value in radianspublic Pose(Pose pose)
pose - The pose from which the data is copied.public Pose(TupleSE2 t)
t - The tuple from which the pose is to be created.public Pose()
| Method Detail |
|---|
public Pose withX(double newX)
XYTheta
withX in class TupleSE2newX - The new x coordinate.
public Pose withY(double newY)
XYTheta
withY in class TupleSE2newY - The new y coordinate.
public Pose withTheta(double newTheta)
XYTheta
withTheta in class TupleSE2newTheta - The new theta coordinate.
public Pose subtract(TupleSE2 other)
other - Another tuple to substract from this tuple.
public Pose add(TupleSE2 other)
other - Another tuple to add to this tuple.
public Pose invert()
TupleSE2
invert in class TupleSE2public Pose multiply(TupleSE2 other)
TupleSE2
multiply in class TupleSE2other - the tuple to 'multiply' with
public boolean approxEqualsMax(TupleSE2 pose)
pose - the reference object with which to compare.
true if this pose is the same as the argument; false otherwise.
public boolean approxEqualsMax(TupleSE2 pose,
double toleranceLinear,
double toleranceAngular)
pose - the reference object with which to compare.toleranceLinear - the tolerance allowed for the poses to be "equal in x and y coordinates"toleranceAngular - the tolerance allowed for the poses to be "equal in the orientation"
true if this pose is the same as the argument; false otherwise.public boolean approxEqualsCart(TupleSE2 pose)
1e-11.
pose - the other pose
true, if the poses are approximately equal false, otherwise
public boolean approxEqualsCart(TupleSE2 pose,
double toleranceLinear,
double toleranceAngular)
pose - the other posetoleranceLinear - the tolerance allowed for the distance of the positionstoleranceAngular - the tolerance allowed for the angles
true, if the poses are approximately equal false, otherwisepublic double distanceTrans(TupleSE2 pose)
pose - the reference object with which to calculate the distance.
Double distance to pose.public double distanceRot(TupleSE2 pose)
pose - the other pose
public Position toPosition()
public Pose copy()
copy in interface com.kuka.parameters.IParametercopy in class XYThetapublic String toString()
toString in class TupleSE2public static Pose parseNavigationPose(String poseString)
poseString - The string to be parsed
public Pose closestPose(Pose[] poses)
poses - An array of poses to check against
public Pose closestPose(Pose[] poses,
Pose velocity)
poses - An array of poses to check againstvelocity - An array of poses to check against
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||