Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
f53a4d22
Commit
f53a4d22
authored
Feb 25, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed adhoc paths to call the agent.
parent
ed805650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bin/Trainer.py
bin/Trainer.py
+6
-6
No files found.
bin/Trainer.py
View file @
f53a4d22
...
...
@@ -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/star
t.sh -t
%
s -u
%
i'
ADHOC_CMD
=
'
start_agen
t.sh -t
%
s -u
%
i'
class
DoneError
(
Exception
):
def
__init__
(
self
,
msg
=
'unknown'
):
...
...
@@ -47,7 +48,7 @@ class Trainer(object):
self
.
_maxFrames
=
self
.
_options
.
numFrames
self
.
_rng
=
numpy
.
random
.
RandomState
(
seed
)
self
.
_playerPositions
=
numpy
.
zeros
((
11
,
2
,
2
))
self
.
_ballPosition
=
numpy
.
zeros
(
2
)
self
.
_ballHeld
=
numpy
.
zeros
((
11
,
2
))
...
...
@@ -521,9 +522,8 @@ 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
()
print
'starting game'
self
.
startGame
()
while
self
.
checkLive
(
necProcesses
):
prevFrame
=
self
.
_frame
self
.
listenAndProcess
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment