root / trunk / code / projects / warehouse / WH_Robot.h @ 2009
History | View | Annotate | Download (1.07 KB)
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 |
/*Deleted Behaviors.h*/
|
9 |
#include "navigationMap.h"/*Do we do something here?*/ |
10 |
#include "helper_classes/Order.h" |
11 |
#include <assert.h> |
12 |
#include <stdlib.h> |
13 |
|
14 |
/* ~~Begin Variable Declarations~~ */
|
15 |
int id;
|
16 |
|
17 |
int reg_failed;
|
18 |
|
19 |
Order* curr_task; |
20 |
navigationMap* nav_map; |
21 |
/* ^ Is this going to be changed? Do we need to conv this to c?*/
|
22 |
/* ~~The End of all declarations : variable related~~*/
|
23 |
|
24 |
|
25 |
|
26 |
/*On colony 3 bots time is just an int (being ms || 1/16 of a sec)*/
|
27 |
int get_worst_case_time(State start_state, State target_state);
|
28 |
int exec_task();
|
29 |
|
30 |
void robot_callback(const std_msgs::String::ConstPtr& msg); |
31 |
|
32 |
/*WH_Robot(std::string scoutname); ->Coalesce into the main function*/
|
33 |
/*~WH_Robot(); ->Deconstructors don't exist in C*/
|
34 |
/*void run(); ->Coalesce into the main function*/
|
35 |
|
36 |
void set_task(Order order);
|
37 |
|
38 |
/* These subscribers must be dealt with through wireless checking
|
39 |
ros::Publisher robot_to_sched;
|
40 |
ros::Subscriber sched_to_robot;
|
41 |
*/
|
42 |
#endif
|