Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / behaviors / WH_Robot.h @ 7ac5e9bc

History | View | Annotate | Download (833 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
        std::string name;
16
        int id;
17

    
18
        int reg_failed;
19

    
20
        Order* curr_task;
21
        navigationMap* nav_map;
22

    
23
        Duration get_worst_case_time(State start_state, State target_state);
24
        int exec_task();
25

    
26
        void robot_callback(const std_msgs::String::ConstPtr& msg);
27

    
28
    public:
29
        WH_Robot(std::string scoutname);
30
        ~WH_Robot();
31
        void run();
32

    
33
        void set_task(Order order);
34

    
35
        ros::Publisher robot_to_sched;
36
        ros::Subscriber sched_to_robot;
37

    
38
};
39

    
40
#endif