Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / scout / libscout / src / behaviors / WH_Robot.h @ 6761a531

History | View | Annotate | Download (647 Bytes)

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