Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / ColonetServer / includes / PositionMonitor.h @ 453

History | View | Annotate | Download (608 Bytes)

1
/**
2
 * @file PositionMonitor.h
3
 *
4
 * @author Jason Knichel
5
 *
6
 * @date 2/4/08
7
 */
8

    
9
#ifndef POSITIONMONITOR_H
10
#define POSITIONMONITOR_H
11

    
12
#include <map>
13
#include <vision.h>
14
#include <map>
15
using namespace std;
16

    
17
#define MAX_POSITIONS 20
18

    
19
using namespace std;
20

    
21
class PositionMonitor {
22
 public:
23
  PositionMonitor(void);
24
  ~PositionMonitor(void);
25

    
26
  int startMonitoring(void);
27
  int stopMonitoring(void);
28
  int updatePositions(void);
29
  
30

    
31
  map<int, VisionPosition> getAllRobotPositions(void);
32
  int getRobotPosition(int robot_id, int* xbuf, int* ybuf);
33

    
34
 private:
35
  map<int, VisionPosition> positionMap;
36
};
37

    
38
#endif