PathPlanner.h
Go to the documentation of this file.
1 
6 #include <list>
7 
8 #include "EnvironmentOptions.h"
9 #include "Map.h"
10 
11 
12 #ifndef ORCA_PATHPLANNER_H
13 #define ORCA_PATHPLANNER_H
14 
15 
16 
26 {
27  public:
32  PathPlanner(const PathPlanner &obj) : map(obj.map), options(obj.options), glStart(obj.glStart), glGoal(obj.glGoal), radius(obj.radius) {}
33 
42  PathPlanner(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius)
43  : map(&map), options(&options), glStart(start), glGoal(goal), radius(radius) {};
44 
48  virtual ~PathPlanner() {map = nullptr; options = nullptr;}
49 
54  virtual PathPlanner* Clone() const = 0;
55 
60  virtual bool CreateGlobalPath() = 0;
61 
67  virtual bool GetNext(const Point &curr, Point &next) = 0;
68 
69 
76  {map = obj.map; options = obj.options; glStart = obj.glStart; glGoal = obj.glGoal; radius = obj.radius; return *this;}
77 
78  protected:
80  const Map *map;
81  const EnvironmentOptions *options;
82  Point glStart;
83  Point glGoal;
84  float radius;
86 
87 };
88 
89 #endif //ORCA_PATHPLANNER_H
PathPlanner class implements base pathfinder interface and behavior.
Definition: PathPlanner.h:25
File contains Map class.
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
Definition: Geom.h:61
virtual ~PathPlanner()
Virtual PathPlanner destructor.
Definition: PathPlanner.h:48
PathPlanner(const PathPlanner &obj)
PathPlanner copy constructor.
Definition: PathPlanner.h:32
virtual bool GetNext(const Point &curr, Point &next)=0
Abstract method. Should returns current goal of agent.
Class EnvironmentOptions contains environment and algoritms parameters.
virtual bool CreateGlobalPath()=0
Abstract method. Should finds path from global start to global goal position.
Map class describes static environment.
Definition: Map.h:36
File contains EnvironmentOptions class.
virtual PathPlanner * Clone() const =0
Abstract method for cloning inheritors objects. Implementations of this method should create copy of ...
PathPlanner & operator=(const PathPlanner &obj)
Assignment operator.
Definition: PathPlanner.h:75
PathPlanner(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius)
PathPlanner constructor with parametes.
Definition: PathPlanner.h:42


ORCAStar
Author(s): Stepan Drgachev
autogenerated on Wed Jul 15 2020 16:13:14