Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / warehouse / WH_Robot.h @ 2009

History | View | Annotate | Download (1.07 KB)

1 2002 jmcarrol
#ifndef _WH_ROBOT_
2
#define _WH_ROBOT_
3
4 2009 jmcarrol
#define DEFAULT_TASK NULL
5 2002 jmcarrol
#define TASK_COMPLETED 0
6
#define TASK_FAILED -1
7
8 2009 jmcarrol
/*Deleted Behaviors.h*/
9
#include "navigationMap.h"/*Do we do something here?*/
10
#include "helper_classes/Order.h"
11 2002 jmcarrol
#include <assert.h>
12
#include <stdlib.h>
13
14 2009 jmcarrol
/* ~~Begin Variable Declarations~~ */
15
int id;
16 2002 jmcarrol
17 2009 jmcarrol
int reg_failed;
18
19 2003 jmcarrol
Order* curr_task;
20 2009 jmcarrol
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 2002 jmcarrol
24 2009 jmcarrol
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 2003 jmcarrol
int exec_task();
29 2002 jmcarrol
30 2009 jmcarrol
void robot_callback(const std_msgs::String::ConstPtr& msg);
31 2002 jmcarrol
32 2009 jmcarrol
/*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 2003 jmcarrol
void set_task(Order order);
37 2002 jmcarrol
38 2009 jmcarrol
/* These subscribers must be dealt with through wireless checking
39
ros::Publisher robot_to_sched;
40
ros::Subscriber sched_to_robot;
41
*/
42 2002 jmcarrol
#endif