public class ExpandingSquareSearchPlanner extends TrackedSearchPlanner implements Runnable
Modifier and Type | Field and Description |
---|---|
protected double |
leg1Heading
The heading to use for the first leg of the square (radians)
|
static double |
NINETY_DEGREES |
pd, sweepWidth, trackSpacing
plan, searchArea, startPoint
Constructor and Description |
---|
ExpandingSquareSearchPlanner(GeoArea searchArea,
double S,
double PD,
double[] startPosit)
Creates a new instance of EspandingSquareSearchPlanner
The planned search will provide for a search focused on the centroid of the area
|
ExpandingSquareSearchPlanner(GeoArea searchArea,
double S,
double PD,
double[] startPosit,
double leg1Heading)
Creates a new instance of EspandingSquareSearchPlanner
The planned search will provide for a search focused on the centroid of the area
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Implements the Runnable interface, generates the actual expanding square pattern
|
setRequiredPD, setSweepWidth, setTrackSpacing
getPlan, getRunTime, setRunTime
public static final double NINETY_DEGREES
protected double leg1Heading
public ExpandingSquareSearchPlanner(GeoArea searchArea, double S, double PD, double[] startPosit)
searchArea
- geographic area that is to be searchedS
- PD
- startPosit
- double[2] defining the vehicle's position at the beginning of the searchpublic ExpandingSquareSearchPlanner(GeoArea searchArea, double S, double PD, double[] startPosit, double leg1Heading)
searchArea
- geographic area that is to be searchedS
- PD
- startPosit
- double[2] defining the vehicle's position at the beginning of the searchleg1Heading
- the heading to use for the first leg of the squarepublic void run()
run
in interface Runnable
run
in class TrackedSearchPlanner