DirectPlanner.cpp
Go to the documentation of this file.
1 
7 #include "DirectPlanner.h"
8 
9 
10 bool DirectPlanner::GetNext(const Point &curr, Point &next)
11 {
12  next = this->glGoal;
13  return true;
14 }
15 
17 {
18  return true;
19 }
20 
21 DirectPlanner::DirectPlanner(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal,
22  const float &radius) : PathPlanner(map, options, start, goal, radius) {}
23 
25 
27 
29 {
30  return new DirectPlanner(*this);
31 }
32 
34 {
35  if(this != &obj)
36  {
38  }
39  return *this;
40 }
41 
42 
PathPlanner class implements base pathfinder interface and behavior.
Definition: PathPlanner.h:25
DirectPlanner class implements simple planner, which creates direct path from start to goal position...
Definition: DirectPlanner.h:17
bool GetNext(const Point &curr, Point &next) override
Returns current goal of agent. Always return goal position.
DirectPlanner * Clone() const override
Method for cloning objects. Creates copy of object in memmory and return pointer to copy...
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
Definition: Geom.h:61
~DirectPlanner() override
DirectPlanner destructor.
bool CreateGlobalPath() override
Nothing.
Class EnvironmentOptions contains environment and algoritms parameters.
Map class describes static environment.
Definition: Map.h:36
DirectPlanner(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius)
DirectPlanner constructor with parametes.
DirectPlanner & operator=(const DirectPlanner &obj)
Assignment operator.
PathPlanner & operator=(const PathPlanner &obj)
Assignment operator.
Definition: PathPlanner.h:75
File contains DirectPlanner class.


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