forked from PathPlanning/AStar-JPS-ThetaStar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeta.h
25 lines (17 loc) · 869 Bytes
/
theta.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef THETA_H
#define THETA_H
#include "gl_const.h"
#include "astar.h"
class Theta: public Astar
{
public:
Theta(float hweight, int breakingties, int sizelimit, int i):Astar(hweight,breakingties, sizelimit, i){/*open=new NodeList[i];*/}
~Theta(void);
private:
bool lineOfSight(int x1, int y1, int x0, int y0, const Map &map);//проверяет существование линии между двумя точками
bool grid(int i, int j, const Map &map);//проверяет принадлежность точки к карте и проходимость
Node resetParent(Node current, Node parent, const Map &map, const EnvironmentOptions &options);
void makePrimaryPath(Node curNode);
void makeSecondaryPath(const Map &map,Node curNode);
};
#endif // THETA_H