12 #ifndef ORCA_PATHPLANNER_H 13 #define ORCA_PATHPLANNER_H 32 PathPlanner(
const PathPlanner &obj) : map(obj.map), options(obj.options), glStart(obj.glStart), glGoal(obj.glGoal), radius(obj.radius) {}
43 : map(&map), options(&options), glStart(start), glGoal(goal), radius(radius) {};
76 {map = obj.map; options = obj.options; glStart = obj.glStart; glGoal = obj.glGoal; radius = obj.radius;
return *
this;}
89 #endif //ORCA_PATHPLANNER_H PathPlanner class implements base pathfinder interface and behavior.
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
virtual ~PathPlanner()
Virtual PathPlanner destructor.
PathPlanner(const PathPlanner &obj)
PathPlanner copy constructor.
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.
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.
PathPlanner(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius)
PathPlanner constructor with parametes.