DirectPlanner class implements simple planner, which creates direct path from start to goal position. More...
#include <DirectPlanner.h>
Public Member Functions | |
DirectPlanner * | Clone () const override |
Method for cloning objects. Creates copy of object in memmory and return pointer to copy. More... | |
bool | CreateGlobalPath () override |
Nothing. More... | |
DirectPlanner (const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius) | |
DirectPlanner constructor with parametes. More... | |
DirectPlanner (const DirectPlanner &obj) | |
DirectPlanner copy constructor. More... | |
bool | GetNext (const Point &curr, Point &next) override |
Returns current goal of agent. Always return goal position. More... | |
DirectPlanner & | operator= (const DirectPlanner &obj) |
Assignment operator. More... | |
~DirectPlanner () override | |
DirectPlanner destructor. More... | |
![]() | |
PathPlanner & | operator= (const PathPlanner &obj) |
Assignment operator. More... | |
PathPlanner (const PathPlanner &obj) | |
PathPlanner copy constructor. More... | |
PathPlanner (const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius) | |
PathPlanner constructor with parametes. More... | |
virtual | ~PathPlanner () |
Virtual PathPlanner destructor. More... | |
DirectPlanner class implements simple planner, which creates direct path from start to goal position.
Definition at line 17 of file DirectPlanner.h.
DirectPlanner::DirectPlanner | ( | const Map & | map, |
const EnvironmentOptions & | options, | ||
const Point & | start, | ||
const Point & | goal, | ||
const float & | radius | ||
) |
DirectPlanner constructor with parametes.
map | Static environment map. It contains information about grid and static obstacles boundaries. More about it see in Main page and Map class. |
options | Environment and algorithm options. See EnvironmentOptions class. |
start | Start position of agent. |
goal | Goal position of agent. |
radius | Radius of agent. |
Definition at line 21 of file DirectPlanner.cpp.
DirectPlanner::DirectPlanner | ( | const DirectPlanner & | obj | ) |
DirectPlanner copy constructor.
obj | Object to copy. |
Definition at line 24 of file DirectPlanner.cpp.
|
override |
DirectPlanner destructor.
Definition at line 26 of file DirectPlanner.cpp.
|
overridevirtual |
Method for cloning objects. Creates copy of object in memmory and return pointer to copy.
Implements PathPlanner.
Definition at line 28 of file DirectPlanner.cpp.
|
overridevirtual |
Nothing.
Implements PathPlanner.
Definition at line 16 of file DirectPlanner.cpp.
Returns current goal of agent. Always return goal position.
[in] | curr | Current position of agent. |
[out] | next | Current goal of agent. |
Implements PathPlanner.
Definition at line 10 of file DirectPlanner.cpp.
DirectPlanner & DirectPlanner::operator= | ( | const DirectPlanner & | obj | ) |
Assignment operator.
obj | Object to assign. |
Definition at line 33 of file DirectPlanner.cpp.