public class VisibilityGraphPathPlanner extends Object
| Constructor and Description | 
|---|
| VisibilityGraphPathPlanner(WorldModel world)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| Path | getBestPath() | 
| boolean | hasGoodPath() | 
| static void | main(String[] args)Main method provided for testing | 
| void | reset(double[] newStart,
     double[] newGoal)Resets the path planner with new start and goal points | 
| void | reset(double newStartX,
     double newStartY,
     double newGoalX,
     double newGoalY)Resets the path planner with new start and goal points | 
| void | reset(Point newStart,
     Point newGoal)Resets the path planner with new start and goal points | 
| Path | runPlanner()Runs the planner to generate the first plan | 
public VisibilityGraphPathPlanner(WorldModel world)
world - reference to the world model containing obstacles and avoid areaspublic void reset(Point newStart, Point newGoal)
newStart - newGoal - public void reset(double[] newStart,
         double[] newGoal)
newStart - newGoal - public void reset(double newStartX,
         double newStartY,
         double newGoalX,
         double newGoalY)
newStartX - newGoalX - public boolean hasGoodPath()
public Path getBestPath()
public Path runPlanner()
public static void main(String[] args)