root / scout / libscout / src / behaviors / WH_Robot.h @ d37cfc69
History | View | Annotate | Download (881 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 |
void follow_path(Path path_to_follow);
|
| 35 |
|
| 36 |
ros::Publisher robot_to_sched; |
| 37 |
ros::Subscriber sched_to_robot; |
| 38 |
|
| 39 |
}; |
| 40 |
|
| 41 |
#endif
|