Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / behaviors / outboundVectTable.h @ 46587b36

History | View | Annotate | Download (518 Bytes)

1
#ifndef _NAVIGATION_MAP_
2
#define _NAVIGATION_MAP_
3

    
4
#include <cstdlib>
5

    
6
struct edge
7
{
8
    int direction; /// direction to turn
9
    int index;  /// map index
10
    int distance;   /// physical distance
11
};
12
typedef struct edge edge;
13

    
14
class navigationMap : Behavior
15
{
16
    public:
17
        navigationMap(std::string scoutname);
18
        
19
        void run();
20
        
21
        int get_state();
22
        int* shortest_path(int target_state);
23

    
24
        edge* get_outbound_edges();        
25

    
26
    private:
27
        edge** map; 
28
};
29
#endif