Revision 451
got position map to compile
trunk/code/projects/colonet/ColonetServer/PositionMonitor.cpp | ||
---|---|---|
70 | 70 |
|
71 | 71 |
int PositionMonitor::getRobotPosition(int robot_id, int* xbuf, int* ybuf) { |
72 | 72 |
//TODO: figure out what a map returns if the element doesn't exist |
73 |
if (positionMap[robot_id] == map<int, VisionPosition>::end){
|
|
73 |
if (positionMap.find(robot_id) == positionMap.end()){
|
|
74 | 74 |
return -1; |
75 | 75 |
} |
76 | 76 |
|
Also available in: Unified diff