| 1375 | |
| 1376 | |
| 1377 | def main(args): |
| 1378 | spawn_destroy_process = Process(target=spawn_destroy_loop, args=(args,)) |
| 1379 | spawn_destroy_process.daemon = True |
| 1380 | spawn_destroy_process.start() |
| 1381 | |
| 1382 | control_process = Process(target=control_loop, args=(args,)) |
| 1383 | control_process.daemon = True |
| 1384 | control_process.start() |
| 1385 | |
| 1386 | gamma_process = Process(target=gamma_loop, args=(args,)) |
| 1387 | gamma_process.daemon = True |
| 1388 | gamma_process.start() |
| 1389 | |
| 1390 | ''' |
| 1391 | collision_statistics_process = Process(target=collision_statistics_loop, args=(args,)) |
| 1392 | collision_statistics_process.daemon = True |
| 1393 | collision_statistics_process.start() |
| 1394 | ''' |
| 1395 | |
| 1396 | Pyro4.Daemon.serveSimple( |
| 1397 | { |
| 1398 | CrowdService: "crowdservice.warehouse" |
| 1399 | }, |
| 1400 | port=args.pyroport, |
| 1401 | ns=False) |
| 1402 | |
| 1403 | if __name__ == '__main__': |
| 1404 | argparser = argparse.ArgumentParser( |