forked from PathPlanning/3D-AStar-ThetaStar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
map.h
34 lines (30 loc) · 928 Bytes
/
map.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
26
27
28
29
30
31
32
33
#ifndef MAP_H
#define MAP_H
#include "tinyxml2.h"
#include <iostream>
#include "gl_const.h"
#include <sstream>
#include <string>
#include <algorithm>
class Map
{
public:
Map();
Map(const Map& orig);
~Map();
bool getMap(const char *FileName);
bool CellIsTraversable (int i, int j) const;
bool CellIsTraversable (int i, int j, int h) const;
bool CellOnGrid (int i, int j) const;
bool CellOnGrid (int i, int j, int height) const;
bool CellIsObstacle(int i, int j) const;
bool CellIsObstacle(int i, int j, int h) const;
int getValue(int i, int j) const;
public:
int** Grid;
int height, width, altitude;
int min_altitude_limit, max_altitude_limit; // The lowest and highest possible altitude for the path
int start_i, start_j, start_h;
int goal_i, goal_j, goal_h;
};
#endif