Project

General

Profile

Revision 453

fixed compile errors in colonetserver

View differences:

Command.cpp
24 24

  
25 25
using namespace std;
26 26

  
27
Command::Command(ConnectionPool * connection_pool_temp) {
27
Command::Command(ConnectionPool * connection_pool_temp, ColonetServer* cs) {
28 28
  connection_pool = connection_pool_temp;
29
  colonet_server = cs;
29 30
}
30 31

  
31 32
Command::~Command() {}
......
224 225
    }
225 226
    break;
226 227

  
227
  case CLIENT_ASSIGN_POSITION_TO_ROBOT_ID:
228
  case CLIENT_ASSIGN_ROBOT_ID:
228 229
    
229 230
    break;
230 231

  
231 232
  default:
232
    char * my_current_message = "Hi, how are you?\n";
233
    char * my_current_message = "Invalid request!\n";
233 234
    printf("Sending %s\n", my_current_message);
234 235
    connection_pool->write_to_client(pool_index, my_current_message, strlen(my_current_message));
235 236
    break;
......
283 284
int Command::parse_request_robot_positions(int pool_index) {
284 285
  printf("TODO - parse_request_robot_positions\n");
285 286
  
286
  map<int, VisionPosition> positions = colonet_server.getPositionMonitor()->getAllRobotPositions();
287
  map<int, VisionPosition> positions = colonet_server->getPositionMonitor()->getAllRobotPositions();
287 288

  
288 289
  return 0;
289 290
}

Also available in: Unified diff