public class SectorPatternSearchPlanner extends SearchTrackPlanner implements Runnable
plan, searchArea, startPoint
Constructor and Description |
---|
SectorPatternSearchPlanner(GeoArea searchArea,
double sectorWidth,
int numSectors,
double[] startPosit)
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
|
int |
setNumSectors(int value)
Sets the number of sectors in the pattern
|
double |
setRadius(double value)
Sets the radius of the sector pattern (meters)
|
double |
setSectorWidth(double value)
Sets the sector size of the sector pattern (radians)
|
getPlan, getRunTime, setRunTime
public SectorPatternSearchPlanner(GeoArea searchArea, double sectorWidth, int numSectors, double[] startPosit)
searchArea
- geographic area that is to be searchedsectorWidth
- width (radians) of the individual sectors in the searchnumSectors
- number of sectors in the searchstartPosit
- double[2] defining the vehicle's position at the beginning of the searchpublic double setRadius(double value)
value
- public double setSectorWidth(double value)
value
- public int setNumSectors(int value)
value
- public void run()
run
in interface Runnable
run
in class SearchTrackPlanner