root / scout / libscout / src / behaviors / WH_Robot.h @ 92d4adda
History | View | Annotate | Download (663 Bytes)
1 | bebd9bcb | Leon | #ifndef _WH_ROBOT_
|
---|---|---|---|
2 | #define _WH_ROBOT_
|
||
3 | |||
4 | 9b4328d7 | Priya | #define DEFAULT_TASK NULL; |
5 | #define TASK_COMPLETED 0 |
||
6 | #define TASK_FAILED -1 |
||
7 | bebd9bcb | Leon | |
8 | 9b4328d7 | Priya | #include "../Behavior.h" |
9 | #include "navigationMap.h" |
||
10 | #include "Scheduler.h" |
||
11 | bebd9bcb | Leon | #include "../helper_classes/Order.h" |
12 | 9b4328d7 | Priya | #include <assert.h> |
13 | #include <stdlib.h> |
||
14 | bebd9bcb | Leon | |
15 | 9b4328d7 | Priya | class WH_Robot : Behavior{ |
16 | bebd9bcb | Leon | |
17 | 9b4328d7 | Priya | Order* curr_task; |
18 | navigationMap nav_map; |
||
19 | Scheduler scheduler; |
||
20 | bebd9bcb | Leon | |
21 | 92d4adda | Priya | Duration get_worst_case_time(State start_state, State target_state); |
22 | 9b4328d7 | Priya | int exec_task();
|
23 | bebd9bcb | Leon | |
24 | public:
|
||
25 | WH_Robot(std::string scoutname); |
||
26 | 9b4328d7 | Priya | ~WH_Robot(); |
27 | bebd9bcb | Leon | void run();
|
28 | 9b4328d7 | Priya | |
29 | void set_task(Order order);
|
||
30 | |||
31 | bebd9bcb | Leon | }; |
32 | |||
33 | #endif
|