public class Waypoint
extends Point
Modifier and Type | Field and Description |
---|---|
protected float |
heading |
protected boolean |
headingRequired |
protected float |
maxHeadingError |
protected float |
maxPositionError |
Constructor and Description |
---|
Waypoint(double x,
double y) |
Waypoint(double x,
double y,
double heading) |
Waypoint(Point 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) |
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 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
java.io.IOException
public void loadObject(java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException