ThetaStar class implements Theta* algorithm, which creates path from start to goal position. More...
#include <ThetaStar.h>
Public Member Functions | |
ThetaStar * | Clone () const override |
Method for cloning inheritors objects. Creates copy of object in memmory and return pointer to copy. More... | |
bool | CreateGlobalPath () override |
Finds path from global start to global goal position using Theta* algorithm. More... | |
bool | GetNext (const Point &curr, Point &next) override |
Returns current goal of agent from global path. More... | |
ThetaStar & | operator= (const ThetaStar &obj) |
Assignment operator. More... | |
ThetaStar (const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius) | |
ThetaStar constructor with parametes. More... | |
ThetaStar (const ThetaStar &obj) | |
ThetaStar copy constructor. More... | |
~ThetaStar () override | |
ThetaStar 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... | |
ThetaStar class implements Theta* algorithm, which creates path from start to goal position.
Definition at line 22 of file ThetaStar.h.
ThetaStar::ThetaStar | ( | const Map & | map, |
const EnvironmentOptions & | options, | ||
const Point & | start, | ||
const Point & | goal, | ||
const float & | radius | ||
) |
ThetaStar 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 9 of file ThetaStar.cpp.
ThetaStar::ThetaStar | ( | const ThetaStar & | obj | ) |
ThetaStar copy constructor.
obj | Object to copy. |
Definition at line 21 of file ThetaStar.cpp.
|
override |
ThetaStar destructor.
Definition at line 33 of file ThetaStar.cpp.
|
overridevirtual |
Method for cloning inheritors objects. Creates copy of object in memmory and return pointer to copy.
Implements PathPlanner.
Definition at line 353 of file ThetaStar.cpp.
|
overridevirtual |
Finds path from global start to global goal position using Theta* algorithm.
Implements PathPlanner.
Definition at line 325 of file ThetaStar.cpp.
Returns current goal of agent from global path.
[in] | curr | Current position of agent. |
[out] | next | Current goal of agent. |
Implements PathPlanner.
Definition at line 36 of file ThetaStar.cpp.
Assignment operator.
obj | Object to assign. |
Definition at line 338 of file ThetaStar.cpp.