public class Waypoint extends Point implements Transmittable
Point2D.Double, Point2D.Float
Modifier and Type | Field and Description |
---|---|
protected float |
heading |
protected boolean |
headingRequired |
protected float |
maxHeadingError |
protected float |
maxPositionError |
x, y
Constructor and Description |
---|
Waypoint(double x,
double y) |
Waypoint(double x,
double y,
double heading) |
Waypoint(Point p) |
Waypoint(Pose p) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity(Pose p)
Check that the given pose satisfies the conditions for this way point
|
void |
dumpObject(java.io.DataOutputStream dos) |
double |
getHeading() |
double |
getMaxHeadingError() |
double |
getMaxPositionError() |
Pose |
getPose()
Return a Pose that represents the way point.
|
boolean |
isHeadingRequired() |
void |
loadObject(java.io.DataInputStream dis) |
void |
setMaxHeadingError(double distance) |
void |
setMaxPositionError(double distance) |
add, addWith, angle, angleTo, clone, copyTo, dotProduct, getNormalized, leftOrth, length, makeLeftOrth, makeRightOrth, moveTo, multiply, multiplyBy, normalize, pointAt, projectOn, reverse, rightOrth, subtract, subtract, subtractWith, translate
getX, getY, setLocation, setLocation, toString
distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, setLocation
protected float heading
protected boolean headingRequired
protected float maxPositionError
protected float maxHeadingError
public Waypoint(double x, double y)
public Waypoint(double x, double y, double heading)
public Waypoint(Point p)
public Waypoint(Pose p)
public double getHeading()
public boolean isHeadingRequired()
public double getMaxPositionError()
public void setMaxPositionError(double distance)
public double getMaxHeadingError()
public void setMaxHeadingError(double distance)
public Pose getPose()
public boolean checkValidity(Pose p)
p
- the Posepublic void dumpObject(java.io.DataOutputStream dos) throws java.io.IOException
dumpObject
in interface Transmittable
java.io.IOException
public void loadObject(java.io.DataInputStream dis) throws java.io.IOException
loadObject
in interface Transmittable
java.io.IOException