root / trunk / code / projects / colonet / ColonetServer / includes / PositionMonitor.h @ 453
History | View | Annotate | Download (608 Bytes)
1 | 436 | jknichel | /**
|
---|---|---|---|
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 | 447 | emarinel | #include <map> |
13 | 436 | jknichel | #include <vision.h> |
14 | 449 | jknichel | #include <map> |
15 | using namespace std; |
||
16 | 436 | jknichel | |
17 | #define MAX_POSITIONS 20 |
||
18 | |||
19 | 447 | emarinel | using namespace std; |
20 | |||
21 | 436 | jknichel | class PositionMonitor { |
22 | public:
|
||
23 | 447 | emarinel | PositionMonitor(void);
|
24 | ~PositionMonitor(void);
|
||
25 | 436 | jknichel | |
26 | 447 | emarinel | int startMonitoring(void); |
27 | int stopMonitoring(void); |
||
28 | int updatePositions(void); |
||
29 | 453 | emarinel | |
30 | 447 | emarinel | |
31 | map<int, VisionPosition> getAllRobotPositions(void); |
||
32 | 443 | emarinel | int getRobotPosition(int robot_id, int* xbuf, int* ybuf); |
33 | |||
34 | 436 | jknichel | private:
|
35 | 449 | jknichel | map<int, VisionPosition> positionMap;
|
36 | 436 | jknichel | }; |
37 | |||
38 | #endif |