Revision cccc25c9
ID | cccc25c99e4cea26a0a2c76d7ab7121512d7b3d2 |
Made nav map into an actual workable behaviorgit statusgit status
scout/libscout/src/behaviors/navigationMap.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
#include <cstdlib> |
5 | 5 |
#include <queue> |
6 |
#include "lineDrive.h" // Get turn Macros |
|
6 |
#include "../Behavior.h" |
|
7 |
//#include "lineDrive.h" // Get turn Macros |
|
8 |
|
|
9 |
#define ISTRAIGHT 0 |
|
10 |
#define ILEFT 1 |
|
11 |
#define IRIGHT 2 |
|
12 |
#define IUTURN 3 |
|
7 | 13 |
|
8 | 14 |
#define START_STATE 1 |
9 | 15 |
|
... | ... | |
25 | 31 |
typedef int Edge; |
26 | 32 |
typedef int State; |
27 | 33 |
typedef int Turn; |
28 |
typedef ros::Time Time; |
|
29 | 34 |
|
30 | 35 |
typedef struct{ |
31 | 36 |
int len; |
... | ... | |
43 | 48 |
State update_state(Turn turn_made); |
44 | 49 |
|
45 | 50 |
Time get_eta(); |
46 |
Time get_time_remaining();
|
|
51 |
Duration get_time_remaining();
|
|
47 | 52 |
|
48 | 53 |
State get_state(); |
49 | 54 |
Path shortest_path(State target_state); |
... | ... | |
51 | 56 |
Edge* get_outbound_edges(State state); |
52 | 57 |
|
53 | 58 |
private: |
54 |
vector <Edge*> map; |
|
59 |
std::vector <Edge*> map;
|
|
55 | 60 |
State curr_state; |
56 | 61 |
Time arrival_time; |
57 | 62 |
}; |
Also available in: Unified diff