Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / behaviors / WH_Robot.h @ 92d4adda

History | View | Annotate | Download (663 Bytes)

1
#ifndef _WH_ROBOT_
2
#define _WH_ROBOT_
3

    
4
#define DEFAULT_TASK NULL;
5
#define TASK_COMPLETED 0
6
#define TASK_FAILED -1
7

    
8
#include "../Behavior.h"
9
#include "navigationMap.h"
10
#include "Scheduler.h" 
11
#include "../helper_classes/Order.h"
12
#include <assert.h>
13
#include <stdlib.h>
14

    
15
class WH_Robot : Behavior{
16

    
17
        Order* curr_task;
18
        navigationMap nav_map;
19
        Scheduler scheduler;
20

    
21
        Duration get_worst_case_time(State start_state, State target_state);
22
        int exec_task();
23

    
24
    public:
25
        WH_Robot(std::string scoutname);
26
        ~WH_Robot();
27
        void run();
28

    
29
        void set_task(Order order);
30

    
31
};
32

    
33
#endif