Project

General

Profile

Revision ad5b5826

IDad5b58260593f9a00266e17ccdb1aaed3d72460e

Added by Priya about 12 years ago

some fixes to whrobot and scheduler

View differences:

scout/libscout/src/behaviors/Scheduler.h
6 6
#include "../Behavior.h"
7 7

  
8 8
#define NUM_TASKS 5
9
#define WAITING_ROBOT 1
10
#define NEW_ROBOT 2
11
#define ORDERED_ROBOT 3
9 12

  
10 13
typedef struct{
11 14
  std::string name;
12 15
  ros::Publisher topic;
16
  int sched_status;
13 17
} Robot;
14 18

  
15 19
class Scheduler : Behavior {
16 20
  std::vector<Robot> robots;
21
	std::queue<Robot> waitingRobots;
22

  
17 23
  PQWrapper* unassignedOrders;
18 24
	std::vector<Order> assignedOrders;
19
	std::queue<Robot> waitingRobots;
20 25

  
21 26
	void create_orders();
22 27

  

Also available in: Unified diff