Commit f53a4d22 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Changed adhoc paths to call the agent.

parent ed805650
......@@ -6,9 +6,10 @@ from optparse import Values
from signal import SIGINT
from Communicator import ClientCommunicator, TimeoutError
ADHOC_DIR = os.path.expanduser('~/research/adhoc2/robocup/adhoc-agent/')
ADHOC_DIR = os.path.dirname(os.path.realpath(__file__))
#os.path.expanduser('~/research/adhoc2/robocup/adhoc-agent/')
#ADHOC_CMD = 'bin/start.sh -t %s -u %i --offenseAgents %s --defenseAgents %s'
ADHOC_CMD = 'bin/start.sh -t %s -u %i'
ADHOC_CMD = 'start_agent.sh -t %s -u %i'
class DoneError(Exception):
def __init__(self,msg='unknown'):
......@@ -521,7 +522,6 @@ class Trainer(object):
if self._options.useAdhoc:
self._adhocPopen = self.launchAdhoc() # will take care of starting game once adhoc is ready
necProcesses.append([self._adhocPopen,'adhoc'])
else:
print 'starting game'
self.startGame()
while self.checkLive(necProcesses):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment