scoutos / scout / libscout / src / behaviors / WH_Robot.h @ 6761a531
History | View | Annotate | Download (647 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 "../helper_classes/Order.h" |
11 |
#include <assert.h> |
12 |
#include <stdlib.h> |
13 |
|
14 |
class WH_Robot : Behavior{ |
15 |
|
16 |
Order* curr_task; |
17 |
navigationMap* nav_map; |
18 |
void* scheduler;
|
19 |
|
20 |
Duration get_worst_case_time(State start_state, State target_state); |
21 |
int exec_task();
|
22 |
|
23 |
public:
|
24 |
WH_Robot(std::string scoutname, void* sched);
|
25 |
~WH_Robot(); |
26 |
void run();
|
27 |
|
28 |
void set_task(Order order);
|
29 |
|
30 |
}; |
31 |
|
32 |
#endif
|