public class RoutePlanner extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected GeoAreaSet | avoidAreasThe set of geographic avoid areas that the route must navigate | 
| Constructor and Description | 
|---|
| RoutePlanner(GeoAreaSet areas)Creates a new instance of RoutePlanner without specifying starting point or goal | 
| RoutePlanner(GeoAreaSet areas,
            double[] start,
            double[] end)Creates a new instance of RoutePlanner | 
| Modifier and Type | Method and Description | 
|---|---|
| List<JAXBElement<?>> | generateAvclScript(int vehicleType,
                  double gpsInterval,
                  double minWptDist,
                  double vertical,
                  int verticalMode,
                  double speed,
                  int speedMode)Generates a set of AVCL Waypoints corresponding to a planned route | 
| void | reset(double[] start,
     double[] end)Resets the route with a new start and goal point | 
| void | reset(GeoAreaSet areas,
     double[] start,
     double[] end)Resets the route planner with new start and goal points and a new avoid area set | 
protected GeoAreaSet avoidAreas
public RoutePlanner(GeoAreaSet areas)
areas - the GeoAreaSet object containing all of the avoid areaspublic RoutePlanner(GeoAreaSet areas, double[] start, double[] end)
areas - the GeoAreaSet object containing all of the avoid areasstart - the double[2] containing the X, Y position of the route starting pointend - the double[2] containing the X, Y position of the route goalpublic void reset(double[] start,
         double[] end)
start - the double[2] containing the X, Y position of the route starting pointend - the double[2] containing the X, Y position of the route goalpublic void reset(GeoAreaSet areas, double[] start, double[] end)
areas - the GeoAreaSet object containing all of the avoid areasstart - the double[2] containing the X, Y position of the route starting pointend - the double[2] containing the X, Y position of the route goalpublic List<JAXBElement<?>> generateAvclScript(int vehicleType, double gpsInterval, double minWptDist, double vertical, int verticalMode, double speed, int speedMode)
vehicleType - enumeration for the type of vehicle (AUV, UAV, etc.)gpsInterval - distance (meters) that the vehicle can travel submerged between GPS fixes (only relevant for UUVs)minWptDist - the shortest allowable distance between waypointsvertical - altitude or depth of command (only relevant for UUVs and UAVs)verticalMode - enumeration specifying depth, altitude, MSL altitude, or AGL altitudespeed - knots, meters per second, or percent of propeller rpm (AUV) settingspeedMode - enumeration for knots or meters per second (not relevant for AUVs)