7 #include <unordered_map> 14 #ifndef ORCA_THETASTAR_H 15 #define ORCA_THETASTAR_H 76 bool SearchPath(
const Node &start,
const Node &goal);
77 bool StopCriterion()
const;
78 void AddOpen(
Node newNode);
80 float ComputeHFromCellToCell(
int i1,
int j1,
int i2,
int j2)
const;
81 float Distance(
int i1,
int j1,
int i2,
int j2)
const;
83 void MakePrimaryPath(
Node curNode);
84 std::list<Node> FindSuccessors(
Node curNode);
87 std::list<Point> currPath;
89 std::unordered_map<int, Node> close;
90 std::vector<std::list<Node>> open;
102 #endif //ORCA_THETASTAR_H bool CreateGlobalPath() override
Finds path from global start to global goal position using Theta* algorithm.
PathPlanner class implements base pathfinder interface and behavior.
ThetaStar(const Map &map, const EnvironmentOptions &options, const Point &start, const Point &goal, const float &radius)
ThetaStar constructor with parametes.
The Node class defines a cell of grid (see Map class)
File contains Node, Point, Line, Vertex, ObstacleSegment classes and some methods and functions imple...
The Point class defines a position (or euclidean vector from (0,0)) in 2D space.
~ThetaStar() override
ThetaStar destructor.
ThetaStar & operator=(const ThetaStar &obj)
Assignment operator.
File contains PathPlanner class.
File contains LineOfSight class.
bool GetNext(const Point &curr, Point &next) override
Returns current goal of agent from global path.
Class EnvironmentOptions contains environment and algoritms parameters.
Map class describes static environment.
ThetaStar * Clone() const override
Method for cloning inheritors objects. Creates copy of object in memmory and return pointer to copy...
ThetaStar class implements Theta* algorithm, which creates path from start to goal position...
This class implements line-of-sight function between two cells on the grid for a variable size of age...