Revision aa5e4ddc
ID | aa5e4ddcdd38a8388d7157691894c250e3cb439d |
Finishing BFS for behaviors navigationMap. Also commiting teleop skeleton code.
scout/libscout/src/behaviors/navigationMap.h | ||
---|---|---|
2 | 2 |
#define _NAVIGATION_MAP_ |
3 | 3 |
|
4 | 4 |
#include <cstdlib> |
5 |
#include "linieDrive.h" // Get turn Macros |
|
5 |
#include <queue> |
|
6 |
#include "lineDrive.h" // Get turn Macros |
|
6 | 7 |
|
7 | 8 |
#define START_STATE 1 |
8 | 9 |
|
... | ... | |
20 | 21 |
|
21 | 22 |
#define MAKE_EDGE(dir, state, dist) \ |
22 | 23 |
SET_EDGE_DIR(dir)+SET_EDGE_STATE(state)+SET_EDGE_DIST(dist) |
23 |
|
|
24 |
|
|
24 | 25 |
typedef int Edge; |
25 | 26 |
typedef int State; |
26 | 27 |
typedef int Turn; |
... | ... | |
41 | 42 |
private: |
42 | 43 |
vector <Edge*> map; |
43 | 44 |
State curr_state; |
44 |
|
|
45 |
Edge* make_edge(Turn dir, State state, int dist); |
|
46 |
|
|
47 | 45 |
}; |
48 | 46 |
#endif |
Also available in: Unified diff